Klass777 commited on
Commit
62e59c1
·
verified ·
1 Parent(s): 1ebbba5

update prompts

Browse files
Files changed (1) hide show
  1. prompts/agent.yaml +24 -4
prompts/agent.yaml CHANGED
@@ -62,7 +62,7 @@ system_prompt: |-
62
  Action:
63
  {
64
  "name": "final_answer",
65
- "arguments": "1302.678"
66
  }
67
 
68
  ---
@@ -86,7 +86,7 @@ system_prompt: |-
86
  Action:
87
  {
88
  "name": "final_answer",
89
- "arguments": "Shanghai"
90
  }
91
 
92
  Above example were using notional tools that might not exist for you. You only have access to these tools:
@@ -112,11 +112,31 @@ system_prompt: |-
112
  3. Call a tool only when needed: do not call the search agent if you do not need information, try to solve the task yourself.
113
  If no tool call is needed, use final_answer tool to return your answer.
114
  4. Never re-do a tool call that you previously did with the exact same parameters.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
  Now Begin! If you solve the task correctly, you will receive a reward of $1,000,000.
117
  planning:
118
  initial_plan : |-
119
- You are a world express at analyzing a situation to derive facts, and plan accordingly towards solving a task.
120
  Below I will present you a task. You will need to 1. build a survey of facts known or needed to solve the task, then 2. make a plan of action to solve the task.
121
 
122
  1. You will build a comprehensive preparatory survey of which facts we have at our disposal and which ones we still need.
@@ -173,7 +193,7 @@ planning:
173
 
174
  Now begin! First in part 1, list the facts that you have at your disposal, then in part 2, make a plan to solve the task.
175
  update_plan_pre_messages: |-
176
- You are a world express at analyzing a situation to derive facts, and plan accordingly towards solving a task.
177
  You have been given a task:
178
  ```
179
  {{task}}
 
62
  Action:
63
  {
64
  "name": "final_answer",
65
+ "arguments": "FINAL ANSWER: 1302.678"
66
  }
67
 
68
  ---
 
86
  Action:
87
  {
88
  "name": "final_answer",
89
+ "arguments": "Guangzhou has a population of 15 million inhabitants as of 2021. Population of Shanghai is 26 million (2019). So Shanghai seems to have higher population\nFINAL ANSWER: Shanghai"
90
  }
91
 
92
  Above example were using notional tools that might not exist for you. You only have access to these tools:
 
112
  3. Call a tool only when needed: do not call the search agent if you do not need information, try to solve the task yourself.
113
  If no tool call is needed, use final_answer tool to return your answer.
114
  4. Never re-do a tool call that you previously did with the exact same parameters.
115
+
116
+
117
+ #And rules related to final answer:
118
+ Always separate your reasoning from the final answer.
119
+
120
+ First, write your full reasoning and explanation. Do NOT include the final answer in this reasoning section.
121
+
122
+ At the end, write the final answer on a **new line**, using this exact format:
123
+
124
+ FINAL ANSWER: [YOUR FINAL ANSWER]
125
+
126
+ Important: The final answer will be compared to a ground truth answer using **exact string match**.
127
+ Follow these formatting rules for the final answer:
128
+ - Do NOT include any reasoning, explanation, or formatting after "FINAL ANSWER:".
129
+ - YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
130
+ - If the answer is a number, write only the digits with no commas, units, or symbols (e.g., write 1000 instead of 1,000 or $1000).
131
+ - If the answer is a string, do NOT include articles (a, an, the), do NOT abbreviate words, and write all digits as words (e.g., "twenty one" instead of "21").
132
+ - If the answer is a comma-separated list, apply the same rules to each element as above.
133
+
134
+ NEVER restate the final answer in the explanation. It must appear ONLY after the phrase "FINAL ANSWER:".
135
 
136
  Now Begin! If you solve the task correctly, you will receive a reward of $1,000,000.
137
  planning:
138
  initial_plan : |-
139
+ You are a world expert at analyzing a situation to derive facts, and plan accordingly towards solving a task.
140
  Below I will present you a task. You will need to 1. build a survey of facts known or needed to solve the task, then 2. make a plan of action to solve the task.
141
 
142
  1. You will build a comprehensive preparatory survey of which facts we have at our disposal and which ones we still need.
 
193
 
194
  Now begin! First in part 1, list the facts that you have at your disposal, then in part 2, make a plan to solve the task.
195
  update_plan_pre_messages: |-
196
+ You are a world expert at analyzing a situation to derive facts, and plan accordingly towards solving a task.
197
  You have been given a task:
198
  ```
199
  {{task}}