Spaces:
Runtime error
Runtime error
Commit
·
10fbdc8
1
Parent(s):
b624b01
summary token
Browse files
app.py
CHANGED
@@ -344,7 +344,7 @@ def process_documents_3(ignored_files: List[str] = []) -> List[Document]:
|
|
344 |
print("No new documents to load")
|
345 |
exit(0)
|
346 |
print(f"Loaded {len(documents)} new documents from {source_directory}")
|
347 |
-
text_splitter = RecursiveCharacterTextSplitter(chunk_size=
|
348 |
texts = text_splitter.split_documents(documents)
|
349 |
print(f"Split into {len(texts)} chunks of text (max. {chunk_size} tokens each)")
|
350 |
return texts
|
|
|
344 |
print("No new documents to load")
|
345 |
exit(0)
|
346 |
print(f"Loaded {len(documents)} new documents from {source_directory}")
|
347 |
+
text_splitter = RecursiveCharacterTextSplitter(chunk_size=4000, chunk_overlap=500)
|
348 |
texts = text_splitter.split_documents(documents)
|
349 |
print(f"Split into {len(texts)} chunks of text (max. {chunk_size} tokens each)")
|
350 |
return texts
|