New Feature
-
Upsert 功能
支持用戶通過 upsert 接口更新或插入數(shù)據(jù)。已知限制,自增 id 不支持 upsert;upsert 是內(nèi)部實(shí)現(xiàn)是 delete + insert所以性能上會(huì)有一定損耗,如果明確知道是寫入數(shù)據(jù)的場景請繼續(xù)使用 insert。
-
Range Search 功能
支持用戶通過輸入?yún)?shù)指定 search 的 distance 進(jìn)行查詢,返回所有與目標(biāo)向量距離位于某一范圍之內(nèi)的結(jié)果。例如:文章來源:http://www.zghlxwxcb.cn/news/detail-698084.html
//?add?radius?and?range_filter?to?params?in?search_params
search_params?=?{"params":?{"nprobe":?10,?"radius":?10,?"range_filter"?:?20},?"metric_type":?"L2"}
res?=?collection.search(
????vectors,?"float_vector",?search_params,?topK,
????"int64?>?100",?output_fields=["int64",?"float"]
)
該例子中就會(huì)返回距離在 10~20 之間的向量。需要注意的是不同文章來源地址http://www.zghlxwxcb.cn/news/detail-698084.html
到了這里,關(guān)于《向量數(shù)據(jù)庫指南》——AI原生向量數(shù)據(jù)庫Milvus Cloud 2.3新功能的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!