Spaces:
Runtime error
Runtime error
Fix: chat_history addition
Browse files- agents/academic_agent.py +0 -2
agents/academic_agent.py
CHANGED
|
@@ -413,9 +413,7 @@ Your reasoning process must be:
|
|
| 413 |
1. First, analyze the CONVERSATION HISTORY to understand the immediate context of the CURRENT QUESTION. This is especially important to understand what "this," "that," or "it" refers to.
|
| 414 |
2. Once you understand the user's real question, check if the UPLOADED FILE context is relevant to the topic.
|
| 415 |
3. Formulate your answer based on this reasoning, keeping an encouraging and professional tone.
|
| 416 |
-
|
| 417 |
CONVERSATION HISTORY:
|
| 418 |
-
{history_for_prompt}
|
| 419 |
{context_section}
|
| 420 |
CURRENT QUESTION:
|
| 421 |
User: {query}
|
|
|
|
| 413 |
1. First, analyze the CONVERSATION HISTORY to understand the immediate context of the CURRENT QUESTION. This is especially important to understand what "this," "that," or "it" refers to.
|
| 414 |
2. Once you understand the user's real question, check if the UPLOADED FILE context is relevant to the topic.
|
| 415 |
3. Formulate your answer based on this reasoning, keeping an encouraging and professional tone.
|
|
|
|
| 416 |
CONVERSATION HISTORY:
|
|
|
|
| 417 |
{context_section}
|
| 418 |
CURRENT QUESTION:
|
| 419 |
User: {query}
|