@@ -414,6 +414,7 @@ void wrap(py::module& m) {
414414 m, " VamanaBuildParameters" , " Build parameters for Vamana index construction."
415415 );
416416
417+ svs::index::vamana::VamanaBuildParameters default_parameters;
417418 parameters
418419 .def (
419420 py::init ([](float alpha,
@@ -430,13 +431,12 @@ void wrap(py::module& m) {
430431 prune_to,
431432 use_full_search_history};
432433 }),
433- py::arg (" alpha" ) = svs::FLOAT_PLACEHOLDER,
434- py::arg (" graph_max_degree" ) = svs::VAMANA_GRAPH_MAX_DEGREE_DEFAULT,
435- py::arg (" window_size" ) = svs::VAMANA_WINDOW_SIZE_DEFAULT,
436- py::arg (" max_candidate_pool_size" ) = svs::UNSIGNED_INTEGER_PLACEHOLDER,
437- py::arg (" prune_to" ) = svs::UNSIGNED_INTEGER_PLACEHOLDER,
438- py::arg (" use_full_search_history" ) =
439- svs::VAMANA_USE_FULL_SEARCH_HISTORY_DEFAULT,
434+ py::arg (" alpha" ) = default_parameters.alpha ,
435+ py::arg (" graph_max_degree" ) = default_parameters.graph_max_degree ,
436+ py::arg (" window_size" ) = default_parameters.window_size ,
437+ py::arg (" max_candidate_pool_size" ) = default_parameters.max_candidate_pool_size ,
438+ py::arg (" prune_to" ) = default_parameters.prune_to ,
439+ py::arg (" use_full_search_history" ) = default_parameters.use_full_search_history ,
440440 R"(
441441 Construct a new instance from keyword arguments.
442442
0 commit comments