chore(text-splitters): overlap threshold introduced in `TextSplitter`
by keenborder786
·
Feb 06, 2026 at 19:30 UTC
·
scan-1296b705ce312cbd
Get this automatically on every PR
Install the Axiomo GitHub App to get Signals as check runs and PR comments on every pull request.
Risk level: Low (20%)
Introduce overlap threshold in TextSplitter to apply overlapping for smaller chunks.
base.py: New overlap_threshold parameter enables overlap for small chunks.
base.py: overlap_threshold parameter is optional to ensure compatibility.
test_text_splitters.py: Tests added for overlap_threshold validation.
Established contributor with 89 merged PRs. maintains 101 public repositories. unfamiliar with 2 files.
Review 1 high-priority file(s)
libs/text-splitters/tests/unit_tests/test_text_splitters.py
+107
107 lines changed; Source code
libs/text-splitters/langchain_text_splitters/base.py
+35
Source code
23
minutes to review
medium
effort level
none
staleness risk
Standard review process
Good evidence, acceptable risk, ready for merge
Why is security_scan_clean missing? Consider adding this check.
Why is coverage_maintained missing? Consider adding this check.