What problem does it solve?
FAISS solves slow similarity search over large sets of dense vectors by providing efficient indexing and retrieval for k-nearest-neighbor queries.
Core Features & Use Cases
- High-performance vector search: Use exact (Flat) or approximate (IVF, HNSW, PQ) indexes to quickly retrieve nearest embeddings for tasks like semantic search and recommendation.
- Large-scale and GPU acceleration: Scale to millions or billions of vectors and optionally accelerate indexing/search with GPUs.
- Memory-efficient retrieval: Apply product quantization (PQ) and IVF+PQ to significantly reduce memory footprint when storing embeddings.
Quick Start
Install the FAISS CPU or GPU package with pip, then create an index (such as IndexFlatL2 or IndexHNSWFlat), add your float32 embeddings, and run a top-k nearest-neighbor search for your query vector.