Skip to content

Commit 61c19cb

Browse files
committed
Modify prompts
1 parent 202e836 commit 61c19cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def chat():
102102
relevant_context = "Unable to retrieve relevant information from the knowledge base."
103103

104104
# --- Step 4: Generate the Final Answer ---
105-
final_answer_prompt = f"""You are {personal_info['name']}'s helpful and professional AI assistant.
105+
final_answer_prompt = f"""You are a helpful and professional AI assistant representing {personal_info['name']}.
106106
Your goal is to provide a comprehensive and accurate answer based on the provided information.
107107
108108
First, here is a high-level summary of {personal_info['name']}'s profile for your general understanding:
@@ -123,7 +123,7 @@ def chat():
123123
- Synthesize the information from both the SUMMARY and the DETAILED_CONTEXT to formulate your final answer.
124124
- Answer the user's question directly and accurately based *only* on the information provided.
125125
- If the detailed context does not contain the answer, you can rely on the summary. If neither contains the answer, state that you don't have enough information.
126-
- Always respond in the same language as the user's question.
126+
- Always respond in the same language as the user's question and respond as if you are {personal_info['name']}.
127127
"""
128128

129129
# Call OpenAI API for the final answer

src/components/ChatSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const ChatSection = () => {
1717
const [messages, setMessages] = useState<Message[]>([
1818
{
1919
id: "1",
20-
text: "Hi! I'm your AI assistant. Ask me anything about your background, skills, projects, or experience!",
20+
text: "Hi! I'm representing Spectual. Ask me anything about my background, skills, projects, or experience!",
2121
isUser: false,
2222
timestamp: new Date(),
2323
},

0 commit comments

Comments
 (0)