Practical AI
Practical AI

Technical advances in document understanding

Chris and Daniel unpack how AI-driven document processing has rapidly evolved well beyond traditional OCR with many technical advances that fly under the radar. They explore the progression from document structure models to language-vision models, all the way to the newest innovations like Deepseek-

Featured Speakers

Daniel Weitnack Guest

Topics Discussed

Episode Summary

Executive Summary: Daniel Weitnack and Chris Benson explain how OCR, document-structure models, vision-language models, and DeepSeek OCR handle documents differently. They compare their processing methods, strengths, computational costs, and limitations, emphasizing that structure-preserving document extraction can improve RAG by keeping text and context in order. The hosts also reflect on the show and thank listeners.

Main Topics: Why document processing matters: The hosts frame document processing as a practical, often overlooked business workflow: extracting, summarizing, and organizing emails, regulations, and other documents. They stress that progress in this area is useful even when it receives less attention than generative AI headlines. Traditional OCR: OCR detects text regions in an image and predicts characters or text, typically using relatively small models. It can run efficiently on CPUs, but may depend on clean scans and can lose document layout, leaving text jumbled or requiring manual correction. Document-structure models: Models and toolkits such as Docling identify layout elements—such as headings, paragraphs, and tables—and represent their organization in formats such as JSON or Markdown. They can preserve complex document structure, but do not themselves perform text recognition and can require more compute than OCR. Document processing for RAG: Structure-preserving extraction can improve retrieval-augmented generation by keeping related text and its ordering intact. This reduces the risk that OCR will jumble the content and degrade the context provided to a RAG system. Vision-language models: These models combine image and text inputs and generate text-token outputs, enabling general-purpose reasoning about images and documents. They can answer document questions or reconstruct content, but do not provide a directly interpretable mapping between output text and document regions. DeepSeek OCR and resolution handling: DeepSeek OCR combines a global page view with high-resolution image tiles, aiming to retain fine details such as small text, equations, line breaks, and alignment without losing their position in the overall document. It requires GPUs, and the hosts present it as an emerging approach rather than a settled standard.

Key Arguments: No single document-processing method suits every task: basic OCR may be sufficient for clean, text-only scans, while complex layouts benefit from document-structure models. Traditional OCR converts detected image regions into text but does not inherently preserve the document’s layout; this can make extracted content harder to interpret or use. Document-structure models complement OCR by identifying and organizing layout elements, but text extraction still needs to be supplied separately. For RAG, preserving the order and structure of document content can improve the quality of retrieved context, even when the output does not need to reproduce the original document’s appearance. Vision-language models offer flexible image-and-text reasoning, but their generated text is not explicitly tied to particular regions or characters in the input image. DeepSeek OCR’s global-view-plus-tiles approach is intended to preserve both fine visual detail and document context, addressing fixed-resolution limitations in many vision-language models. Model choice involves trade-offs among accuracy, layout preservation, compute requirements, and the complexity of the documents being processed.

Data Points: Shopify share of U.S. e-commerce: 10% - A sponsor-read claim describing Shopify’s share of U.S. e-commerce. Shopify trial price: $1 per month - The sponsor-read offer for starting a Shopify trial. Podcast duration: Nearly 8 years - The hosts say the show has been running for going on eight years. Illustrative document image size: 1,000 × 1,500 pixels - Daniel’s example of a page image that may be reduced to a smaller fixed input size by a vision-language model. Illustrative fixed model input size: 256 × 256 pixels - The example resolution Daniel uses to explain how resizing a document can lose small text, footnotes, diagrams, and equations.

Pivotal Quotes: "The cleaner and more context-relevant you can make those chunks of text into your RAG system, the better results you're going to get in the responses from the RAG system." — Daniel Weitnack: Explaining why preserving document structure during ingestion can improve RAG results. "You really kind of want to use this when you need to preserve the structure of the documents that are input, and you maybe have complex structures again, like the data sheets or multi-column or mix of columns and other things." — Daniel Weitnack: Describing when document-structure models are more appropriate than basic OCR. "There's actually such a diversity and such innovation going on here, much more diversity on the model side and the technical side. Than what you see in large language models." — Daniel Weitnack: Summarizing the range of approaches and ongoing innovation in document-processing models.

Implications: Teams should select document-processing methods based on layout complexity, accuracy needs, and compute limits. For RAG, preserving structure and ordering can improve context quality; newer tiled-resolution approaches may help retain fine details but bring greater hardware demands.

🔓 Sign Up for Unlimited Episode Search

About Practical AI

View all episodes from Practical AI