Spaces:
Runtime error
Runtime error
Commit
·
e85fc80
1
Parent(s):
bd17060
add back wikipedia
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ math_tool = Tool(
|
|
83 |
description ='Useful for when you need to answer questions about math.'
|
84 |
)
|
85 |
|
86 |
-
tools = [DB_Search(), duckduckgo_tool, python_tool, math_tool]
|
87 |
|
88 |
# tools = load_tools(["Vector Database Search","Wikipedia Search","Python REPL","llm-math"], llm=llm)
|
89 |
|
@@ -101,12 +101,13 @@ index = pinecone.Index(index_name)
|
|
101 |
# print(pinecone.whoami())
|
102 |
# print(index.describe_index_stats())
|
103 |
|
104 |
-
PREFIX = """Answer the following questions as best you can with
|
105 |
Only when there is no information available from vector database, you can search information by using another tools.
|
106 |
You have access to the following tools:
|
107 |
|
108 |
Vector Database Search: This is the internal database to search information firstly. If information is found, it is trustful.
|
109 |
-
Duckduckgo Internet Search: Useful to search information in internet when it is not available in other tools
|
|
|
110 |
Python REPL: Useful when you need python to answer questions. You should input python code.
|
111 |
Calculator: Useful for when you need to answer questions about math."""
|
112 |
|
|
|
83 |
description ='Useful for when you need to answer questions about math.'
|
84 |
)
|
85 |
|
86 |
+
tools = [DB_Search(), duckduckgo_tool, wikipedia_tool, python_tool, math_tool]
|
87 |
|
88 |
# tools = load_tools(["Vector Database Search","Wikipedia Search","Python REPL","llm-math"], llm=llm)
|
89 |
|
|
|
101 |
# print(pinecone.whoami())
|
102 |
# print(index.describe_index_stats())
|
103 |
|
104 |
+
PREFIX = """Answer the following questions as best you can with details. You must always check internal vector database first and try to answer the question based on the information in internal vector database only.
|
105 |
Only when there is no information available from vector database, you can search information by using another tools.
|
106 |
You have access to the following tools:
|
107 |
|
108 |
Vector Database Search: This is the internal database to search information firstly. If information is found, it is trustful.
|
109 |
+
Duckduckgo Internet Search: Useful to search information in internet when it is not available in other tools.
|
110 |
+
Wikipedia Search: Useful to search a topic, country or person when there is no availble information in vector database
|
111 |
Python REPL: Useful when you need python to answer questions. You should input python code.
|
112 |
Calculator: Useful for when you need to answer questions about math."""
|
113 |
|