Faiss (Facebook AI Similarity Search) is an open-source library developed by Meta's Fundamental AI Research (FAIR) team for efficient similarity search and clustering of dense vectors. It provides optimized, GPU-accelerated implementations of core approximate nearest neighbor (ANN) search algorithms, enabling rapid retrieval of semantically similar items from massive datasets. Its primary function is to index high-dimensional embeddings—such as those from Sentence-BERT or other embedding models—so they can be queried in milliseconds, forming the computational backbone of vector stores and Retrieval-Augmented Generation (RAG) architectures.
