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

Index intersection #10

Closed
vadimkantorov opened this issue Mar 2, 2017 · 3 comments
Closed

Index intersection #10

vadimkantorov opened this issue Mar 2, 2017 · 3 comments

Comments

@vadimkantorov
Copy link

I have a few thousand sets of vectors for which I need to answer ClosestPairOfPoints(A, B) queries, that is find element a from A and b from B that minimize d(a, b). Is there a way I could support such queries with Faiss?

Thanks!

@jegou
Copy link
Contributor

jegou commented Mar 2, 2017

Faiss is not specifically designed for this, but you can easily use it to compute
min d(a,b) for all a,
and then task the min over a

@jegou jegou closed this as completed Mar 2, 2017
@jegou jegou reopened this Mar 2, 2017
@vadimkantorov
Copy link
Author

Thanks for the lightning-fast answer :) Sure, I was wondering if one can do it in sub-linear time.

@jegou
Copy link
Contributor

jegou commented Mar 2, 2017

Right. Yet, for this size of the problem (very small considering that Faiss is typically designed for dozen millions to billions of vectors), brute-force will certainly be the fastest way to compute the ClosestPairOfPoints, especially if you use the GPU implementation.

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

2 participants