fix(docreader): remove default 100-page limit for DOCX parsing
The default DOCREADER_DOCX_MAX_PAGES=100 silently truncates large documents, causing users to see at most ~1000 chunks regardless of document length. Change the default to 0 (no limit) so all pages are processed. Operators who need a cap can still set the env var. Fixes #719
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ def load_config() -> DocReaderConfig:
|
||||
* 1024
|
||||
)
|
||||
grpc_port = _get_int(["DOCREADER_GRPC_PORT", "PORT"], 50051)
|
||||
docx_max_pages = _get_int(["DOCREADER_DOCX_MAX_PAGES"], 100)
|
||||
docx_max_pages = _get_int(["DOCREADER_DOCX_MAX_PAGES"], 0)
|
||||
|
||||
external_http_proxy = _get_str(
|
||||
["DOCREADER_EXTERNAL_HTTP_PROXY", "EXTERNAL_HTTP_PROXY"], ""
|
||||
|
||||
Reference in New Issue
Block a user