Spaces:
Sleeping
Sleeping
from langchain_community.vectorstores import FAISS | |
def create_vectorstore(doc_chunks, embeddings): | |
"""Create a FAISS vector store from document chunks.""" | |
vectorstore = FAISS.from_documents(doc_chunks, embeddings) | |
return vectorstore |