Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ class BasicAgent:
|
|
| 37 |
# llm=self.llm,
|
| 38 |
# )
|
| 39 |
self.agent_kwargs = {
|
| 40 |
-
"
|
| 41 |
"You are a helpful AI assistant completing GAIA benchmark tasks.\n"
|
| 42 |
"You MUST use the tools provided to answer the user's question. Do not answer from your own knowledge.\n"
|
| 43 |
"Carefully analyze the question to determine the most appropriate tool to use.\n"
|
|
@@ -51,8 +51,6 @@ class BasicAgent:
|
|
| 51 |
"- Use 'excel_food_sales_sum_tool' to extract total food sales from excel files. (e.g., 'Use excel_food_sales_sum to calculate the total food sales').\n"
|
| 52 |
"- Use 'google_web_search_tool' to find factual information about topics, events, people, from the web if not spificied to be fund in wikipedia etc. (e.g., 'find the population of France').\n"
|
| 53 |
"Do NOT guess or make up answers. If a tool cannot provide the answer, truthfully respond that you were unable to find the information.\n"
|
| 54 |
-
),
|
| 55 |
-
"suffix": (
|
| 56 |
"Use the tools to research or calculate the answer.\n"
|
| 57 |
"If a tool fails, explain the reason for the failure instead of hallucinating an answer.\n"
|
| 58 |
"Provide concise and direct answers as requested in the questions. Do not add extra information unless explicitly asked for.\n"
|
|
|
|
| 37 |
# llm=self.llm,
|
| 38 |
# )
|
| 39 |
self.agent_kwargs = {
|
| 40 |
+
"template": (
|
| 41 |
"You are a helpful AI assistant completing GAIA benchmark tasks.\n"
|
| 42 |
"You MUST use the tools provided to answer the user's question. Do not answer from your own knowledge.\n"
|
| 43 |
"Carefully analyze the question to determine the most appropriate tool to use.\n"
|
|
|
|
| 51 |
"- Use 'excel_food_sales_sum_tool' to extract total food sales from excel files. (e.g., 'Use excel_food_sales_sum to calculate the total food sales').\n"
|
| 52 |
"- Use 'google_web_search_tool' to find factual information about topics, events, people, from the web if not spificied to be fund in wikipedia etc. (e.g., 'find the population of France').\n"
|
| 53 |
"Do NOT guess or make up answers. If a tool cannot provide the answer, truthfully respond that you were unable to find the information.\n"
|
|
|
|
|
|
|
| 54 |
"Use the tools to research or calculate the answer.\n"
|
| 55 |
"If a tool fails, explain the reason for the failure instead of hallucinating an answer.\n"
|
| 56 |
"Provide concise and direct answers as requested in the questions. Do not add extra information unless explicitly asked for.\n"
|