Facebook AI Similarity Search is an open source library for search by semantic similarity. It can act as an in-memory vector store for [[Retrieval Augmented Generation|RAG]] applications.
Use [[LangChain]] to access FAISS for RAG.
```python
from langchain.vectorstores import FAISS
vectorstore = FAISS.from_documents(
documents=chunks,
embeddings=embeddings
)
```