Development · GitHub repo
Faiss
Open-source library for efficient similarity search and clustering of dense vectors.
Faiss is Meta's foundational C++ and Python library for searching and clustering large collections of high-dimensional vectors, scaling from RAM to GPU. It contains algorithms for exact and approximate nearest-neighbor search, and recently added 'e-means' for fast vector clustering.
What it's for
- Index millions of vector embeddings for fast approximate nearest-neighbor search
- Cluster dense vectors up to 40x faster than traditional k-means using e-means
- Build custom indexing pipelines for retrieval-augmented generation (RAG) and search systems
Features
- GPU-accelerated and CPU indexing for high-dimensional dense vectors
- Comprehensive indexing options including Inverted File (IVF), HNSW, and Product Quantization (PQ)
- Includes e-means clustering implemented with PyTorch, Triton, and CuTE GPU kernels or CPU NumPy
- C++ core with complete Python bindings
- Support for batch queries and billion-scale vector datasets
Pricing
Open source
Details
- Type
- GitHub repo
- Category
- Development
- Topic
- Vector Search
- Open source
- Yes
- Platforms
- Code library, Linux, macOS, Windows
- For
- Machine learning engineers and developers building vector search engines or RAG systems.
- Alternative to
- Annoy, Hnswlib, ScaNN
- Tags
- vectors, similarity search, embeddings, clustering, rag, pytorch, cuda
Why it was saved
- @betterstackhq: Allows developers building vector databases and RAG pipelines to use the ultra-fast e-means clustering directly via PyTorch/CUDA/Triton kernels or NumPy.
Related
Lightweight, embedded in-process vector database with hybrid search and zero configuration
Turn websites and documents into clean, LLM-ready markdown or structured data.
Open-source collection of runnable AI agent, skill, and RAG templates
Semantic search and web crawling API designed for AI agents
An opinionated reference architecture for building full-stack open-source AI applications
Single API endpoint to crawl entire websites to Markdown, HTML, or JSON
Updated