WEB API independent

This commit is contained in:
yhjun1026 2023-07-13 10:19:33 +08:00
parent 3638f4848f
commit 73b3b7069f
2 changed files with 4 additions and 3 deletions

View File

@ -23,10 +23,11 @@ According to the characteristics of the analyzed data, choose the most suitable
{supported_chat_type}
Pay attention to the length of the output content of the analysis result, do not exceed 4000tokens
Do not use unprovided fields and field value in data analysis SQL, Do not use column pay_status as a query condition in SQL.
According to the characteristics of the analyzed data, choose the best one from the charts provided below to display, use different types of charts as much as possiblechart types:
{supported_chat_type}
Do not use unprovided fields and field value in data analysis SQL.
Give {dialect} data analysis SQL, analysis title, display method and analytical thinking,respond in the following json format:
{response}
Ensure the response is correct json and can be parsed by Python json.loads

View File

@ -48,8 +48,8 @@ class ChatWithDbAutoExecute(BaseChat):
"input": self.current_user_input,
"top_k": str(self.top_k),
"dialect": self.database.dialect,
"table_info": self.database.table_simple_info(self.db_connect)
# "table_info": client.get_similar_tables(dbname=self.db_name, query=self.current_user_input, topk=self.top_k)
# "table_info": self.database.table_simple_info(self.db_connect)
"table_info": client.get_similar_tables(dbname=self.db_name, query=self.current_user_input, topk=self.top_k)
}
return input_values