-
Notifications
You must be signed in to change notification settings - Fork 73
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
How to do batches of vector search? #553
Comments
Hi @Wongboo thanks for your patience as most of the team was on holiday last week. We have separate API docs for the Python API. Does this help? https://docs.rapids.ai/api/cuvs/nightly/python_api/neighbors_cagra/#cuvs.neighbors.cagra.search |
Thanks, but this has a significant difference. Note my example contains an extra batch size dimension. |
@Wongboo, I'm not sure what you mean here, but you can pass a 2d array to the search method to query multiple vectors at a time. If you have multiple such arrays, they would need to be passed into multiple calls of search(). If you use different If you are saying that you need to have multiple indexes, you can certainly build them and search them concurrently as the call to search is asynchronous when a |
Thanks for your kind and helpful response~ I kind of get your meaning 'concurrently build and search', is it similar to pseudo code below? But I find it seems that there is no python API to get
|
How to do batches of vector search? Each batch contains multiple queries and multiple databases, and queries only search for corresponding database in the batch. For example:
I've searched whole doc and issues. Really appreciate your answer!
The text was updated successfully, but these errors were encountered: