Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunk overlap prefix is on even word boundary >= overlap character count. #2886

Open
scanny opened this issue Apr 12, 2024 · 0 comments
Open
Labels
chunking Related to element chunking. enhancement New feature or request

Comments

@scanny
Copy link
Collaborator

scanny commented Apr 12, 2024

Problem
Chunk text begins mid-word when overlap is specified.

image

Desired solution
Compute the overlap prefix as the next even-word boundary greater than or equal to overlap characters from the end of the prior chunk.

@scanny scanny added enhancement New feature or request chunking Related to element chunking. labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chunking Related to element chunking. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant