Spaces:
Sleeping
Sleeping
File size: 287 Bytes
9a2d4ec | 1 2 3 4 5 6 7 8 9 10 11 12 | from langchain_community.vectorstores import FAISS
from langchain_openai import OpenAIEmbeddings
def create_vector_store(chunks):
embeddings = OpenAIEmbeddings()
db = FAISS.from_documents(
documents=chunks,
embedding=embeddings
)
return db |