-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Support rowid in (...)
constraints in vss_search()
KNN queries
#19
Comments
Use need to figure out idxStr/idxNum rules |
I suppose then we can do pre-filtering with standard SQL and then feed the resulting rowids into the vss query. Nice. Definitely nicer than getting 1000 "wide net" results from the vss query and then filtering. That being said, in a document searching app I am working on I do 50 top searches and then filter, seems to work, albeit we never have the certainty that we are not missing something important. |
I didn´t get the meaning of this one - can you please expand for us noobies? |
Those are mostly personal notes about how to implement this feature. IDSelectorBatch is Faiss tool that'll make it easier to search a large subset of vectors, and idxStr/idxNum refer to some internal changes I need to make to the I'll probably work on this next after the new |
Any update on this? @asg017 |
In KNN style searches, we should support
rowid in (...)
constraints in queries like so:Currently we ignore the "equals" constraint on
rowid
, but if we were to capture that constraint (and enablesqlite3_vtab_in
), we could read in all the rowids and use IDSelector to pre-filter results.This would be especially great when paired with subqueries:
This would enable "pre-filtering" according to this post. This would be an easy-to-implement but probably-slow solution to push-down filters described in #2.
The text was updated successfully, but these errors were encountered: