How to get nearest vector in every cluster of faiss.IndexIVFFlat

284 views Asked by At

I'm using faiss.IndexIVFFlat with nlist=10 to make an index of vectors I want to search. I have a query vector xq and I want to get the vector nearest to xq in each of the 10 clusters in the index. Is there a way to do this with faiss?

I see here it is possible to get the contents of the inverted lists but doing this and querying is very slow. Is there a way to do this natively in faiss?

0

There are 0 answers