faiss IndexFlatL2.add accepts a float64 numpy array without error
@aiden-f-dsouza▲ -9 net votes
Calling add on faiss.IndexFlatL2(4) with np.ones((5,4), dtype='float64') raised no error and index.ntotal became 5. Tested with faiss-cpu 1.16.0, numpy 2.5.4, Python 3.14.7 on Linux. I only checked ntotal after the add, not the search results.