milvus-io/milvus

[Feature]: Search by ID

開放

#39,157 建立於 2025年1月10日

 (8 則留言) (0 個反應) (3 位負責人)Go (4,000 個分叉)batch import
good first issuekind/feature

倉庫指標

星標
 (44,298 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

Given a ID, user want to retrieve it's vector and search topk of it.

query_ids = [3, 5] res = client.search( collection_name="my_collection", anns_field="vector", data=[query_ids], limit=3, search_params={"metric_type": "IP"} )

for hits in res: for hit in hits: print(hit)

Describe the solution you'd like.

No response

Describe an alternate solution.

No response

Anything else? (Additional Context)

No response

貢獻者指南