Fix system prompt
Browse files- CustomAgent.py +3 -2
CustomAgent.py
CHANGED
|
@@ -10,11 +10,12 @@ 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
|
| 14 |
-
|
| 15 |
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.
|
| 16 |
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.
|
| 17 |
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.
|
|
|
|
| 18 |
""" # System prompt, adapted from the GAIA team's example at https://huggingface.co/spaces/gaia-benchmark/leaderboard
|
| 19 |
self._model = OpenaiChatModel(
|
| 20 |
model="llama-3.3-70b-versatile",
|
|
|
|
| 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 using, if appropriate, the tools at your disposal.
|
| 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 |
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.
|
| 16 |
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.
|
| 17 |
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.
|
| 18 |
+
Question: {question}
|
| 19 |
""" # System prompt, adapted from the GAIA team's example at https://huggingface.co/spaces/gaia-benchmark/leaderboard
|
| 20 |
self._model = OpenaiChatModel(
|
| 21 |
model="llama-3.3-70b-versatile",
|