Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -149,19 +149,6 @@ class GaiaAgent:
|
|
| 149 |
FinalAnswerTool(),
|
| 150 |
]
|
| 151 |
|
| 152 |
-
# System prompt for better performance
|
| 153 |
-
self.system_prompt = (
|
| 154 |
-
"You are a helpful assistant that answers questions accurately. "
|
| 155 |
-
"When given a question:\n"
|
| 156 |
-
"1. Analyze it carefully and break it down step by step\n"
|
| 157 |
-
"2. Use tools when needed (web search, Python code, etc.)\n"
|
| 158 |
-
"3. For math/logic problems, write Python code to verify your answer\n"
|
| 159 |
-
"4. For factual questions, search the web if needed\n"
|
| 160 |
-
"5. Double-check your work before providing the final answer\n"
|
| 161 |
-
"6. Provide concise, direct answers without unnecessary explanation\n"
|
| 162 |
-
"7. If dealing with tables or data, use Python/pandas to analyze them accurately"
|
| 163 |
-
)
|
| 164 |
-
|
| 165 |
# Rate limiting
|
| 166 |
self.last_call_time = 0
|
| 167 |
self.min_delay = 1 # Groq is very fast, minimal delay needed
|
|
@@ -185,7 +172,6 @@ class GaiaAgent:
|
|
| 185 |
tools=self.tools,
|
| 186 |
add_base_tools=True,
|
| 187 |
additional_authorized_imports=["pandas", "numpy", "csv", "subprocess"],
|
| 188 |
-
system_prompt=self.system_prompt,
|
| 189 |
)
|
| 190 |
|
| 191 |
def _detect_complexity(self, question: str) -> str:
|
|
|
|
| 149 |
FinalAnswerTool(),
|
| 150 |
]
|
| 151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
# Rate limiting
|
| 153 |
self.last_call_time = 0
|
| 154 |
self.min_delay = 1 # Groq is very fast, minimal delay needed
|
|
|
|
| 172 |
tools=self.tools,
|
| 173 |
add_base_tools=True,
|
| 174 |
additional_authorized_imports=["pandas", "numpy", "csv", "subprocess"],
|
|
|
|
| 175 |
)
|
| 176 |
|
| 177 |
def _detect_complexity(self, question: str) -> str:
|