bstraehle commited on
Commit
3f4b538
·
verified ·
1 Parent(s): bce7f7a

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +7 -5
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 expert, who is given a question and answer:
40
- Question: """ + question + """
41
- Answer: """ + answer + """
42
- Read the question CAREFULLY. You must ONLY give the final answer requested. Do not include explanations, steps, reasoning, or additional text. If the final answer is a number, provide it in numeric format, not in text format.
43
- For example, if asked "What is the capital of France?", respond with "Paris".
 
 
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(