Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -194,7 +194,7 @@ def index_document_content(doc_content, doc_id):
|
|
| 194 |
"""
|
| 195 |
Indexes the document content by splitting it into chunks and creating embeddings.
|
| 196 |
"""
|
| 197 |
-
text_splitter = RecursiveCharacterTextSplitter(chunk_size=
|
| 198 |
texts = text_splitter.split_text(doc_content)
|
| 199 |
|
| 200 |
# Create embeddings for each chunk
|
|
|
|
| 194 |
"""
|
| 195 |
Indexes the document content by splitting it into chunks and creating embeddings.
|
| 196 |
"""
|
| 197 |
+
text_splitter = RecursiveCharacterTextSplitter(chunk_size=2000, chunk_overlap=500)
|
| 198 |
texts = text_splitter.split_text(doc_content)
|
| 199 |
|
| 200 |
# Create embeddings for each chunk
|