feat: Make parser size threshold configurable via PARSER_SIZE_THRESHOLD_KB #28
+29
−2
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.
Parser selection threshold (500KB) was hardcoded in
src/rag.py, preventing customization for different use cases.Changes
ParserConfigclass withsize_threshold_kbfield (default: 500)500 * 1024withconfig.parser.size_threshold_kb * 1024PARSER_SIZE_THRESHOLD_KBvariableUsage
# Set threshold to 1MB for larger documents PARSER_SIZE_THRESHOLD_KB=1024Files below threshold use DeepSeek-OCR; files above use MinerU. Default behavior unchanged.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.