FAISS is an open-source index library from Meta that runs inside your process. It is one option between a flat NumPy array and an operational vector database. section 4.5.3
Choose the index layer to fit corpus scale and deployment needs:
- Use a flat NumPy array for a prototype with tens of thousands of chunks; it searches exhaustively but scales linearly. section 4.5.3
- Consider an in-process library such as FAISS for hundreds of thousands of chunks. Its IVF index is suited to corpora sharded across many machines. section 4.5.3
- Use a vector database when multi-tenant production needs millions of chunks and features such as audit logging. section 4.5.3






