Skip to content

Commit 8e29511

Browse files
committed
feat: Vector retrieval matches tables
1 parent 1ac0b74 commit 8e29511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/datasource/crud/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def save_table_embedding(session: Session, ids: List[int]):
8181
# table_schema.append(schema_table)
8282
emb = json.dumps(model.embed_query(schema_table))
8383

84-
stmt = update(CoreTable).where(and_(CoreTable.id == id)).values(embedding=emb)
84+
stmt = update(CoreTable).where(and_(CoreTable.id == _id)).values(embedding=emb)
8585
session.execute(stmt)
8686
session.commit()
8787

0 commit comments

Comments
 (0)