cowrycode commited on
Commit
22bd874
·
verified ·
1 Parent(s): f166ae6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -5
app.py CHANGED
@@ -33,12 +33,27 @@ class BasicAgent:
33
  print("BasicAgent initialized. . . .")
34
 
35
  #self.llm = OpenAI(model="gpt-4o-mini", temperature=0.2, api_key=OpenAI_key)
 
 
 
 
 
 
 
36
  self.system_prompt = (
37
- "You are a helpful AI assistant completing GAIA benchmark tasks.\n"
38
- "You MUST use the tools provided when needed.\n"
39
- "If you already have enough information, respond directly with:\n"
40
- "<answer>\n"
41
- "Once you output '<answer>', stop reasoning and do not call any tool.\n"
 
 
 
 
 
 
 
 
42
  )
43
  self.llm = HuggingFaceInferenceAPI(
44
  model_name="deepseek-ai/DeepSeek-R1-0528",
 
33
  print("BasicAgent initialized. . . .")
34
 
35
  #self.llm = OpenAI(model="gpt-4o-mini", temperature=0.2, api_key=OpenAI_key)
36
+ # self.system_prompt = (
37
+ # "You are a helpful AI assistant completing GAIA benchmark tasks.\n"
38
+ # "You MUST use the tools provided when needed.\n"
39
+ # "If you already have enough information, respond directly with:\n"
40
+ # "<answer>\n"
41
+ # "Once you output '<answer>', stop reasoning and do not call any tool.\n"
42
+ # )
43
  self.system_prompt = (
44
+ "You are a helpful assistant tasked with answering questions using a set of tools.\n"
45
+ "Your final answer must strictly follow this format:\n"
46
+ "FINAL ANSWER: [ANSWER]\n"
47
+ "Only write the answer in that exact format. Do not explain anything. Do not include any other text. \n"
48
+ "If you are provided with a similar question and its final answer, and the current question is **exactly the same**, then simply return the same final answer without using any tools. \n"
49
+ "Only use tools if the current question is different from the similar one. \n"
50
+ "Examples: \n"
51
+ "- FINAL ANSWER: FunkMonk \n"
52
+ "- FINAL ANSWER: Paris \n"
53
+ "- FINAL ANSWER: 128 \n"
54
+ " \n"
55
+ "Once you output 'FINAL ANSWER', stop reasoning and do not call any tool.\n"
56
+ "If you do not follow this format exactly, your response will be considered incorrect. \n"
57
  )
58
  self.llm = HuggingFaceInferenceAPI(
59
  model_name="deepseek-ai/DeepSeek-R1-0528",