faiss icon indicating copy to clipboard operation
faiss copied to clipboard

FAISS Index Factory String equivalent code and vice versa

Open ashleyabraham opened this issue 5 months ago • 0 comments

Is the FAISS Index Factory string IVF132_HNSW32,PQ5x8

D = 128
index = faiss.index_factory(D, `IVF132_HNSW32,PQ5x8`)

equivalent to the following code

hnsw_m = 32
nlist = 132
M=5
nbits = 8

quantizer = faiss.IndexHNSWFlat(D, hnsw_m)
index = faiss.IndexIVFPQ(quantizer, D, nlist, M, nbits)

If not what is the correct code for the above index factory string and also what is the index factory string for the above code

ashleyabraham avatar Sep 07 '24 00:09 ashleyabraham