milvus-io/milvus

[Feature]: Search by ID

Open

#39.157 geöffnet am 10. Jan. 2025

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (3 zugewiesene Personen)Go (44.298 Stars) (4.000 Forks)batch import
good first issuekind/feature

Beschreibung

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

Contributor Guide