{"name":"Faiss: Efficient Similarity Search and Clustering for Dense Vectors","description":"Faiss is a library developed by Meta's Fundamental AI Research (FAIR) group, designed for efficient similarity search and clustering of dense vectors. It offers a comprehensive suite of algorithms capable of handling vector sets of any size, including those that exceed RAM capacity. With complete wrappers for Python/numpy and GPU implementations, Faiss provides robust solutions for various vector comparison tasks.","github":"https://github.com/facebookresearch/faiss","url":"https://osrepos.com/repo/facebookresearch-faiss","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/facebookresearch-faiss","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/facebookresearch-faiss.md","json":"https://osrepos.com/repo/facebookresearch-faiss.json","topics":["C++","Python","AI","Machine Learning","Vector Search","Similarity Search","Clustering","GPU"],"keywords":["C++","Python","AI","Machine Learning","Vector Search","Similarity Search","Clustering","GPU"],"stars":null,"summary":"Faiss is a library developed by Meta's Fundamental AI Research (FAIR) group, designed for efficient similarity search and clustering of dense vectors. It offers a comprehensive suite of algorithms capable of handling vector sets of any size, including those that exceed RAM capacity. With complete wrappers for Python/numpy and GPU implementations, Faiss provides robust solutions for various vector comparison tasks.","content":"## Introduction\nFaiss is a library developed by Meta's Fundamental AI Research (FAIR) group, designed for efficient similarity search and clustering of dense vectors. It offers a comprehensive suite of algorithms capable of handling vector sets of any size, including those that exceed RAM capacity. With complete wrappers for Python/numpy and GPU implementations for many useful algorithms, Faiss provides robust solutions for comparing vectors using L2 (Euclidean) distances, dot products, and cosine similarity.\n\n## Installation\nFaiss offers convenient installation options, including precompiled libraries for Anaconda users, available as `faiss-cpu`, `faiss-gpu`, and `faiss-gpu-cuvs`. The core library is primarily implemented in C++, with BLAS as its main dependency. Optional GPU support can be enabled via CUDA or AMD ROCm, and the Python interface is also optional. For detailed instructions and compilation with cmake, refer to the official [INSTALL.md](https://github.com/facebookresearch/faiss/blob/main/INSTALL.md){:target=\"_blank\"} file.\n\n## Examples\nWhile the Faiss README doesn't include direct code snippets, extensive examples and a comprehensive tutorial are available on the official [Faiss wiki](https://github.com/facebookresearch/faiss/wiki){:target=\"_blank\"}. Specifically, the [Getting Started tutorial](https://github.com/facebookresearch/faiss/wiki/Getting-started){:target=\"_blank\"} provides practical guidance on how to begin using Faiss for your similarity search and clustering tasks.\n\n## Why Use Faiss\nFaiss stands out for its exceptional efficiency and scalability in handling dense vector similarity search. It offers a wide array of indexing structures, allowing users to fine-tune trade-offs between search time, search quality, memory usage, and training time. Its optional GPU implementation is particularly noteworthy, providing what is considered one of the fastest exact and approximate nearest neighbor search implementations for high-dimensional vectors, along with accelerated Lloyd's k-means and small k-selection algorithms. This makes Faiss an invaluable tool for large-scale AI and machine learning applications.\n\n## Links\nExplore Faiss further through these official resources:\n*   [GitHub Repository](https://github.com/facebookresearch/faiss){:target=\"_blank\"}\n*   [Official Wiki and Documentation](https://github.com/facebookresearch/faiss/wiki){:target=\"_blank\"}\n*   [Doxygen Documentation](https://faiss.ai/){:target=\"_blank\"}\n*   [Community Discussions](https://github.com/facebookresearch/faiss/discussions){:target=\"_blank\"}\n*   [Report Issues](https://github.com/facebookresearch/faiss/issues){:target=\"_blank\"}","metrics":{"detailViews":3,"githubClicks":9},"dates":{"published":null,"modified":"2026-01-29T08:01:16.000Z"}}