Skip to content

关于 AutoIndex #41663

May 6, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

对于开源milvus,AUTOINDEX的设定可以配置,只是默认的milvus.yaml里没写,可以手动加上。
相关代码可以看到对于FloatVector,AUTOINDEX其实是HNSW,参数由autoIndex.params.build配置:

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

所以,如你想改AUTOINDEX的参数,可以在milvus.yaml末尾加上这几行:

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

对于Zilliz cloud,AUTOINDEX的设置是不公开的,zilliz cloud上使用的索引在开源milvus里没有。

Replies: 1 comment 1 reply

Comment options

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

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