faiss
**FAISS** is the **high-performance vector similarity search library for dense retrieval at large scale on CPU and GPU** - it provides a broad set of ANN and exact index types used in production retrieval systems.
**What Is FAISS?**
- **Definition**: Open-source library for nearest-neighbor search and clustering over dense vectors.
- **Index Portfolio**: Supports flat exact search, IVF, PQ, HNSW, and composite index designs.
- **Hardware Support**: Optimized implementations for both CPU and GPU acceleration.
- **Usage Domain**: Common backbone for semantic search, recommendation, and RAG retrieval stacks.
**Why FAISS Matters**
- **Performance Scale**: Handles million-to-billion vector corpora with practical latency.
- **Flexibility**: Multiple index options allow tailoring recall, speed, and memory tradeoffs.
- **Ecosystem Adoption**: Broad tooling support and production maturity across AI systems.
- **Benchmark Strength**: Frequently used baseline for ANN performance comparisons.
- **Operational Control**: Fine-grained parameters support scenario-specific tuning.
**How It Is Used in Practice**
- **Index Prototyping**: Benchmark candidate index types on representative query workloads.
- **GPU Offloading**: Use accelerated search paths for high-throughput interactive systems.
- **Lifecycle Management**: Rebuild or refresh indexes as embeddings and corpus content evolve.
FAISS is **a foundational engine for vector retrieval infrastructure** - its performance and index diversity make it a standard choice for scalable semantic search and RAG deployment.