feat: Vector retrieval matches tables

This commit is contained in:
junjun
2025-09-23 16:09:28 +08:00
committed by Junjun
parent 865ac8fcab
commit 82fbf7f94f
+4 -3
View File
@@ -377,9 +377,10 @@ def get_table_schema(session: SessionDep, current_user: CurrentUser, ds: CoreDat
schema_table += ",\n".join(field_list)
schema_table += '\n]\n'
tables.append(schema_table)
# do table embedding
if embedding:
tables = get_table_embedding(session, current_user, tables, question)
# do table embedding
if embedding:
tables = get_table_embedding(session, current_user, tables, question)
# todo 外键
for s in tables: