- Notifications
You must be signed in to change notification settings - Fork6.1k
Comments
feat(pdf): Add smart PDF routing with local text extraction#2811
Draft
abimaelmartell wants to merge 1 commit intomainfrom
Draft
feat(pdf): Add smart PDF routing with local text extraction#2811abimaelmartell wants to merge 1 commit intomainfrom
abimaelmartell wants to merge 1 commit intomainfrom
Conversation
f738d07 to7ad32b3Compare 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 freeto 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.
Uh oh!
There was an error while loading.Please reload this page.
Add intelligent PDF processing that detects whether a PDF is text-based or scanned before choosing an extraction method. Text-based PDFs (with ≥80% confidence) are now extracted locally using the Rust pdf-inspector library. Optimize the flow by deferring base64 encoding until MinerU is actually needed, and add structured logging for monitoring extraction methods.
Summary by cubic
Adds smart PDF routing that inspects each file and picks the fastest extractor. Text PDFs (≥80% confidence) are extracted locally in Rust; scanned/image PDFs fall back to MinerU (RunPod) or pdf-parse.
New Features
Performance
Written for commit7ad32b3. Summary will update on new commits.