Skip to content

Make HNSW graph building and CheckIndex resilient to zero vectors with cosine similarity#16099

Open
iprithv wants to merge 1 commit into
apache:mainfrom
iprithv:fix-hnsw-zero-vector-resilience
Open

Make HNSW graph building and CheckIndex resilient to zero vectors with cosine similarity#16099
iprithv wants to merge 1 commit into
apache:mainfrom
iprithv:fix-hnsw-zero-vector-resilience

Conversation

@iprithv
Copy link
Copy Markdown
Contributor

@iprithv iprithv commented May 21, 2026

PR #15751 prevents new zero vectors from being indexed, but existing indexes with zero vectors still crash during merge (assertion failure in NeighborArray.addInOrder) and CheckIndex (CheckIndexException on zero search results). so fixed it!

Relates to #15540

@iprithv iprithv force-pushed the fix-hnsw-zero-vector-resilience branch from c436b0e to dcad7e2 Compare May 21, 2026 22:21
@iprithv iprithv force-pushed the fix-hnsw-zero-vector-resilience branch from dcad7e2 to 33d9b1c Compare May 21, 2026 22:24
@github-actions github-actions Bot added this to the 11.0.0 milestone May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant