ameglei-external commited on
Commit
de2e5f9
·
verified ·
1 Parent(s): 7dc40c2

Change prompt to reply only with final answer

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -60,7 +60,11 @@ class BasicAgent:
60
  # A single string containing the info from the web or a fallback message.
61
  # """
62
  sys_msg = SystemMessage(
63
- content=f"""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."""
 
 
 
 
64
  )
65
 
66
  state = State(
 
60
  # A single string containing the info from the web or a fallback message.
61
  # """
62
  sys_msg = SystemMessage(
63
+ content=f"""
64
+ You are a general AI assistant. I will ask you a question.
65
+ Your final answer should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
66
+ Please, reply with the answer and nothing else!
67
+ """
68
  )
69
 
70
  state = State(