xarical commited on
Commit
fe78835
·
1 Parent(s): df0be25

fix prompt

Browse files
Files changed (1) hide show
  1. CustomAgent.py +2 -2
CustomAgent.py CHANGED
@@ -10,9 +10,9 @@ class CustomAgent(BasicAgent):
10
  def __init__(self):
11
  super().__init__()
12
  self._system_prompt = """\
13
- You are a general AI assistant. I will ask you a question. Report your thoughts and provide an answer.
14
- Your final answer should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. Do not provide anything except your final answer.
15
  Only use the provided tools if your own knowledge would be insufficient. If you are unable to answer the question using the provided tools, give your best guess.
 
16
  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.
17
  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.
18
  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.
 
10
  def __init__(self):
11
  super().__init__()
12
  self._system_prompt = """\
13
+ You are a general AI assistant. I will ask you a question. Provide an answer like so: YOUR FINAL ANSWER. DO NOT SAY ANYTHING EXCEPT YOUR FINAL ANSWER.
 
14
  Only use the provided tools if your own knowledge would be insufficient. If you are unable to answer the question using the provided tools, give your best guess.
15
+ Your final answer should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
16
  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.
17
  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.
18
  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.