avfranco commited on
Commit
416f072
·
1 Parent(s): 7813102

final assignment gaia agent tools submission enabled system prompt litellm llama system_prompt

Browse files
Files changed (1) hide show
  1. agents/gaia.py +12 -1
agents/gaia.py CHANGED
@@ -40,7 +40,18 @@ class GaiaAgent:
40
  additional_authorized_imports=["pandas"]
41
  )
42
 
43
- self.agent.prompt_templates["system_prompt"] += "You are a general AI assistant. I will ask you a question. Report your thoughts, and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string."
 
 
 
 
 
 
 
 
 
 
 
44
 
45
  self.questions_data = fetch_questions(self.questions_url)
46
 
 
40
  additional_authorized_imports=["pandas"]
41
  )
42
 
43
+ system_prompt = """You are a general AI assistant. I will ask you a question. Report your thoughts, and
44
+ finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER].
45
+ YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated
46
+ list of numbers and/or strings.
47
+ If you are asked for a number, don’t use comma to write your number neither use units such as $ or
48
+ percent sign unless specified otherwise.
49
+ If you are asked for a string, don’t use articles, neither abbreviations (e.g. for cities), and write the
50
+ digits in plain text unless specified otherwise.
51
+ If you are asked for a comma separated list, apply the above rules depending of whether the element
52
+ to be put in the list is a number or a string."""
53
+
54
+ self.agent.prompt_templates["system_prompt"] = self.agent.prompt_templates["system_prompt"] + system_prompt
55
 
56
  self.questions_data = fetch_questions(self.questions_url)
57