langchain
df855eac - experimental[patch]: Makes regex customizable in text_splitter.py (SemanticChunker class) (#20485)

Commit
1 year ago
experimental[patch]: Makes regex customizable in text_splitter.py (SemanticChunker class) (#20485) - **Description:** Currently, the regex is static (`r"(?<=[.?!])\s+"`), which is only useful for certain use cases. The current change only moves this to be a parameter of split_text(). Which adds flexibility without making it more complex (as the default regex is still the same). - **Issue:** Not applicable (I searched, no one seems to have created this issue yet). - **Dependencies:** None. _If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, hwchase17._ --------- Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com> Co-authored-by: Bagatur <baskaryan@gmail.com>
Author
Committer
Parents
Loading