milvus-io/milvus

[Feature]: Search by ID

Open

#39 157 ouverte le 10 janv. 2025

Voir sur GitHub
 (8 commentaires) (0 réactions) (3 assignés)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

Guide contributeur