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

Why not able directly return look up labels as well with index and distances? #66

Open
Ibrokhimsadikov opened this issue Apr 26, 2024 · 0 comments

Comments

@Ibrokhimsadikov
Copy link

Ibrokhimsadikov commented Apr 26, 2024

Thank you for Voyager, really loving it!

`from voyager import Index, Space
index = Index(Space.Cosine, num_dimensions=1024)
index.add_items(embeddings)

ids, distances = index.query(query_embedding, k=20)`

only returns ids, and then I need use labels[ids] to look up for labels, Can I just directly get labels rather than index

I have to always load labels for mapping, can .voy file while first initiation already contain labels so that I do not need to bring them always, which would also make easier to deploy as sagemaker endpoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant