-
Notifications
You must be signed in to change notification settings - Fork 16
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
Find* command changes for vector search #459
Comments
Re: discussion in Slack, I put together an overview of vector db APIs: Pinecone, Chroma, Qdrant, Zilliz. I'm not certain that reusing I'm worried that reusing sort is trying to fit a square peg in a round hole, because we need to be careful that, if you're using Furthermore, presumably JSON API would also have to disallow sorting by Also, a minor unreleated question: vector search supports |
In the current design yes, it can be used in any command where sort() is supported.
skip is not currently designed to be supported. |
Sorting by Also, just to clarify, do we want to disallow sorting by multiple fields if sorting by |
Let me know if this is needed, I think this will be simple extension of what is created for find and findOne command. I will create a separate issue for this.
Yes multiple field sort is not supported if $vector is used in sort. |
Change sort clause to handle $vector field. This special field will accept an array of floats which will be passed to CQL “ORDER BY query_vector_value ANN OF []”. Default response document limit will be 20 (jsonapi page-size). If the limit option comes in, it will be used as a limit.
Filter clause will only support the $exists operator for the $vector field.
Translated CQL query
SELECT * FROM <namespace>.<collection> WHERE <> ORDER BY query_vector_value ANN OF [0.11,0.12,...] limit 5
The text was updated successfully, but these errors were encountered: