asg017 / sqlite-vss

A SQLite extension for efficient vector search, based on Faiss!
MIT License
1.59k stars 58 forks source link

libc++abi: terminating due to uncaught exception of type faiss::FaissException #119

Open floydspace opened 4 months ago

floydspace commented 4 months ago

I'm using node version of sqlite-vss, an running it causes following error:

libc++abi: terminating due to uncaught exception of type faiss::FaissException: Error in virtual void faiss::IndexFlat::search(idx_t, const float *, idx_t, float *, idx_t *, const SearchParameters *) const at /Users/alex/actions/sqlite-vss-runner/_work/sqlite-vss/sqlite-vss/vendor/faiss/faiss/IndexFlat.cpp:34: Error: 'k > 0' failed

Any ideas?

danielagd commented 3 months ago

I was able to resolve this error after noticing my virtual table hadn't been populated with any events. Possibly check for any syntax errors when inserting into the table.