Faiss: A library for efficient similarity search
Mar 29, 2017Hervé Jegou, Matthijs Douze, Jeff Johnson

Summary
This post introduces Faiss, a new library for efficient similarity search on billion-scale datasets. It details the challenges of similarity search with high-dimensional vectors generated by AI models, compares Faiss to existing software packages, and outlines its advantages in speed, memory usage, and GPU implementation. The post also discusses evaluation metrics (speed, memory, accuracy) and presents performance benchmarks on billion-scale datasets using both CPU and GPU implementations, including the construction of k-nearest-neighbor graphs.
More from the AI Research and Development trail
- An Organizational Second Brain: Building an AI That Learns From Experts
- From User Sequences to Scaling Laws: A Multi-Stage Architecture for Meta’s Ads Ranking
- GEM Training: How Meta Doubled the Efficiency of Its LLM-Scale Ads Foundation Model
- Exploring Hierarchical Interest Representation For Meta Ads Deep Funnel Optimization
- Meta’s AI Storage Blueprint at Scale