Skip to content

Commit

Permalink
Update HNSW build param M's valid range (#221)
Browse files Browse the repository at this point in the history
Signed-off-by: Yudong Cai <[email protected]>
  • Loading branch information
cydrain authored Nov 28, 2023
1 parent aeb6931 commit 7591640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index/hnsw/hnsw_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class HnswConfig : public BaseConfig {
CFG_INT seed_ef;
CFG_INT overview_levels;
KNOHWERE_DECLARE_CONFIG(HnswConfig) {
KNOWHERE_CONFIG_DECLARE_FIELD(M).description("hnsw M").set_default(30).set_range(1, 2048).for_train();
KNOWHERE_CONFIG_DECLARE_FIELD(M).description("hnsw M").set_default(30).set_range(2, 2048).for_train();
KNOWHERE_CONFIG_DECLARE_FIELD(efConstruction)
.description("hnsw efConstruction")
.set_default(360)
Expand Down

0 comments on commit 7591640

Please sign in to comment.