Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,8 +32,8 @@ def setup_vectorstore(documents):
|
|
| 32 |
embeddings = HuggingFaceEmbeddings()
|
| 33 |
text_splitter = CharacterTextSplitter(
|
| 34 |
separator="/n",
|
| 35 |
-
chunk_size=
|
| 36 |
-
chunk_overlap=
|
| 37 |
)
|
| 38 |
doc_chunks = text_splitter.split_documents(documents)
|
| 39 |
vectorstores = FAISS.from_documents(doc_chunks, embeddings)
|
|
|
|
| 32 |
embeddings = HuggingFaceEmbeddings()
|
| 33 |
text_splitter = CharacterTextSplitter(
|
| 34 |
separator="/n",
|
| 35 |
+
chunk_size=500,
|
| 36 |
+
chunk_overlap=100
|
| 37 |
)
|
| 38 |
doc_chunks = text_splitter.split_documents(documents)
|
| 39 |
vectorstores = FAISS.from_documents(doc_chunks, embeddings)
|