Skip to content

docs: note that a small search window is raised to num_neighbors at search time - #485

Merged
mihaic merged 1 commit into
intel:mainfrom
MaxonT:contrib/74-auto
Nov 25, 2026
Merged

mihaic merged 1 commit into
intel:mainfrom
MaxonT:contrib/74-auto

Conversation

@MaxonT

@MaxonT MaxonT commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Hi there, I added doc comments on set_search_window_size for Vamana and DynamicVamana, plus the Python search_window_size docstring, saying search uses num_neighbors when the window is smaller.

VamanaIndex::search already documents that a search window smaller than num_neighbors is temporarily raised to num_neighbors. The setters and the Python property that users read when they pick a window size did not say so, which is what the issue asks to fix.

This adds the same note to Vamana::set_search_window_size, DynamicVamana::set_search_window_size and the Python search_window_size property docstring. I checked it against VamanaIndex::search in include/svs/index/vamana/index.h and the dynamic index search in dynamic_index.h: both build the search buffer with num_neighbors when the configured capacity is smaller, and neither writes that value back to the stored parameters, so the note says the stored value is unchanged.

Not covered: the other places the issue lists (the Python vamana.html and start.html pages and the C++ dynamic_vamana.html page) are generated from sources outside this repository as far as I could tell, so I did not change the "must be at least as large" note in the examples. Comment-only change; I did not build the project or the docs.

Refs #74

…earch time

Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>

@mihaic mihaic 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.

Thanks for your contribution. I changed the issue to clarify that the examples cannot be fixed in this repo.

@mihaic
mihaic merged commit bdd18f9 into intel:main Nov 25, 2026
20 of 21 checks passed
@MaxonT

MaxonT commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

The docs note about a small search window being raised to num_neighbors is now in, and it leaves me keen on ScalableVectorSearch. I'd happily keep contributing and help maintain it over time. If the maintainers would find it useful, I'd appreciate being considered as a collaborator, though there's no pressure.

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.

2 participants