Spaces:
Runtime error
Runtime error
Commit
·
baca904
1
Parent(s):
74c9c64
correct chathmi2 issue
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ class DB_Search(BaseTool):
|
|
22 |
name = "Vector Database Search"
|
23 |
description = "This is the vector database to search local information"
|
24 |
def _run(self, query: str) -> str:
|
25 |
-
|
26 |
-
response = "test db_search feedback"
|
27 |
return response
|
28 |
|
29 |
def _arun(self, query: str):
|
@@ -92,7 +92,7 @@ def chathmi(message, history):
|
|
92 |
# yield history
|
93 |
|
94 |
def chathmi2(message, history):
|
95 |
-
response = agent(message)
|
96 |
time.sleep(0.3)
|
97 |
print(history)
|
98 |
yield response
|
|
|
22 |
name = "Vector Database Search"
|
23 |
description = "This is the vector database to search local information"
|
24 |
def _run(self, query: str) -> str:
|
25 |
+
response, source = QAQuery_p(query)
|
26 |
+
# response = "test db_search feedback"
|
27 |
return response
|
28 |
|
29 |
def _arun(self, query: str):
|
|
|
92 |
# yield history
|
93 |
|
94 |
def chathmi2(message, history):
|
95 |
+
response = agent.run(input = message)
|
96 |
time.sleep(0.3)
|
97 |
print(history)
|
98 |
yield response
|