Spaces:
Runtime error
Runtime error
Commit
·
75215bc
1
Parent(s):
ace2d74
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=
|
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=0, length_function=len)
|
85 |
|
86 |
chunks = text_splitter.split_documents(text)
|
87 |
|