Replies: 3 comments 1 reply
-
Can you help me understand why setting make_direct_map to True will not work for your usecase? |
Beta Was this translation helpful? Give feedback.
-
index.set_direct_map_type(faiss.DirectMap.Hashtable) # set direct map |
Beta Was this translation helpful? Give feedback.
-
I am not a 100% sure I understand your usecase but here is some test code that works: d = 128 train_vectors = np.random.random((nb, d)).astype('float32') quantizer = faiss.IndexFlatL2(d) index.train(train_vectors) # We should find thisy = index.reconstruct(10) |
Beta Was this translation helpful? Give feedback.
-
I got the error
DirectMap.cpp:82: direct map not initialized
whenreconstruct()
from an IVF index.Is there any solution for this scenario?
Beta Was this translation helpful? Give feedback.
All reactions