refactor(parse): unify document parsing with AnyDoc - #3957
Draft
qin-ctx wants to merge 3 commits into
Draft
Conversation
Replace unmaintained format-specific parsers and MinerU integration with explicit document parsing ownership while preserving embedded images and presentation notes.
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
Unify the existing Office and EPUB parsing paths on AnyDoc, while keeping image extraction under OpenViking's ingestion policy. Replace the previous PDF/MinerU path with pdf-inspector-owned text and layout extraction plus pdfplumber-owned image extraction.
Human Involvement
Related Issue
N/A
Type of Change
Changes Made
.doc,.docx,.pptx,.xls,.xlsx,.xlsm, and.epubthrough AnyDoc's public document model, preserving supported embedded-image positions and rendering PowerPoint speaker notes as orderedSpeaker Notessections in the same resource.ExcelConfig, obsolete production dependencies, and outdated tests; share one OpenViking image validation policy across Markdown, AnyDoc, and PDF ingestion.Testing
Validated with:
pytest -q -o addopts='' tests/parse tests/test_config_loader.py(494 passed, 31 skipped)uv lock --check, andgit diff --checkChecklist
Screenshots (if applicable)
N/A
Additional Notes
parsers.excelis removed and now rejected instead of being silently ignored.