Skip to content

style(chunking_utils): rename overlap_tokens to overlap_size#376

Merged
ASuresh0524 merged 1 commit into
StarTrail-org:mainfrom
luojiyin1987:style/rename-overlap-param
Jun 15, 2026
Merged

style(chunking_utils): rename overlap_tokens to overlap_size#376
ASuresh0524 merged 1 commit into
StarTrail-org:mainfrom
luojiyin1987:style/rename-overlap-param

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

The parameter name overlap_tokens was misleading — calculate_safe_chunk_size() is called with chunk_overlap which represents tokens in traditional mode but characters in AST mode. Renaming to overlap_size avoids the semantic confusion.

No behavioural change — all callers pass by position.

The parameter name was misleading — in traditional mode it represents
tokens, but in AST mode callers pass a character count.  overlay_size
avoids the confusion without changing the code's math.
@ASuresh0524 ASuresh0524 merged commit cfb1382 into StarTrail-org:main Jun 15, 2026
31 checks passed
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.

2 participants