refactor(parse): remove MinerU PDF strategy - #3966
Closed
qin-ctx wants to merge 1 commit into
Closed
Conversation
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.
Description
OpenViking 当前同时保留了本地
pdfplumber解析和 MinerU 远程转换。默认的auto模式先执行本地解析,失败后才可能调用 MinerU。仓库内没有为这条远程路径提供稳定的集成入口或契约覆盖,却额外引入了一套配置、回退逻辑和返回元数据。修改前:
PDFConfig.strategy支持auto/local/mineru。auto可根据mineru_endpoint回退到 MinerU。pdf_strategy和strategy元数据。修改后:
pdfplumber提取文本、表格、图片和文档结构,再交给MarkdownParser构建上下文树。Human Involvement
Related Issue
N/A
Type of Change
Changes Made
PDFParser中的 MinerU 远程转换和auto回退分支,收敛为单一本地解析链路。strategy和全部mineru_*PDF 配置,更新中英文文档和示例配置。Testing
66 passed:同时通过 Ruff、
git diff --check和无新增测试用例检查。Checklist
Screenshots (if applicable)
N/A
Additional Notes
这是一个配置破坏性变更。升级后需从
parsers.pdf中删除以下字段:{ "strategy": "auto", "mineru_endpoint": "...", "mineru_api_key": "...", "mineru_timeout": 300, "mineru_params": {} }这些字段不再被接受,配置加载时会明确报
Unknown config field。