mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-03 01:12:15 +00:00
fix:chat data summary
This commit is contained in:
parent
54ce53326c
commit
0efaffc031
@ -45,16 +45,16 @@ class ChatWithDbAutoExecute(BaseChat):
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
raise ValueError("Could not import DBSummaryClient. ")
|
raise ValueError("Could not import DBSummaryClient. ")
|
||||||
client = DBSummaryClient()
|
client = DBSummaryClient()
|
||||||
# try:
|
try:
|
||||||
# table_infos = client.get_db_summary(
|
table_infos = client.get_db_summary(
|
||||||
# dbname=self.db_name, query=self.current_user_input, topk=CFG.KNOWLEDGE_SEARCH_TOP_SIZE
|
dbname=self.db_name, query=self.current_user_input, topk=CFG.KNOWLEDGE_SEARCH_TOP_SIZE
|
||||||
# )
|
)
|
||||||
# except Exception as e:
|
except Exception as e:
|
||||||
# print("db summary find error!" + str(e))
|
print("db summary find error!" + str(e))
|
||||||
# table_infos = self.database.table_simple_info()
|
|
||||||
#
|
|
||||||
table_infos = self.database.table_simple_info()
|
table_infos = self.database.table_simple_info()
|
||||||
|
|
||||||
|
# table_infos = self.database.table_simple_info()
|
||||||
|
|
||||||
input_values = {
|
input_values = {
|
||||||
"input": self.current_user_input,
|
"input": self.current_user_input,
|
||||||
"top_k": str(self.top_k),
|
"top_k": str(self.top_k),
|
||||||
|
Loading…
Reference in New Issue
Block a user