Thanh Vinh Vo
commited on
Commit
·
2022fb1
1
Parent(s):
f1472a1
update
Browse files
app.py
CHANGED
|
@@ -170,6 +170,11 @@ class BasicAgent:
|
|
| 170 |
prompt = f"""
|
| 171 |
Answer the following question:
|
| 172 |
"{question} {"The file name for this question is: " if has_file else ""} {question_id if has_file else ""}".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
"""
|
| 174 |
result = self.manager_agent.run(prompt)
|
| 175 |
print(f"Agent responded with: {result}")
|
|
|
|
| 170 |
prompt = f"""
|
| 171 |
Answer the following question:
|
| 172 |
"{question} {"The file name for this question is: " if has_file else ""} {question_id if has_file else ""}".
|
| 173 |
+
Please follow hints below:
|
| 174 |
+
1. `wikipedia` Python package is provided to interact with Wikipedia.
|
| 175 |
+
2. `pandas` Python package is provided. Please use it when there is need to extract structured data (such as tables) from HTML content.
|
| 176 |
+
3. `chess` Python package is provided. Please use it when there is need to solve chess problems.
|
| 177 |
+
4. Please take the question literally! Do not add any additional information or assumptions.
|
| 178 |
"""
|
| 179 |
result = self.manager_agent.run(prompt)
|
| 180 |
print(f"Agent responded with: {result}")
|