Facebook AI Similarity Search (Faiss) is a library for efficient similarity search and clustering of dense vectors. It contains algorithms that search in sets of vectors of any size, up to ones that possibly do not fit in RAM. It also contains supporting code for evaluation and parameter tuning.
Installation and Setup
We need to install
faiss python package.
pip install faiss-gpu # For CUDA 7.5+ supported GPU's.
pip install faiss-cpu # For CPU Installation
See a usage example.
from langchain_community.vectorstores import FAISS