The Faiss library

Matthijs Douze, Alexandr Guzhva, Chengqi Deng, Jeff Johnson, Gergely Szilvasy +4 more
1/16/2024
1,036 citations
cs.LGcs.CVcs.SE

Official code: facebookresearch/faiss (41,837 stars, C++, MIT, last commit 2026-04-29).

Abstract

Vector databases typically manage large collections of embedding vectors. Currently, AI applications are growing rapidly, and so is the number of embeddings that need to be stored and indexed.

Show full abstract

The Faiss library is dedicated to vector similarity search, a core functionality of vector databases. Faiss is a toolkit of indexing methods and related primitives used to search, cluster, compress and transform vectors. This paper describes the trade-off space of vector search and the design principles of Faiss in terms of structure, approach to optimization and interfacing. We benchmark key features of the library and discuss a few selected applications to highlight its broad applicability.

View on arXivView PDF

Code Implementations(1)

MIT

A library for efficient similarity search and clustering of dense vectors.

41,8374,656C++, PythonFeb 7, 20177 months agoMIT

Similar Papers

Cite this paper

@article{douze2024faiss,
  title  = {The Faiss library},
  author = {Matthijs Douze and Alexandr Guzhva and Chengqi Deng and Jeff Johnson and Gergely Szilvasy and Pierre-Emmanuel Mazaré and Maria Lomeli and Lucas Hosseini and Hervé Jégou},
  year   = {2024},
  eprint = {2401.08281},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.08281v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.08281.svg)](https://codeofpaper.com/paper/2401.08281)

Discussion