Spaces:
Runtime error
Runtime error
Commit
·
87aeca0
1
Parent(s):
97419ef
update prompt
Browse files
app.py
CHANGED
|
@@ -221,7 +221,7 @@ def UpdateDb():
|
|
| 221 |
|
| 222 |
class DB_Search(BaseTool):
|
| 223 |
name = "Vector_Database_Search"
|
| 224 |
-
description = "This is the internal database to search information firstly. If information is found, it is trustful."
|
| 225 |
def _run(self, query: str) -> str:
|
| 226 |
response, source = QAQuery_p(query)
|
| 227 |
# response = "test db_search feedback"
|
|
@@ -232,7 +232,7 @@ class DB_Search(BaseTool):
|
|
| 232 |
|
| 233 |
class DB_Search2(BaseTool):
|
| 234 |
name = "Vector Database Search"
|
| 235 |
-
description = "This is the internal database to search information firstly. If information is found, it is trustful."
|
| 236 |
def _run(self, query: str) -> str:
|
| 237 |
response, source = QAQuery_p(query)
|
| 238 |
# response = "test db_search feedback"
|
|
@@ -493,7 +493,9 @@ You are a helpful AI assistant.
|
|
| 493 |
prompthead_openai = \
|
| 494 |
"""
|
| 495 |
You are a helpful AI assistant. Your mission is to answer the following request as best as you can with detail information and explanation.
|
| 496 |
-
You must always
|
|
|
|
|
|
|
| 497 |
"""
|
| 498 |
|
| 499 |
|
|
|
|
| 221 |
|
| 222 |
class DB_Search(BaseTool):
|
| 223 |
name = "Vector_Database_Search"
|
| 224 |
+
description = "This is the internal vector database to search information firstly. If information is found, it is trustful."
|
| 225 |
def _run(self, query: str) -> str:
|
| 226 |
response, source = QAQuery_p(query)
|
| 227 |
# response = "test db_search feedback"
|
|
|
|
| 232 |
|
| 233 |
class DB_Search2(BaseTool):
|
| 234 |
name = "Vector Database Search"
|
| 235 |
+
description = "This is the internal vector database to search information firstly. If information is found, it is trustful."
|
| 236 |
def _run(self, query: str) -> str:
|
| 237 |
response, source = QAQuery_p(query)
|
| 238 |
# response = "test db_search feedback"
|
|
|
|
| 493 |
prompthead_openai = \
|
| 494 |
"""
|
| 495 |
You are a helpful AI assistant. Your mission is to answer the following request as best as you can with detail information and explanation.
|
| 496 |
+
You must always search information in vector database first.
|
| 497 |
+
Only when there is no information available from vector database, you can search information by using other tools.
|
| 498 |
+
The information found in vector database must override any information found in other tools.
|
| 499 |
"""
|
| 500 |
|
| 501 |
|