Skip to content

Commit 865ac8f

Browse files
committed
feat: Vector retrieval matches tables
1 parent eb82d4f commit 865ac8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/chat/task/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __init__(self, current_user: CurrentUser, chat_question: ChatQuestion,
115115
raise SingleMessageError("No available datasource configuration found")
116116
chat_question.engine = (ds.type_name if ds.type != 'excel' else 'PostgreSQL') + get_version(ds)
117117
chat_question.db_schema = get_table_schema(session=self.session, current_user=current_user, ds=ds,
118-
question=self.chat_question.question)
118+
question=chat_question.question)
119119

120120
self.generate_sql_logs = list_generate_sql_logs(session=self.session, chart_id=chat_id)
121121
self.generate_chart_logs = list_generate_chart_logs(session=self.session, chart_id=chat_id)

0 commit comments

Comments
 (0)