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

How to perform a multi-vector KNN search? #117

Open
mholt opened this issue Oct 11, 2024 · 0 comments
Open

How to perform a multi-vector KNN search? #117

mholt opened this issue Oct 11, 2024 · 0 comments

Comments

@mholt
Copy link

mholt commented Oct 11, 2024

Hello!

Thanks for the help in Discord. As requested, also asking here for public benefit.

If my users would like to find images similar to several selected images, instead of just one image, what is the best way to go about that?

I'm sure there are pros and cons to various approaches.

Maybe the simplest is to compute a centroid of the images' embeddings and then search using that one centroid vector.

Or maybe there's a way using a SQL query to combine multiple vectors and let sqlite-vec figure it out.

Thanks for any thoughts!

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