Spaces:
Build error
Build error
File size: 250 Bytes
8b37bdb | 1 2 3 4 5 6 | 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 |