Skip to content

HNSW Index: Unify heuristic policies - #46

Merged
villagedeb merged 2 commits into
mainfrom
deb/index/16
Aug 24, 2026
Merged

HNSW Index: Unify heuristic policies#46
villagedeb merged 2 commits into
mainfrom
deb/index/16

Conversation

@villagedeb

Copy link
Copy Markdown
Member

Centralize the ExtendCandidates/KeepPrunedConnections policies in GraphOperations as named constants used by a new consume_heuristic() wrapper, instead of repeating the same literals at each layer's consume_heuristic() call site.

Also mark the query node visited up front in seed_impl() so it cannot reappear as its own candidate.

@villagedeb villagedeb self-assigned this Aug 17, 2026
Centralize the ExtendCandidates/KeepPrunedConnections policies in
GraphOperations as named constants used by a new consume_heuristic()
wrapper, instead of repeating the same literals at each layer's
consume_heuristic() call site.

Also mark the query node visited up front in seed_impl() so it
cannot reappear as its own candidate.
@villagedeb
villagedeb marked this pull request as ready for review August 18, 2026 15:54
Comment thread src/index/hnsw/graph_ops.h Outdated
Comment thread src/index/hnsw/graph_ops.h Outdated
Comment thread src/index/hnsw/graph_ops.h Outdated

@robgolebiowski-vsql robgolebiowski-vsql left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@villagedeb
villagedeb merged commit c689390 into main Aug 24, 2026
5 checks passed
@villagedeb
villagedeb deleted the deb/index/16 branch August 24, 2026 10:36
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants