Faiss: Efficient Similarity Search and Clustering for Dense Vectors
This repository profile is provided by osrepos.com, an open source repository discovery platform.

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.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
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 for many useful algorithms, Faiss provides robust solutions for comparing vectors using L2 (Euclidean) distances, dot products, and cosine similarity.
Installation
Faiss 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 file.
Examples
While the Faiss README doesn't include direct code snippets, extensive examples and a comprehensive tutorial are available on the official Faiss wiki. Specifically, the Getting Started tutorial provides practical guidance on how to begin using Faiss for your similarity search and clustering tasks.
Why Use Faiss
Faiss 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.
Links
Related repositories
Similar repositories that may be relevant next.

Helium: A Privacy-First, Chromium-Based Web Browser
July 1, 2026
Helium is an open-source, Chromium-based web browser designed with a strong focus on user privacy and an unbiased ad-blocking experience. It aims to provide a fast, honest, and bloat-free browsing environment for users. Built upon ungoogled-chromium, it offers a secure alternative for daily web navigation.

XGrammar: Fast, Flexible, and Portable Structured Generation for LLMs
June 27, 2026
XGrammar is an open-source library for efficient, flexible, and portable structured generation, developed by mlc-ai. It leverages constrained decoding to guarantee 100% structural correctness for outputs like JSON and regex. Optimized for near-zero overhead, XGrammar offers universal deployment across various platforms, hardware, and programming languages, making it a leading solution for structured output from large language models.

Notes: A Fast and Beautiful Cross-Platform Note-Taking App
June 18, 2026
Notes is an open-source, cross-platform note-taking application designed for speed and beauty. Written in C++ with Qt, it offers robust features like Markdown support, Kanban boards for tasks, and comprehensive organization options. This app prioritizes user privacy, ensuring a secure and efficient environment for capturing your thoughts.
h264-mp4-encoder: H264 and MP4 Encoding for Web and Node.js
May 25, 2026
The `h264-mp4-encoder` project provides a powerful solution for encoding H264 video and outputting it as an MP4 file directly within web browsers using WebAssembly or in Node.js environments. It leverages `minih264` and `libmp4v2` to offer efficient video creation, making it ideal for applications requiring dynamic video generation from sources like the HTML5 Canvas. This tool simplifies the process of integrating video encoding capabilities into web-based projects.
Source repository
Open the original repository on GitHub.
9 counted GitHub visits