BoddyGus commited on
Commit
6565403
·
verified ·
1 Parent(s): 98d66c5

Updating app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -56,12 +56,13 @@ class BasicAgent:
56
  agent=AgentType.OPENAI_FUNCTIONS,
57
  verbose=True,
58
  agent_kwargs={
59
- "system_message": SystemMessage(content="You are a general AI assistant. I will ask you a question. "
60
  "Report your thoughts, and finish your answer with the following template: "
61
  "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. "
62
  "If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. "
63
  "If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. "
64
- "If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string." }
 
65
  )
66
 
67
  def __call__(self, question: str) -> str:
 
56
  agent=AgentType.OPENAI_FUNCTIONS,
57
  verbose=True,
58
  agent_kwargs={
59
+ "system_message": SystemMessage(content="You are a general AI assistant. I will ask you a question. "
60
  "Report your thoughts, and finish your answer with the following template: "
61
  "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. "
62
  "If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. "
63
  "If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. "
64
+ "If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.")
65
+ }
66
  )
67
 
68
  def __call__(self, question: str) -> str: