Add fallback length-based splitting option for RecursiveCharacterTextSplitter when no separators found #29782
SandyKidYao
announced in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
Add a new parameter to the RecursiveCharacterTextSplitter class that ensures text splitting at the specified chunk size even when no separators are found in the input text. This would serve as a fallback mechanism when the regular separator-based splitting cannot be applied.
Motivation
Current Behavior:
Limitations:
The current implementation works well for most common use cases but fails to handle edge cases where:
Use Case Benefits:
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions