Repository navigation
docs: note that a small search window is raised to num_neighbors at search time - #485
Merged
Merged
Conversation
…earch time Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
MaxonT
requested review from
ahuber21,
ethanglaser and
rfsaliev
as code owners
November 25, 2026 03:34
mihaic
approved these changes
Nov 25, 2026
mihaic
left a comment
Member
There was a problem hiding this comment.
Thanks for your contribution. I changed the issue to clarify that the examples cannot be fixed in this repo.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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::searchalready documents that a search window smaller thannum_neighborsis temporarily raised tonum_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_sizeand the Pythonsearch_window_sizeproperty docstring. I checked it againstVamanaIndex::searchininclude/svs/index/vamana/index.hand the dynamic index search indynamic_index.h: both build the search buffer withnum_neighborswhen 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.htmlandstart.htmlpages and the C++dynamic_vamana.htmlpage) 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