SergeyO7 commited on
Commit
693df45
·
verified ·
1 Parent(s): bed6833

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +18 -111
prompts.yaml CHANGED
@@ -67,123 +67,30 @@ planning:
67
  3. {step3}
68
  Validation checkpoint: {validation_step}
69
  variables: ["step1", "step2", "step3", "validation_step"]
70
- initial_facts: |-
71
- Below I will present you a task.
72
- You will now build a comprehensive preparatory survey of which facts we have at our disposal and which ones we still need.
73
- To do so, you will have to read the task and identify things that must be discovered in order to successfully complete it.
74
- Don't make any assumptions. For each item, provide a thorough reasoning. Here is how you will structure this survey:
75
- ---
76
- ### 1. Facts given in the task
77
- List here the specific facts given in the task that could help you (there might be nothing here).
78
-
79
- ### 2. Facts to look up
80
- List here any facts that we may need to look up.
81
- Also list where to find each of these, for instance a website, a file... - maybe the task contains some sources that you should re-use here.
82
-
83
- ### 3. Facts to derive
84
- List here anything that we want to derive from the above by logical reasoning, for instance computation or simulation.
85
-
86
- Keep in mind that "facts" will typically be specific names, dates, values, etc. Your answer should use the below headings:
87
- ### 1. Facts given in the task
88
- ### 2. Facts to look up
89
- ### 3. Facts to derive
90
- Do not add anything else.
91
 
92
  initial_plan: |-
93
- You are a world expert at making efficient plans to solve any task using a set of carefully crafted tools.
94
- Now for the given task, develop a step-by-step high-level plan taking into account the above inputs and list of facts.
95
- This plan should involve individual tasks based on the available tools, that if executed correctly will yield the correct answer.
96
- Do not skip steps, do not add any superfluous steps. Only write the high-level plan, DO NOT DETAIL INDIVIDUAL TOOL CALLS.
97
- After writing the final step of the plan, write the '\n<end_plan>' tag and stop there.
98
- Here is your task:
99
-
100
- Task:
101
- ```
102
- {{task}}
103
- ```
104
- You can leverage these tools:
105
- {%- for tool in tools.values() %}
106
- - {{ tool.name }}: {{ tool.description }}
107
- Takes inputs: {{tool.inputs}}
108
- Returns an output of type: {{tool.output_type}}
109
- {%- endfor %}
110
-
111
- {%- if managed_agents and managed_agents.values() | list %}
112
- You can also give tasks to team members.
113
- Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'request', a long string explaining your request.
114
- Given that this team member is a real human, you should be very verbose in your request.
115
- Here is a list of the team members that you can call:
116
- {%- for agent in managed_agents.values() %}
117
- - {{ agent.name }}: {{ agent.description }}
118
- {%- endfor %}
119
- {%- else %}
120
- {%- endif %}
121
-
122
- List of facts that you know:
123
- ```
124
- {{answer_facts}}
125
- ```
126
- Now begin! Write your plan below.
127
  update_facts_pre_messages: |-
128
- You are a world expert at gathering known and unknown facts based on a conversation.
129
- Below you will find a task, and a history of attempts made to solve the task. You will have to produce a list of these:
130
- ### 1. Facts given in the task
131
- ### 2. Facts that we have learned
132
- ### 3. Facts still to look up
133
- ### 4. Facts still to derive
134
- Find the task and history below:
135
  update_facts_post_messages: |-
136
- Earlier we've built a list of facts.
137
- But since in your previous steps you may have learned useful new facts or invalidated some false ones.
138
- Please update your list of facts based on the previous history, and provide these headings:
139
- ### 1. Facts given in the task
140
- ### 2. Facts that we have learned
141
- ### 3. Facts still to look up
142
- ### 4. Facts still to derive
143
- Now write your new list of facts below.
144
  update_plan_pre_messages: |-
145
- You are a world expert at making efficient plans to solve any task using a set of carefully crafted tools.
146
- You have been given a task:
147
- ```
148
- {{task}}
149
- ```
150
- Find below the record of what has been tried so far to solve it. Then you will be asked to make an updated plan to solve the task.
151
- If the previous tries so far have met some success, you can make an updated plan based on these actions.
152
- If you are stalled, you can make a completely new plan starting from scratch.
153
  update_plan_post_messages: |-
154
- You're still working towards solving this task:
155
- ```
156
- {{task}}
157
- ```
158
- You can leverage these tools:
159
- {%- for tool in tools.values() %}
160
- - {{ tool.name }}: {{ tool.description }}
161
- Takes inputs: {{tool.inputs}}
162
- Returns an output of type: {{tool.output_type}}
163
- {%- endfor %}
164
- {%- if managed_agents and managed_agents.values() | list %}
165
- You can also give tasks to team members.
166
- Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'task'.
167
- Given that this team member is a real human, you should be very verbose in your task, it should be a long string providing informations as detailed as necessary.
168
- Here is a list of the team members that you can call:
169
- {%- for agent in managed_agents.values() %}
170
- - {{ agent.name }}: {{ agent.description }}
171
- {%- endfor %}
172
- {%- else %}
173
- {%- endif %}
174
-
175
- Here is the up to date list of facts that you know:
176
- ```
177
- {{facts_update}}
178
- ```
179
-
180
- Now for the given task, develop a step-by-step high-level plan taking into account the above inputs and list of facts.
181
- This plan should involve individual tasks based on the available tools, that if executed correctly will yield the correct answer.
182
- Beware that you have {remaining_steps} steps remaining.
183
- Do not skip steps, do not add any superfluous steps. Only write the high-level plan, DO NOT DETAIL INDIVIDUAL TOOL CALLS.
184
- After writing the final step of the plan, write the '\n<end_plan>' tag and stop there.
185
-
186
- Now write your new plan below.
187
 
188
  final_answer:
189
  template: |
 
67
  3. {step3}
68
  Validation checkpoint: {validation_step}
69
  variables: ["step1", "step2", "step3", "validation_step"]
70
+
71
+ initial_facts:
72
+ template: "Below I will present you a task. You will now build a comprehensive preparatory survey of which facts we have at our disposal and which ones we still need."
73
+ variables: []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
 
75
  initial_plan: |-
76
+ template: "You are a world expert at making efficient plans to solve any task using a set of carefully crafted tools."
77
+ variables: []
78
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  update_facts_pre_messages: |-
80
+ template: "You are a world expert at gathering known and unknown facts based on a conversation."
81
+ variables: []
82
+
 
 
 
 
83
  update_facts_post_messages: |-
84
+ template: "Earlier we've built a list of facts. But since in your previous steps you may have learned useful new facts or invalidated some false ones."
85
+ variables: []
86
+
 
 
 
 
 
87
  update_plan_pre_messages: |-
88
+ template: "You are a world expert at making efficient plans to solve any task using a set of carefully crafted tools."
89
+ variables: []
90
+
 
 
 
 
 
91
  update_plan_post_messages: |-
92
+ template: "You're still working towards solving this task"
93
+ variables: []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
 
95
  final_answer:
96
  template: |