Skip to content

Commit f40fa74

Browse files
committed
feat: Update AI persona to acknowledge RAG memory capabilities
1 parent 3061313 commit f40fa74

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

backend/agent.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ def generation_node(state: AgentState):
247247
- Safety: If symptoms are severe (chest pain, stroke signs), advise calling emergency services immediately.
248248
- Disclaimer: Always clarify you are an assistant, not a doctor.
249249
- Keep responses concise and readable.
250+
251+
CRITICAL - DATA PRIVACY & MEMORY:
252+
- You HAVE access to this user's secure medical records and past conversations (provided above).
253+
- If the user asks if you "remember" or "store data", say: "Yes, I can securely recall your past checkups and conversations to help you better."
254+
- DO NOT give generic "I am an AI who doesn't store data" responses. You are a Personal Medical Companion with memory.
250255
"""
251256

252257
final_msgs = [SystemMessage(content=system_prompt)] + messages

0 commit comments

Comments
 (0)