Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ def main():
|
|
| 47 |
length_function=len
|
| 48 |
)
|
| 49 |
texts = text_splitter.split_documents(data)
|
| 50 |
-
embeddings = OpenAIEmbeddings()
|
| 51 |
VectorStore = FAISS.from_texts([t.page_content for t in texts], embedding=embeddings)
|
| 52 |
with open(f"{store_name}.pkl", "wb") as f:
|
| 53 |
pickle.dump(VectorStore, f)
|
|
|
|
| 47 |
length_function=len
|
| 48 |
)
|
| 49 |
texts = text_splitter.split_documents(data)
|
| 50 |
+
embeddings = OpenAIEmbeddings(chunk_size = 1)
|
| 51 |
VectorStore = FAISS.from_texts([t.page_content for t in texts], embedding=embeddings)
|
| 52 |
with open(f"{store_name}.pkl", "wb") as f:
|
| 53 |
pickle.dump(VectorStore, f)
|