faiss
faiss copied to clipboard
FAISS Index Factory String equivalent code and vice versa
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