david-thrower commited on
Commit
a3300fe
·
verified ·
1 Parent(s): 8dcdef2

Update app.py

Browse files

Added more clarifications for the final_answer!

Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -271,7 +271,8 @@ wikipedia_summary = # generate this from the respective results
271
  final_answer(web_results_summary + wikipedia_summary)
272
  ```
273
 
274
- Again one step at a time AND ONLY USE VARIABLES YOU HAVE ALREADY DEFINED.
 
275
 
276
  Now Begin!
277
 
@@ -279,7 +280,7 @@ Now Begin!
279
  {{custom_instructions}}
280
  {%- endif %}
281
 
282
- Now Begin!
283
  '''
284
 
285
  agent = CodeAgent(
 
271
  final_answer(web_results_summary + wikipedia_summary)
272
  ```
273
 
274
+ Always summarize and explain the information you plan to use for the final answer (the call to final_answer will be a stand alone prompt).
275
+ Again one step at a time AND ONLY USE VARIABLES YOU HAVE ALREADY DEFINED.
276
 
277
  Now Begin!
278
 
 
280
  {{custom_instructions}}
281
  {%- endif %}
282
 
283
+ You got this! Now Begin!
284
  '''
285
 
286
  agent = CodeAgent(