Vibeleaderboard
← All Intel
Intel / video

Agentic document extraction: reasoning over PDF components, not OCR text

Source
video.twimg.com
Publisher
Andrew Ng
Author
Andrew Ng
Date

Context

Agentic Document Extraction is built on the premise that a document carries meaning in its layout and visuals, which text-only conversion throws away. Andrew Ng announced the tool on X on February 27, 2025. Optical character recognition (OCR) and most PDF-to-text methods focus on pulling out the words. In Ng's examples, that misses the checkboxes and layout of a medical form, the arrows that show how steps in a flow chart connect, and figures that financial documents present in charts and tables. Ng says tools that miss these features may give an incorrect, partial or even hallucinated answer. The agentic approach instead breaks a document into its component pieces, such as fields, tables, checkboxes and images, and uses reasoning to examine and connect them. The post names retrieval-augmented generation (RAG), where an looks up document content to answer questions, as one use for the output.

The accuracy case rests on Ng's own estimate rather than a published test. Ng guesses OCR-based approaches get many documents "70-80% right", good enough for many applications, and says the agentic approach "does much better" on form fields, charts and checkboxes, without giving a measured figure. The feature Ng presents as the basis for trust is visual : the API returns the precise location of each element and piece of text, so a user can see exactly where an answer came from. For a team deciding whether to use it, that makes the claimed gain checkable on their own documents instead of a number to accept. A later update added schema-based field extraction, which pulls named values such as invoice totals and shows the same grounding for each.

Terms in this piece · Glossary
  • Application — Software arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.
  • grounding — Tying a model's answers to checkable sources — retrieved documents, live data, tool results — instead of letting it answer from memory alone.
  • Schema — A written description of a data format: which fields exist, what kind of value each holds and which are required.
  • Field — One named piece of a record, such as name or approved_on; a record is one entity's set of values, one per field.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source video.twimg.com
More from Andrew Ng
Recommended reads