Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Search by ID #39157

Open
1 task done
xiaofan-luan opened this issue Jan 10, 2025 · 0 comments
Open
1 task done

[Feature]: Search by ID #39157

xiaofan-luan opened this issue Jan 10, 2025 · 0 comments
Assignees
Labels
kind/feature Issues related to feature request from users

Comments

@xiaofan-luan
Copy link
Collaborator

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

@xiaofan-luan xiaofan-luan added the kind/feature Issues related to feature request from users label Jan 10, 2025
@xiaofan-luan xiaofan-luan self-assigned this Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Issues related to feature request from users
Projects
None yet
Development

No branches or pull requests

1 participant