You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Token chunking strategy silently drops text when overlap is set #10706
Describe the bug
With the Token strategy and overlap greater than 0, the window advances by a fixed step from its start. When a window ends early at a space, the text between that space and the next window's start lands in no chunk, so it is never embedded or searchable.
To Reproduce
Create a knowledge base with the Token strategy, max size 1024 and overlap 200.
Upload text with long runs without spaces, such as Chinese prose with a few English words, long URLs or base64.
Compare the chunk text with the source: whole stretches are missing.
Expected behavior
Every character of the document appears in at least one chunk.
Additional context iterateWordBoundaryChunkSpans in apps/sim/lib/chunkers/utils.ts. Documents already indexed would need re-processing to recover the missing text.
Activity