milvus-io/milvus

[Feature]: Search by ID

Open

#39.157 aberto em 10 de jan. de 2025

Ver no GitHub
 (8 comments) (0 reactions) (3 assignees)Go (44.298 stars) (4.000 forks)batch import
good first issuekind/feature

Description

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

Guia do colaborador