← Learning

Docling

A linear, one-concept-per-lesson path through docling, the IBM/LF AI open-source document-conversion library, from your first convert() call to a folder-to-queryable-chunks RAG ingestion pipeline. 18 lessons · 3 tiers.

Prerequisites: Comfortable writing basic Python (functions, imports, running a script). This teaches docling concepts, not coding. Lesson 16 assumes no prior LlamaIndex experience, it's introduced there.

No API key is required for the core conversion pipeline, docling's layout, table, and OCR models run locally (the first run downloads a few hundred megabytes of model weights, then reuses the local cache). Lesson 16 makes real Gemini API calls and needs a GOOGLE_API_KEY in a .env file at the project root, the same free tier used throughout this repo (get one at aistudio.google.com/apikey).

Built on docling, the open-source library this course teaches.

Course source

Every lesson's README and lesson.py for this course live in the ai-agent-engineering repo.

View on GitHub →
Docling

Beginner

Your first conversions, and what DoclingDocument actually holds.

  1. 01What Is DoclingGitHub
  2. 02First Convert CallGitHub
  3. 03The Docling DocumentGitHub
  4. 04Converting DOCX and PPTXGitHub
  5. 05Reading StructureGitHub
  6. 06Checkpoint: Convert a Whole FolderGitHub

Intermediate

Pipeline options, tables, OCR, and chunking for RAG.

  1. 07PDF Pipeline OptionsGitHub
  2. 08Table Structure with TableFormerGitHub
  3. 09OCR for Scanned PDFsGitHub
  4. 10Images and Picture ExtractionGitHub
  5. 11Chunking with HybridChunkerGitHub
  6. 12Exporting to JSONGitHub
  7. 13Checkpoint: Table + OCR + Chunked JSON PipelineGitHub

Advanced

Enrichment, performance, and closing the loop with LlamaIndex.

  1. 14Formula and Code EnrichmentGitHub
  2. 15Batch Conversion and PerformanceGitHub
  3. 16Feeding Docling into LlamaIndexGitHub
  4. 17Comparing Docling, MarkItDown, and LiteParseGitHub
  5. 18Capstone: Folder to Queryable RAG IndexGitHub
Start at Lesson 1

Contact

Book a Call