Skip to content

fix: Magic numbers in chunking configuration#32

Open
mrwind-up-bird wants to merge 1 commit intomainfrom
autofix/dd2853cd/magic-numbers-in-chunking-conf
Open

fix: Magic numbers in chunking configuration#32
mrwind-up-bird wants to merge 1 commit intomainfrom
autofix/dd2853cd/magic-numbers-in-chunking-conf

Conversation

@mrwind-up-bird
Copy link
Copy Markdown
Collaborator

AutoFix: Magic numbers in chunking configuration

Category: code-smell
Severity: low

Issue

The chunking service uses hardcoded magic numbers (512, 64) for chunk size and overlap without named constants or configuration. This makes the values difficult to tune and understand in context.

Fix

Replaced magic numbers 512 and 64 with named constants DEFAULT_CHUNK_SIZE and DEFAULT_CHUNK_OVERLAP defined at module level. This makes the values easier to understand, tune, and maintain while preserving the existing functionality and API.


Generated by nyxCore AutoFix

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