Skip to content

Render PDF pages to images for vision extraction - #4

Open
f-wunderlich wants to merge 1 commit into
PaulArgoud:19.0from
f-wunderlich:fw/0002-vision-pdf-rendering
Open

Render PDF pages to images for vision extraction#4
f-wunderlich wants to merge 1 commit into
PaulArgoud:19.0from
f-wunderlich:fw/0002-vision-pdf-rendering

Conversation

@f-wunderlich

Copy link
Copy Markdown

Summary

  • render PDF pages to PNG before sending them to vision-capable providers
  • guard both the primary and retry vision paths against prompt-only fallbacks when rendering produces no pages
  • add regression coverage for the new PDF vision path and retry guard

Why

The existing vision flow can send only the textual prompt for PDFs, which means the model receives no document content.

Testing

  • added coverage in tests/test_extraction_modes.py
  • added coverage in tests/test_vision_retry.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant