---
title: "Vision LLMs are PDF Parsers Too: Reading Charts and Diagrams for RAG"
url: https://daily.dev/posts/vision-llms-are-pdf-parsers-too-reading-charts-and-diagrams-for-rag-4rms4zj8l
source_url: https://towardsdatascience.com/vision-llms-are-pdf-parsers-too-reading-charts-and-diagrams-for-rag
type: article
source: "Towards Data Science"
published: 2026-06-14T15:15:50.097Z
updated: 2026-06-14T15:16:13.250Z
tags: ["rag", "gpt", "vlm"]
reading_time: 14
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Vision LLMs are PDF Parsers Too: Reading Charts and Diagrams for RAG

**[Towards Data Science](https://daily.dev/sources/tds)** · 14 min read · 0 upvotes · 0 comments

## Summary

Vision LLMs like GPT-4.1 can parse PDF pages as images, extracting not just text and tables but also the content of charts and diagrams — something traditional text-based parsers (PyMuPDF, Azure Layout, Docling) cannot do. The article demonstrates a `parse_page_vision` function using Pydantic structured output to return page markdown plus per-figure descriptions and transcriptions. Key trade-offs: vision parsing is slower, more expensive per page, and less numerically exact than deterministic parsers, and model quality matters significantly (GPT-4.1 finds all charts where GPT-4o-mini misses half). The recommended strategy is to use vision parsing selectively for visually dense pages where text parsers return empty results. Mistral Document AI is also mentioned as a packaged alternative, with a noted limitation around missing bounding boxes for text content.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://towardsdatascience.com/vision-llms-are-pdf-parsers-too-reading-charts-and-diagrams-for-rag>

## Similar posts on daily.dev

- [Loop Engineering with Adaptive Parsing in Action: Parsing Flat Tables with Azure and Figures with a Vision LLM](https://daily.dev/posts/loop-engineering-with-adaptive-parsing-in-action-parsing-flat-tables-with-azure-and-figures-with-a--7noiwibnc) · Towards Data Science · 0 upvotes · 0 comments
- [Loop Engineering with Adaptive PDF Parsing: Start Cheap, Pay for a Heavier Parser Only When the Page Needs It](https://daily.dev/posts/loop-engineering-with-adaptive-pdf-parsing-start-cheap-pay-for-a-heavier-parser-only-when-the-page-clzerc01t) · Towards Data Science · 0 upvotes · 0 comments
- [How to Apply Vision Language Models to Long Documents](https://daily.dev/posts/how-to-apply-vision-language-models-to-long-documents-mppyy8sya) · Towards Data Science · 2 upvotes · 0 comments

---

Tags: [#rag](https://daily.dev/tags/rag), [#gpt](https://daily.dev/tags/gpt), [#vlm](https://daily.dev/tags/vlm)

[View this post on daily.dev](https://daily.dev/posts/vision-llms-are-pdf-parsers-too-reading-charts-and-diagrams-for-rag-4rms4zj8l)
