Spaces:
Configuration error
Configuration error
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -36,11 +36,13 @@ def get_final_answer(question, answer):
|
|
| 36 |
client = OpenAI()
|
| 37 |
|
| 38 |
prompt_template = """
|
| 39 |
-
You are a GAIA benchmark
|
| 40 |
-
Question: """ + question + """
|
| 41 |
-
Answer: """ + answer + """
|
| 42 |
-
Read the question
|
| 43 |
-
|
|
|
|
|
|
|
| 44 |
"""
|
| 45 |
|
| 46 |
completion = client.chat.completions.create(
|
|
|
|
| 36 |
client = OpenAI()
|
| 37 |
|
| 38 |
prompt_template = """
|
| 39 |
+
You are a GAIA benchmark assistant, who is given a question and an answer:
|
| 40 |
+
**Question:** """ + str(question) + """
|
| 41 |
+
**Answer:** """ + str(answer) + """
|
| 42 |
+
**Instructions:** Read the question carefully. You must only give the final answer requested. Do not include explanations, steps, reasoning, or additional text. Be direct and specific.
|
| 43 |
+
**Example:** If asked "What is the capital of France?", respond with "Paris".
|
| 44 |
+
**Final answer:**:
|
| 45 |
+
|
| 46 |
"""
|
| 47 |
|
| 48 |
completion = client.chat.completions.create(
|