From b1faac7020115da723128307914a3d60d5d246e4 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Sat, 17 May 2025 17:33:29 -0700 Subject: [PATCH] tweaks --- frontend/src/Pages/HomePage.tsx | 7 +++++-- src/utils/agents/job_description.py | 2 +- src/utils/user.py | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/Pages/HomePage.tsx b/frontend/src/Pages/HomePage.tsx index 6e72ebd..e52214a 100644 --- a/frontend/src/Pages/HomePage.tsx +++ b/frontend/src/Pages/HomePage.tsx @@ -38,8 +38,11 @@ const HomePage = forwardRef((props: Back title: 'Welcome to Backstory', disableCopy: true, content: ` -Backstory is a RAG enabled expert system with access to real-time data running self-hosted -(no cloud) versions of industry leading Large and Small Language Models (LLM/SLMs). +Backstory is a RAG enabled expert system with access to real-time data running +self-hosted (no cloud) versions of industry leading Large and Small Language +Models (LLM/SLMs). It provides potential employees the opportunityt to ask +questions about a job candidate, as well as to allow the job candidate to +generate resumes based on their personal data. This instances has been launched for ${user.full_name}. diff --git a/src/utils/agents/job_description.py b/src/utils/agents/job_description.py index 98bae72..92cb043 100644 --- a/src/utils/agents/job_description.py +++ b/src/utils/agents/job_description.py @@ -283,7 +283,7 @@ class JobDescription(Agent): Create a polished, concise, and ATS-friendly resume for the candidate based on the assessment data provided. ## CANDIDATE INFORMATION: -Name: {candidate_info.full_name} +Name: {candidate_info["full_name"]} {contact_info_str} ## SKILL ASSESSMENT RESULTS: diff --git a/src/utils/user.py b/src/utils/user.py index e0cc911..dd731af 100644 --- a/src/utils/user.py +++ b/src/utils/user.py @@ -190,7 +190,7 @@ class User(BaseModel): logger.error(f"info={info}") self.first_name = info.get("first_name", self.username) - self.last_name = info.get("first_name", "") + self.last_name = info.get("last_name", "") self.full_name = info.get("full_name", f"{self.first_name} {self.last_name}") self.contact_info = info.get("contact_info", {}) self.user_questions = info.get("questions", [ f"Tell me about {self.first_name}.", f"What are {self.first_name}'s professional strengths?"])