Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion bindings/python/include/svs/python/vamana.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ This property is experimental and subject to change without a deprecation warnin
&Manager::set_search_window_size,
R"(
Read/Write (int): Get/set the size of the internal search buffer.
A larger value will likely yield more accurate results at the cost of speed.)"
A larger value will likely yield more accurate results at the cost of speed.

If this value is less than the number of neighbors requested in a search, it is
temporarily raised to that number for the search. The stored value is not changed.)"
);

manager.def_property(
Expand Down
4 changes: 4 additions & 0 deletions include/svs/orchestrators/dynamic_vamana.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ class DynamicVamana : public manager::IndexManager<DynamicVamanaInterface> {
///
/// @param search_window_size The new search window size.
///
/// If the search window size is less than the number of neighbors requested in a
/// search, it is temporarily set to the number of neighbors for that search. The stored
/// value is not changed.
///
DynamicVamana& set_search_window_size(size_t search_window_size) {
auto parameters = get_search_parameters();
parameters.buffer_config_ = {search_window_size};
Expand Down
9 changes: 9 additions & 0 deletions include/svs/orchestrators/vamana.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,15 @@ class Vamana : public manager::IndexManager<VamanaInterface> {

///// Vamana Interface.

///
/// @brief Set the search window size used to process queries.
///
/// @param search_window_size The new search window size.
///
/// If the search window size is less than the number of neighbors requested in a
/// search, it is temporarily set to the number of neighbors for that search. The stored
/// value is not changed.
///
Vamana& set_search_window_size(size_t search_window_size) {
auto parameters = get_search_parameters();
parameters.buffer_config_ = index::vamana::SearchBufferConfig{search_window_size};
Expand Down
Loading