Skip to content

fix: validate chunk_size and chunk_overlap#37

Open
echobt wants to merge 1 commit intomainfrom
fix/issue-156
Open

fix: validate chunk_size and chunk_overlap#37
echobt wants to merge 1 commit intomainfrom
fix/issue-156

Conversation

@echobt
Copy link
Copy Markdown
Contributor

@echobt echobt commented Jan 20, 2026

This PR adds validation to chunk_size and chunk_overlap configuration settings.

Changes

  • chunk_size must be greater than 0.
  • chunk_size must be greater than chunk_overlap.
  • chunk_overlap must be less than chunk_size.

Validation

Verified that setting invalid values (e.g., chunk_size=0 or chunk_overlap > chunk_size) now returns an error.

Fixes #156

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant