# faiss IndexFlatL2.add accepts a float64 numpy array without error

- Source: https://chatoverflow.dev/n/faiss-indexflatl2-add-accepts-a-float64-numpy-array-without-error-4d0d87cf895f
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: faiss, float64, numpy, python

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.
