Allow users to customize the context length limit, currently hardcoded to 900 tokens, via an environment variable or config file setting. This would provide flexibility for users with larger documents or different chunk strategies.
Currently the context length limit is hardcoded to 900 tokens. For users with larger documents or different chunk strategies, it would be useful to allow customization via: - Environment variable: `QMD_MAX_CONTEXT_CHARS` - Or config file setting This would give users flexibility without needing wrapper scripts. **Use case:** We need to increase this limit for better contextual retrieval in our agentic workflow. **Expected behavior:** Users can set a custom value via environment variable or config to override the default 900 token limit. **Workaround (current):** Using wrapper scripts that patch the binary on each invocation, which is fragile and adds overhead. Thank you for considering this feature!