Development · GitHub repo

Faiss

Open-source library for efficient similarity search and clustering of dense vectors.

Visit github.com

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, 14 November 2026: 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

  • Zvec

    Lightweight, embedded in-process vector database with hybrid search and zero configuration

  • Firecrawl

    Turn websites and documents into clean, LLM-ready markdown or structured data.

  • awesome-llm-apps

    Open-source collection of runnable AI agent, skill, and RAG templates

  • Exa

    Semantic search and web crawling API designed for AI agents

  • "Easy Mode" Open Source AI Stack

    An opinionated reference architecture for building full-stack open-source AI applications

  • Cloudflare /crawl Endpoint

    Single API endpoint to crawl entire websites to Markdown, HTML, or JSON

Updated