-
Notifications
You must be signed in to change notification settings - Fork 143
Python API for CAGRA+HNSW #246
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
09eb3ab
c api and tests
divyegala 8bc035e
remove unneeded comment
divyegala f8327f5
Update ann_hnsw_c.cu
divyegala 6c0df11
Update ann_hnsw_c.cu
divyegala 8860a09
rename test
divyegala 081eba5
passing python tests
divyegala 5ba4fad
documentation
divyegala aa6c057
Merge branch 'branch-24.10' into hnsw-python-api
divyegala 0c3d053
more docs
divyegala b47f92f
merging upstream
divyegala 53bcf5d
Merge branch 'branch-24.10' into hnsw-python-api
cjnolet 0c2d082
passing tests
divyegala 360ac24
Merge branch 'branch-24.10' into hnsw-python-api
cjnolet 8c53e22
address review
divyegala 09de6d3
fix merge conflicts
divyegala ef98a4e
address review
divyegala 97215f2
revert some changes
divyegala 4acd22b
fix failing tests
divyegala 6f86848
Merge branch 'branch-24.10' into hnsw-python-api
cjnolet 006e77c
add some stream syncs in nn_descent
divyegala 4d36c80
Merge branch 'branch-24.10' into hnsw-python-api
divyegala 8d4d1a2
add more syncs, use thrust_policy
divyegala 0409d12
Revert "add some stream syncs in nn_descent"
divyegala 366af06
Revert "add more syncs, use thrust_policy"
divyegala ad40942
1000 rows in test
divyegala 6460d2a
Merge remote-tracking branch 'upstream/branch-24.10' into hnsw-python…
divyegala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,4 @@ Nearest Neighbors | |
| neighbors_ivf_flat_c.rst | ||
| neighbors_ivf_pq_c.rst | ||
| neighbors_cagra_c.rst | ||
| neighbors_hnsw_c.rst | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| HNSW | ||
| ==== | ||
|
|
||
| This is a wrapper for hnswlib, to load a CAGRA index as an immutable HNSW index. The loaded HNSW index is only compatible in cuVS, and can be searched using wrapper functions. | ||
|
|
||
| .. role:: py(code) | ||
| :language: python | ||
| :class: highlight | ||
|
|
||
| Index search parameters | ||
| ####################### | ||
|
|
||
| .. autoclass:: cuvs.neighbors.hnsw.SearchParams | ||
| :members: | ||
|
|
||
| Index | ||
| ##### | ||
|
|
||
| .. autoclass:: cuvs.neighbors.hnsw.Index | ||
| :members: | ||
|
|
||
| Index Conversion | ||
| ################ | ||
|
|
||
| .. autofunction:: cuvs.neighbors.hnsw.from_cagra | ||
|
|
||
| Index search | ||
| ############ | ||
|
|
||
| .. autofunction:: cuvs.neighbors.hnsw.search |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.