streamlit_app / src /vector_store.py
Ajeet001's picture
Upload 5 files
06b3af5 verified
raw
history blame contribute delete
250 Bytes
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