feat(core): make chunk limit configurable via CHUNK_LIMIT environment variable#264
Open
micari wants to merge 1 commit intozilliztech:masterfrom
Open
feat(core): make chunk limit configurable via CHUNK_LIMIT environment variable#264micari wants to merge 1 commit intozilliztech:masterfrom
micari wants to merge 1 commit intozilliztech:masterfrom
Conversation
… variable Previously, the chunk limit was hardcoded to 450000. This change makes it configurable through the CHUNK_LIMIT environment variable, following the same pattern as other configuration options like EMBEDDING_BATCH_SIZE. Changes: - Read CHUNK_LIMIT from environment variable with default of 450000 - Add validation to ensure minimum value of 1 - Add logging to display configured chunk limit - Update documentation in environment-variables.md - Add CHUNK_LIMIT to .env.example - Update MCP help message with advanced configuration section Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes the hardcoded chunk limit of 450,000 configurable through the
CHUNK_LIMITenvironment variable, following the same pattern as other configuration options likeEMBEDDING_BATCH_SIZE.Motivation
The chunk limit was previously hardcoded at 450,000, which limited flexibility for different use cases. Users with larger codebases or different performance requirements can now configure this value to suit their needs.
Changes
CHUNK_LIMITfrom environment variable with default of 450000docs/getting-started/environment-variables.mdwith new variableCHUNK_LIMITto.env.exampleUsage Examples
Global configuration (
~/.context/.env):```bash
CHUNK_LIMIT=1000000
```
Process environment variable:
```bash
CHUNK_LIMIT=1000000 npx @zilliz/claude-context-mcp@latest
```
Default behavior (no configuration):
Testing
EMBEDDING_BATCH_SIZEChecklist
🤖 Generated with Claude Code