langchain
683da2c9 - text-splitters: Fix regex separator merge bug in CharacterTextSplitter (#31137)

Commit
280 days ago
text-splitters: Fix regex separator merge bug in CharacterTextSplitter (#31137) **Description:** Fix the merge logic in `CharacterTextSplitter.split_text` so that when using a regex lookahead separator (`is_separator_regex=True`) with `keep_separator=False`, the raw pattern is not re-inserted between chunks. **Issue:** Fixes #31136 **Dependencies:** None **Twitter handle:** None Since this is my first open-source PR, please feel free to point out any mistakes, and I'll be eager to make corrections.
Author
Parents
Loading