Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FaissException when virtual table is empty #129

Open
tap2k opened this issue Apr 8, 2024 · 2 comments
Open

FaissException when virtual table is empty #129

tap2k opened this issue Apr 8, 2024 · 2 comments

Comments

@tap2k
Copy link

tap2k commented Apr 8, 2024

Currently there is a FaissException whenever the virtual table is empty. This causes a lot of problems as the system terminates without throwing an exception or any warning. Is there any way to check if the virtual table is empty before running the query? Or is there a more elegant solution?

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

@Volland
Copy link

Volland commented Apr 9, 2024

I have same issue #126

@tap2k
Copy link
Author

tap2k commented Apr 9, 2024

Are you able to catch the exception in the try block?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants