Skip to content

Delegate CAGRA build heuristics to cuVS instead of hardcoding them#177

Open
imotov wants to merge 3 commits into
NVIDIA:mainfrom
imotov:issue-149/use-cuvs-heuristics-in-cuvs-lucene
Open

Delegate CAGRA build heuristics to cuVS instead of hardcoding them#177
imotov wants to merge 3 commits into
NVIDIA:mainfrom
imotov:issue-149/use-cuvs-heuristics-in-cuvs-lucene

Conversation

@imotov

@imotov imotov commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Replace the hand-ported heuristic and hard-coded 5M-row algorithm threshold in CagraIndexParamsFactory with cuVS's own APIs, so cuVS stays the single source of truth.

Fixes #149

Replace the hand-ported heuristic and hard-coded 5M-row algorithm
threshold in CagraIndexParamsFactory with cuVS's own APIs, so cuVS stays
the single source of truth.

Fixes NVIDIA#149
@copy-pr-bot

copy-pr-bot Bot commented Jul 20, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@imotov imotov added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Jul 20, 2026
@imotov

imotov commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test f320ada

@imotov

imotov commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 6d7fc62

@imotov

imotov commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test f9fd999

@imotov
imotov marked this pull request as ready for review July 21, 2026 01:06
@imotov
imotov requested a review from a team as a code owner July 21, 2026 01:06
@achirkin

Copy link
Copy Markdown

Let's get NVIDIA/cuvs#2345 merged and then use cagra::index_params::from_dataset for constructing CAGRA parameters independently from HNSW. The reason for this is that we will soon introduce a variable-degree graph building for HNSW by default (NVIDIA/cuvs#2031); the feature is useful for HNSW but detrimental for CAGRA GPU search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Heuristics in cuvs-lucene are being directly hardcoded based on cuVS heuristics instead of using cuVS heuristics.

2 participants