Image Extraction Improvements for Issue #511#1136
Draft
ljluestc wants to merge 1 commit into
Draft
Conversation
- Add load_data_with_images / aload_data_with_images convenience methods to LlamaParse (Python) that return both text/markdown documents and ImageDocument objects in a single call - Add loadDataWithImages to LlamaParseReader (TypeScript) that returns documents and image metadata together - Add JobResult diagnostic helpers: has_images(), get_image_extraction_summary(), get_image_extraction_troubleshooting(), print_image_extraction_report() - Emit a helpful warning when parse() detects no images were extracted, suggesting language, premium_mode, and take_screenshot options - Clarify fast_mode description to warn it skips image extraction - Improve docstrings on load_data / loadData to point users toward image-aware methods - Add 17 unit tests for the new JobResult methods Closes run-llama#511
|
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.
Image Extraction Improvements for Issue #511
Problem Statement
Users reported that images in uploaded PDFs are not being recognized or extracted. Specifically, a user uploaded a Chinese microwave oven instruction manual (weibolu.pdf) containing text, images, and tables, but the output did not contain the images.
Job ID:
6a79d5d9-ce02-4103-9055-db03be7e7613Root Cause Analysis
language='zh'for optimal OCRSolution Overview
This PR adds comprehensive image extraction diagnostics, warnings, and convenience methods to help users successfully extract images from PDFs.
Migration Guide
For users currently using
load_data():For users currently using
parse():Related Issues