Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ def load_vector_store(file_path, store_name, force_reload=False):
|
|
85 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=800, chunk_overlap=100, length_function=len)
|
86 |
text = load_pdf_text(file_path)
|
87 |
chunks = text_splitter.split_text(text=text)
|
88 |
-
embeddings = OpenAIEmbeddings(
|
89 |
VectorStore = FAISS.from_texts(chunks, embedding=embeddings)
|
90 |
|
91 |
# Serialize the vector store
|
|
|
85 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=800, chunk_overlap=100, length_function=len)
|
86 |
text = load_pdf_text(file_path)
|
87 |
chunks = text_splitter.split_text(text=text)
|
88 |
+
embeddings = OpenAIEmbeddings()
|
89 |
VectorStore = FAISS.from_texts(chunks, embedding=embeddings)
|
90 |
|
91 |
# Serialize the vector store
|