Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Building with LLMs

Document AI

Turning PDFs, scans and Office files into clean text and validated structured data.

Intermediate
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark
On this page

Overview

A lot of useful information is stuck in documents: invoices, contracts, reports, forms, slide decks. Document AI is the work of getting it out reliably. The first step is parsing, which turns a file into text with its structure (headings, tables, reading order) intact, using tools such as Docling, MarkItDown or a vision model for scans. The second is extraction, where a model fills a schema with the fields you need.

Quality depends on the parsing more than people expect: a table flattened into a run of numbers will produce confident wrong answers downstream. Good pipelines keep page references, validate every field against a schema and business rules, route low-confidence documents to a person, and are tested on a set of real documents with known answers.

What you will practise

  • Parse a mixed batch of PDFs and compare the output of two parsers
  • Extract fields into a schema and validate them before saving
  • Keep page and region references so a reviewer can check each value
  • Route documents the model is unsure about to human review
  • Build a labelled test set of real documents and track extraction accuracy

Learning paths

  • AI for data analysts

    An AI course for data analysts: clean spreadsheets, profile data with skills, go from SQL to a dashboard, extract PDF tables and catch invented numbers.

    Beginner9 h10 steps

Workflow recipes

Tools for this skill

  • Docling

    Converts PDFs and office documents into structured output for LLM pipelines.

    Retrieval and vector searchOpen source

  • MarkItDown

    Microsoft's Python utility that converts Office files and PDFs to Markdown for LLMs.

    Retrieval and vector searchOpen sourceMicrosoft

  • Unstructured

    Parses PDFs, scans, Office files and HTML into clean chunks for RAG.

    Retrieval and vector searchOpen sourceUnstructured

Key terms

Words you will meet while learning this, defined in the glossary.

Full glossary
  • Document parsing

    Converting PDFs, Office files, scans and web pages into clean text with structure, such as headings and tables, before indexing.

  • Multimodal model

    A model that accepts or produces more than one kind of data, such as text, images, audio or video, within the same request.

  • Structured outputs

    Constraining or validating model output so it matches a schema, usually JSON Schema, and can be parsed reliably by your code.

  • Vision-language model

    A model that takes images as well as text as input and answers in text, used for reading screenshots, charts, documents and photos.