Skip to content

milvus auto index #42852

Jun 19, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

For open-source milvus, the AUTOINDEX default parameters can be configured in the default milvus.yaml.
The relevant code shows that for FloatVector, AUTOINDEX is actually HNSW, and the parameters are configured by autoIndex.params.build:
milvus/pkg/util/paramtable/autoindex_param.go

 DefaultValue: `{"M": 18,"efConstruction": 240,"index_type": "HNSW", "metric_type": "COSINE"}`, 

So, if you want to change the parameters of AUTOINDEX, you can add these lines at the end of milvus.yaml:

autoIndex:
  params:
    build: {"nlist": 240,"index_type": "IVF_FLAT", "metric_type": "COSINE"}

In most of cases, no need to reset its parameters.

For Zilliz Cloud, the AUTOINDEX setting is not publicly avai…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rere950303
Comment options

Answer selected by rere950303
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants