We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c54902e commit c136430Copy full SHA for c136430
backend/apps/datasource/crud/table.py
@@ -80,9 +80,9 @@ def save_table_embedding(session: Session, ids: List[int]):
80
schema_table += ",\n".join(field_list)
81
schema_table += '\n]\n'
82
# table_schema.append(schema_table)
83
- emb = model.embed_query(schema_table)
+ emb = json.dumps(model.embed_query(schema_table))
84
85
- stmt = update(CoreTable).where(and_(CoreTable.id == id)).values(embedding=json.dumps(emb))
+ stmt = update(CoreTable).where(and_(CoreTable.id == id)).values(embedding=emb)
86
session.execute(stmt)
87
session.commit()
88
0 commit comments