Spaces:
Runtime error
Runtime error
Commit
·
9ef9d5a
1
Parent(s):
98cbfdc
update prompt
Browse files
app.py
CHANGED
@@ -362,6 +362,12 @@ index = pinecone.Index(index_name)
|
|
362 |
# print(index.describe_index_stats())
|
363 |
|
364 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
Vector Database Search: This is the internal database to search information firstly. If information is found, it is trustful.
|
366 |
Duckduckgo Internet Search: Useful to search information in internet when it is not available in other tools.
|
367 |
Wikipedia Search: Useful to search a topic, country or person when there is no availble information in vector database
|
@@ -370,9 +376,10 @@ Calculator: Useful for when you need to answer questions about math.
|
|
370 |
Text To Sound: Useful when you need to convert text into sound file."""
|
371 |
|
372 |
|
373 |
-
PREFIX = """Answer the following questions as best you can with details.
|
374 |
-
Only when there is no information available from vector database, you can search information by using other tools.
|
375 |
You can always use tools to convert text to sound.
|
|
|
|
|
376 |
You have access to the following tools:"""
|
377 |
|
378 |
FORMAT_INSTRUCTIONS = """Use the following format:
|
@@ -388,7 +395,6 @@ Final Answer: the final answer to the original input question"""
|
|
388 |
|
389 |
SUFFIX = """Begin!
|
390 |
|
391 |
-
|
392 |
Question: {input}
|
393 |
Thought:{agent_scratchpad}"""
|
394 |
|
|
|
362 |
# print(index.describe_index_stats())
|
363 |
|
364 |
"""
|
365 |
+
Answer the following questions as best you can with details.
|
366 |
+
You can always use tools to convert text to sound.
|
367 |
+
You must always check internal vector database first and try to answer the question based on the information in internal vector database only.
|
368 |
+
Only when there is no information available from vector database, you can search information by using other tools.
|
369 |
+
You have access to the following tools:
|
370 |
+
|
371 |
Vector Database Search: This is the internal database to search information firstly. If information is found, it is trustful.
|
372 |
Duckduckgo Internet Search: Useful to search information in internet when it is not available in other tools.
|
373 |
Wikipedia Search: Useful to search a topic, country or person when there is no availble information in vector database
|
|
|
376 |
Text To Sound: Useful when you need to convert text into sound file."""
|
377 |
|
378 |
|
379 |
+
PREFIX = """Answer the following questions as best you can with details.
|
|
|
380 |
You can always use tools to convert text to sound.
|
381 |
+
You must always check internal vector database first and try to answer the question based on the information in internal vector database only.
|
382 |
+
Only when there is no information available from vector database, you can search information by using other tools.
|
383 |
You have access to the following tools:"""
|
384 |
|
385 |
FORMAT_INSTRUCTIONS = """Use the following format:
|
|
|
395 |
|
396 |
SUFFIX = """Begin!
|
397 |
|
|
|
398 |
Question: {input}
|
399 |
Thought:{agent_scratchpad}"""
|
400 |
|