Closed radekosmulski closed 10 months ago
After your insert into
statement, try running con.commit()
. The vss0 tables do some non-standard things with transactions, and requires a commit
in order to save inserted data correctly.
That being said, the Does the column factory string end with IDMap2
suggestion is not necessary and confusing, I'll work to change that. You don't need the explicit factory="Flat,IDMap2"
argument in your case, you can remove it to make it a bit easier to understand
Thank you so much for your help! 🙂🙏 Really appreciate it!
I am using Python.
I create a
vss0
table as follows:I then populate it with embeddings (I unit normalize my vectors like so:
faiss.normalize_L2(ctx_emb)
):But when I try to pull anything out doing the following:
I get an error:
Thank you so much for your help 🙏
Ultimately, I would like to be able to query for closest vectors like so: