Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,13 @@ def process_tool_output(tool_output):
|
|
| 16 |
return '\n'.join([item.get('title', '') for item in tool_output if item.get('title')]) or 'No results found'
|
| 17 |
return str(tool_output)
|
| 18 |
|
| 19 |
-
sys_prompt ="You are a helpful assistant tasked with answering questions using a set of tools.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
class BasicAgent:
|
| 21 |
def __init__(self):
|
| 22 |
print("BasicAgent initialized.")
|
|
|
|
| 16 |
return '\n'.join([item.get('title', '') for item in tool_output if item.get('title')]) or 'No results found'
|
| 17 |
return str(tool_output)
|
| 18 |
|
| 19 |
+
sys_prompt ="""You are a helpful assistant tasked with answering questions using a set of tools.
|
| 20 |
+
Now, I will ask you a question. Report your thoughts, and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER].
|
| 21 |
+
YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
|
| 22 |
+
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.
|
| 23 |
+
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.
|
| 24 |
+
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.
|
| 25 |
+
Your answer should only start with "FINAL ANSWER: ", then follows with the answer. """
|
| 26 |
class BasicAgent:
|
| 27 |
def __init__(self):
|
| 28 |
print("BasicAgent initialized.")
|