# 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.

Website: https://github.com/facebookresearch/faiss

## What it is 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](https://xiry.app/topics/development.md)
- 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](https://www.instagram.com/p/DftV4WBRw-m/): 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](https://xiry.app/resources/zvec): Lightweight, embedded in-process vector database with hybrid search and zero configuration (GitHub repo, Open source)
- [Firecrawl](https://xiry.app/resources/firecrawl-1984): Turn websites and documents into clean, LLM-ready markdown or structured data. (Website, Freemium)
- [awesome-llm-apps](https://xiry.app/resources/awesome-llm-apps): Open-source collection of runnable AI agent, skill, and RAG templates (GitHub repo, Open source)
- [Exa](https://xiry.app/resources/exa): Semantic search and web crawling API designed for AI agents (Web app, Freemium)
- ["Easy Mode" Open Source AI Stack](https://xiry.app/resources/easy-mode-open-source-ai-stack): An opinionated reference architecture for building full-stack open-source AI applications (Framework, Open source)
- [Cloudflare /crawl Endpoint](https://xiry.app/resources/cloudflare-crawl-endpoint): Single API endpoint to crawl entire websites to Markdown, HTML, or JSON (Tip, Freemium)

Updated 14 November 2026. Page: https://xiry.app/resources/faiss

Make your own library: Xiry for Mac makes your saved Instagram reels and liked tweets searchable and pulls the useful stuff out, like this library. It's invite-only for now; request an invite at https://xiry.app/mac/download.
