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 includes supporting code for evaluation and parameter tuning. See The FAISS Library paper.You can find the FAISS documentation at this page. This notebook shows how to use functionality related to the
FAISS
vector database. It will show functionality specific to this integration. After going through, it may be useful to explore relevant use-case pages to learn how to use this vectorstore as part of a larger chain.
langchain-community
package. We also need to install the faiss
package itself. We can install these with:
Note that you can also install faiss-gpu
if you want to use the GPU enabled version
$eq
(equals)$neq
(not equals)$gt
(greater than)$lt
(less than)$gte
(greater than or equal)$lte
(less than or equal)$in
(membership in list)$nin
(not in list)$and
(all conditions must match)$or
(any condition must match)$not
(negation of condition)FAISS
vector store features and configurations head to the API reference: https://python.langchain.com/api_reference/community/vectorstores/langchain_community.vectorstores.faiss.FAISS.html