milvus-io / pymilvus

Python SDK for Milvus.
Apache License 2.0
985 stars 313 forks source link

MilvusClient(**conf).search检索向量相似数据的实现逻辑 #2177

Open NealRichardRui opened 2 months ago

NealRichardRui commented 2 months ago

Is there an existing issue for this?

What is your question?

search中的参数limit确定返回数量,filter做scalar过滤。实现逻辑是

  1. 先检索出limit条数据,再用filter过滤;还是
  2. 从满足filter的所有数据中,返回limit条结果

Anything else?

No response

XuanYang-cn commented 1 month ago

@NealRichardRui We use filter to calculate the bitset for each row. And we search back limit data with the bitset as the param.