Skip to content

style(chunking_utils): rename overlap_tokens to overlap_size#376

Open
luojiyin1987 wants to merge 1 commit into
StarTrail-org:mainfrom
luojiyin1987:style/rename-overlap-param
Open

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

Conversation

@luojiyin1987

Copy link
Copy Markdown

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.
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