Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(text-splitters): validate chunk_overlap does not exceed chunk_size#34344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jeetgoyal80 wants to merge4 commits intolangchain-ai:master
base:master
Choose a base branch
Loading
fromjeetgoyal80:fix/validate-chunk-overlap

Conversation

@jeetgoyal80
Copy link

Summary

Adds defensive validation to prevent invalid chunk configurations in CharacterTextSplitter.

Changes

  • Raise ValueError when chunk_overlap is greater than chunk_size

Tests

  • Unit tests run locally: pytest libs/text-splitters/tests/unit_tests

@github-actionsgithub-actionsbot added the text-splittersRelated to the package `text-splitters` labelDec 13, 2025
@jeetgoyal80jeetgoyal80 changed the titleValidate chunk_overlap does not exceed chunk_sizefix(text-splitters): validate chunk_overlap does not exceed chunk_sizeDec 13, 2025
@github-actionsgithub-actionsbot added the fixFor PRs that implement a fix labelDec 13, 2025
@jeetgoyal80
Copy link
Author

All CI checks are passing now. Thanks for the review!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

fixFor PRs that implement a fixtext-splittersRelated to the package `text-splitters`

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@jeetgoyal80

[8]ページ先頭

©2009-2025 Movatter.jp