关于 AutoIndex #41663
Answered
by
yhmo
xyxxxxx
asked this question in
Q&A and General discussion
关于 AutoIndex
#41663
-
官方教程中指定了 AUTOINDEX 作为 index_type: # To make vector search efficient, we need to create indices for the vector fields
sparse_index = {"index_type": "SPARSE_INVERTED_INDEX", "metric_type": "IP"}
col.create_index("sparse_vector", sparse_index)
dense_index = {"index_type": "AUTOINDEX", "metric_type": "IP"}
col.create_index("dense_vector", dense_index)
col.load() 我想要了解指定 AUTOINDEX 之后,最终使用的 index type 和相应参数是什么,但似乎没有办法获取这些信息。我阅读了 #30560,然后有一些问题:
|
Beta Was this translation helpful? Give feedback.
Answered by
yhmo
May 6, 2025
Replies: 1 comment 1 reply
-
对于开源milvus,AUTOINDEX的设定可以配置,只是默认的milvus.yaml里没写,可以手动加上。 所以,如你想改AUTOINDEX的参数,可以在milvus.yaml末尾加上这几行:
对于Zilliz cloud,AUTOINDEX的设置是不公开的,zilliz cloud上使用的索引在开源milvus里没有。 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xyxxxxx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
对于开源milvus,AUTOINDEX的设定可以配置,只是默认的milvus.yaml里没写,可以手动加上。
相关代码可以看到对于FloatVector,AUTOINDEX其实是HNSW,参数由autoIndex.params.build配置:
milvus/pkg/util/paramtable/autoindex_param.go
Line 92 in 3124d6f
所以,如你想改AUTOINDEX的参数,可以在milvus.yaml末尾加上这几行:
对于Zilliz cloud,AUTOINDEX的设置是不公开的,zilliz cloud上使用的索引在开源milvus里没有。