Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -75,8 +75,8 @@ if query:
|
|
75 |
splitter = RecursiveCharacterTextSplitter(
|
76 |
chunk_size=100, # Maximum size of each chunk
|
77 |
chunk_overlap=20, # Overlap between chunks
|
78 |
-
separators=[".", "\n",]
|
79 |
-
The order of separators: first split by double newlines, then single newlines, then spaces, and finally characters
|
80 |
)
|
81 |
|
82 |
# Split the text into chunks
|
|
|
75 |
splitter = RecursiveCharacterTextSplitter(
|
76 |
chunk_size=100, # Maximum size of each chunk
|
77 |
chunk_overlap=20, # Overlap between chunks
|
78 |
+
separators=[".", "\n","\n\n"]
|
79 |
+
#The order of separators: first split by double newlines, then single newlines, then spaces, and finally characters
|
80 |
)
|
81 |
|
82 |
# Split the text into chunks
|