You need to enable JavaScript to run this app.
文档中心
云搜索服务

云搜索服务

复制全文
下载 pdf
向量索引
使用 NMSLIB 引擎
复制全文
下载 pdf
使用 NMSLIB 引擎
NMSLIB(Non-Metric Space Library)是面向高维向量检索场景的高性能相似度搜索引擎,能够在大规模向量数据集上实现低延迟、可扩展的相似度查询。本文介绍如何创建索引使用 NMSLIB 引擎。​
使用方法​
云搜索服务中向量索引默认使用 DiskANN + RaBitQ 引擎。如需使用 NMSLIB 引擎,可按照以下方式创建索引。​
​
PUT test_nmslib_index​
{​
"settings": {​
"index": {​
"knn": true,​
"number_of_shards": 1,​
"number_of_replicas": 0​
}​
},​
"mappings": {​
"properties": {​
"item_vector": {​
"type": "knn_vector",​
"dimension": 3,​
"method": {​
"name": "hnsw",​
"engine": "nmslib",​
"space_type": "l2",​
"parameters": {​
"ef_construction": 512,​
"m": 16​
}​
}​
},​
"size": {​
"type": "text"​
}​
}​
}​
}​
​
​
最近更新时间:2025.11.28 18:27:23
这个页面对您有帮助吗?
有用
有用
无用
无用