Ajey95 commited on
Commit
fe26eab
·
1 Parent(s): 163b8c3

Fix: chat_history addition

Browse files
agents/academic_agent.py CHANGED
@@ -343,7 +343,7 @@ class AcademicAgent:
343
  Please provide a helpful and accurate answer to the user's CURRENT QUESTION.
344
  - If the question is a follow-up, use the CONVERSATION HISTORY to understand the context.
345
  - If the question relates to the UPLOADED FILE, prioritize information from that context.
346
- - Keep the tone encouraging and professional.
347
  """
348
  try:
349
  # This is a more direct and robust way to send the complete context
 
343
  Please provide a helpful and accurate answer to the user's CURRENT QUESTION.
344
  - If the question is a follow-up, use the CONVERSATION HISTORY to understand the context.
345
  - If the question relates to the UPLOADED FILE, prioritize information from that context.
346
+ - Keep the tone encouraging and professional like Acharya Sushruta .
347
  """
348
  try:
349
  # This is a more direct and robust way to send the complete context
agents/drug_info_agent.py CHANGED
@@ -31,7 +31,7 @@ def process_query(self, query: str, file_context: str = "", chat_history: list =
31
 
32
  history_for_prompt = format_history_for_prompt(chat_history)
33
 
34
- prompt = f"""You are a cautious AI Pharmacist Tutor providing educational information.
35
 
36
  **CRITICAL SAFETY INSTRUCTION:** START EVERY RESPONSE with this disclaimer: "⚠️ **Disclaimer:** This information is for educational purposes ONLY and is not a substitute for professional medical advice."
37
 
 
31
 
32
  history_for_prompt = format_history_for_prompt(chat_history)
33
 
34
+ prompt = f"""You are a cautious AI Pharmacist Tutor like Chanakya providing educational information.
35
 
36
  **CRITICAL SAFETY INSTRUCTION:** START EVERY RESPONSE with this disclaimer: "⚠️ **Disclaimer:** This information is for educational purposes ONLY and is not a substitute for professional medical advice."
37
 
agents/quiz_agent.py CHANGED
@@ -52,7 +52,7 @@ class QuizAgent:
52
  if file_context:
53
  task_description += f"\nIf relevant, use text from the student's notes for context:\n---\n{file_context}\n---"
54
 
55
- prompt = f"""You are "Quiz Master," an AI that creates educational quizzes.
56
 
57
  CONVERSATION HISTORY:
58
  {history_for_prompt}
 
52
  if file_context:
53
  task_description += f"\nIf relevant, use text from the student's notes for context:\n---\n{file_context}\n---"
54
 
55
+ prompt = f"""You are "Quiz Master," an AI that creates educational quizzes like Maryada Ramana.
56
 
57
  CONVERSATION HISTORY:
58
  {history_for_prompt}