Ajey95 commited on
Commit
9817d98
·
1 Parent(s): 55fd722

Fix: chat_history addition

Browse files
agents/academic_agent.py CHANGED
@@ -343,7 +343,8 @@ 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 like Acharya Sushruta .
 
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
+ - Also ask the user if they have any doubts or need further clarification.
348
  """
349
  try:
350
  # This is a more direct and robust way to send the complete context
agents/drug_info_agent.py CHANGED
@@ -57,7 +57,7 @@ class DrugInfoAgent:
57
 
58
  history_for_prompt = format_history_for_prompt(chat_history)
59
 
60
- prompt = f"""You are a cautious AI Pharmacist Tutor providing educational information like ancient india's Chanakya.
61
 
62
  **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."
63
 
 
57
 
58
  history_for_prompt = format_history_for_prompt(chat_history)
59
 
60
+ prompt = f"""You are a cautious AI Pharmacist Tutor providing educational information like ancient india's Chanakya advisor to Chandragupta Maurya.
61
 
62
  **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."
63
 
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 like Maryada Ramana.
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. Maryada Ramanna—he’s a legendary character from Indian (particularly South Indian) folklore, often associated with justice, integrity, and cleverness.
56
 
57
  CONVERSATION HISTORY:
58
  {history_for_prompt}