Usage of SearchParametersIVF for IndexIVFPQ #2930
Unanswered
Kyungmin-Yu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use IDSelectorBatch as SearchParameters to make it only search for specific list of items.
I wonder if it is right to use SearchParametersIVF for IndexIVFPQ since there is no SearchParameterIVFPQ. Is this because PQ parameters are not for searching?
For example, I want to use like this.
quantizer = faiss.IndexFlatL2
index = faiss.IVFPQ(quantizer, d, n_list, m, bits)
index.train(xb)
index.add(xb)
id_selector_array = [i for i in range(100,200)]
sel = faiss.IDSelectorBatch(id_selector_array)
D,I = index.search(xq, k, params= faiss.SearchParametersIVF(sel, n_probe))
Beta Was this translation helpful? Give feedback.
All reactions