Spaces:
Runtime error
Runtime error
Commit
·
47be40d
1
Parent(s):
5515a60
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ class ChatDocumentQA:
|
|
81 |
Returns:
|
82 |
List[str]: List of smaller text chunks.
|
83 |
"""
|
84 |
-
text_splitter = CharacterTextSplitter(separator="\n", chunk_size=500, chunk_overlap=
|
85 |
|
86 |
chunks = text_splitter.split_documents(text)
|
87 |
|
|
|
81 |
Returns:
|
82 |
List[str]: List of smaller text chunks.
|
83 |
"""
|
84 |
+
text_splitter = CharacterTextSplitter(separator="\n", chunk_size=500, chunk_overlap=100, length_function=len)
|
85 |
|
86 |
chunks = text_splitter.split_documents(text)
|
87 |
|