Martin Bär
commited on
Commit
·
8cb5d70
1
Parent(s):
7a8dd44
Remove webpage search tool
Browse files- .gitignore +1 -0
- basic_agent.py +2 -2
.gitignore
CHANGED
@@ -1,2 +1,3 @@
|
|
|
|
1 |
.venv
|
2 |
tool_tests.ipynb
|
|
|
1 |
+
__pycache__
|
2 |
.venv
|
3 |
tool_tests.ipynb
|
basic_agent.py
CHANGED
@@ -36,10 +36,10 @@ class BasicAgent:
|
|
36 |
|
37 |
# Create Alfred with all the tools
|
38 |
self.agent = AgentWorkflow.from_tools_or_functions(
|
39 |
-
wiki_search_tool_las
|
40 |
llm=llm,
|
41 |
verbose=True,
|
42 |
-
system_prompt=("You are a helpful agent that can search Wikipedia for answers. "
|
43 |
"Please be concise when answering questions and make sure your final outputs are relevant to the question.")
|
44 |
)
|
45 |
|
|
|
36 |
|
37 |
# Create Alfred with all the tools
|
38 |
self.agent = AgentWorkflow.from_tools_or_functions(
|
39 |
+
wiki_search_tool_las + [search_tool], # webpage_tool does not work properly
|
40 |
llm=llm,
|
41 |
verbose=True,
|
42 |
+
system_prompt=("You are a helpful agent that can search Wikipedia and the Internet for answers. "
|
43 |
"Please be concise when answering questions and make sure your final outputs are relevant to the question.")
|
44 |
)
|
45 |
|