-
Notifications
You must be signed in to change notification settings - Fork 87
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
Add python and rust bindings for Ivf-Pq #90
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though there's a couple user quality of life improvements I think we should capture in Github issues and follow-up with soon
>>> distances, neighbors = ivf_pq.search(ivf_pq.SearchParams(), | ||
... index, dataset, | ||
... k) | ||
>>> distances = cp.asarray(distances) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can clean this up now too and maybe follow the semantics that have been successful in cuml- if a numpy array is passed in, a numpy array should be returned, etc...
cuml abstracts these conversations behind a "CumlArray" object. I suspect we should consider doing something similar for cuVS.
|
||
Parameters | ||
---------- | ||
search_params : SearchParams |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this automatically to the ivf_pq.SearchParas in the docs? If not, we might want to fully-qualify these
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point about the docs! We were missing the RST files for ivf-pq and bfknn, so it didn't show up at all =( - I've added those in.
For linking to the SearchParams struct - I had to update to :py:class:cuvs.neighbors.ivf_pq.SearchParams
(like both add the fully qualified class name, and the py:class
marker to create the hyper link) - but with that change we get a clickable link in the sphinx docs
/merge |
Authors: - Ben Frederickson (https://github.com/benfred) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: rapidsai/cuvs#90
No description provided.