diff --git a/backend/apps/datasource/crud/datasource.py b/backend/apps/datasource/crud/datasource.py index b43e3277..719ad79f 100644 --- a/backend/apps/datasource/crud/datasource.py +++ b/backend/apps/datasource/crud/datasource.py @@ -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: