配置情况
opensearch 版本1.1.0,16G jvm
创建 mapping
这里创建两种 mapping,一种是 exact,另外一种是 hnsw。
exact
{
"feature":{
"path_match":"feature",
"mapping":{
"type":"knn_vector",
"dimension":256
}
}
}
hnsw
{
"feature":{
"path_match":"feature",
"mapping":{
"type":"knn_vector",
"dimension":256,
"method":{
"name":"hnsw",
"space_type":"cosinesimil",
"engine":"nmslib",
"parameters":{
"ef_construction":256,
"m":48
}
}
}
}
}
Index 情况
开始压测
features_exact_1w
10并发+10s
100并发+10s
features_exact_10w
10并发+10s
features_hnsw_1w
10并发+10s
100并发+10s
features_hnsw_10w
10并发+10s
features_hnsw_50w
10并发+10s
features_hnsw_100w
10并发+10s
本文由 Chakhsu Lau 创作,采用 知识共享署名4.0 国际许可协议进行许可。
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名。