From 865ac8fcab2bbb8ab98f5b297dbd2e78962fcff2 Mon Sep 17 00:00:00 2001 From: junjun Date: Tue, 23 Sep 2025 15:35:28 +0800 Subject: [PATCH] feat: Vector retrieval matches tables --- backend/apps/chat/task/llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/chat/task/llm.py b/backend/apps/chat/task/llm.py index f990fe3c..15b9f03a 100644 --- a/backend/apps/chat/task/llm.py +++ b/backend/apps/chat/task/llm.py @@ -115,7 +115,7 @@ class LLMService: raise SingleMessageError("No available datasource configuration found") chat_question.engine = (ds.type_name if ds.type != 'excel' else 'PostgreSQL') + get_version(ds) chat_question.db_schema = get_table_schema(session=self.session, current_user=current_user, ds=ds, - question=self.chat_question.question) + question=chat_question.question) self.generate_sql_logs = list_generate_sql_logs(session=self.session, chart_id=chat_id) self.generate_chart_logs = list_generate_chart_logs(session=self.session, chart_id=chat_id)