Skip to content

[MOD-18075] Allow custom HNSW neighbor debug implementations - #1024

Draft
dor-forer wants to merge 1 commit into
mainfrom
dor-forer-MOD-18075-dump-hnsw-disk
Draft

[MOD-18075] Allow custom HNSW neighbor debug implementations#1024
dor-forer wants to merge 1 commit into
mainfrom
dor-forer-MOD-18075-dump-hnsw-disk

Conversation

@dor-forer

@dor-forer dor-forer commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

The HNSW neighbor debug API currently dispatches by casting indexes to the in-memory HNSW classes, so alternate HNSW backends cannot implement it safely. This adds a virtual debug hook with a fail-closed default and routes the public C API through it; the existing in-memory and tiered implementations preserve their behavior. The change is internal-only for current callers and enables disk HNSW graph inspection in RediSearchEnterprise.

Which issues this PR fixes

  1. MOD-18075
  2. N/A

Main objects this PR modified

  1. VecSimIndexAbstract — extensible HNSW neighbor debug hook
  2. In-memory and tiered HNSW indexes — existing implementations made polymorphic
  3. VecSim debug C API — backend-independent dispatch

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant