Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Document Ingestion Pipelines

Free · sign in to start and track progress

1 · Reading real-world documents

  • 1What a real case file contains

    Exercise answers

    • Answer: Build and tune a page triage
    • Answer: Unpack and deduplicate a matter's email
  • 2Parsing: text layers to vision models
  • 3Tables, plans and handwriting
  • 4Structured extraction at scale

2 · Running ingest in production

  • 5Durable ingest pipelines
  • 6Re-ingestion, versioning and backfills
  • 7PII detection and redaction
  • 8Ingest evals and the hand-off
CapstoneIngest a case file end to endReference implementation

Module 1 · Reading real-world documents · Lesson 1

What a real case file contains

The documents a real case file actually contains, the properties of each that decide how it must be ingested, and the record an ingest pipeline should produce for every page.

60 min 1 video 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodePython with uv

By the end of this lesson you can

  • Inventory a case file by document type, issuer, origin and the facts agents need from each
  • Explain why a PDF's text layer can be missing, wrong or out of order, and detect each case per page in Python
  • Design the classify-and-split step that turns compound PDFs and email threads into individual documents
  • Define the per-document and per-page record that every later stage reads and writes

On this page

  • Intuition: the post room before the fee earner
  • The documents in a leasehold purchase
  • Why a PDF is not a text file
  • Detecting the case, per page
  • Classify and split before you parse
  • The record every page gets
  • Worked example: the reference matter
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: the post room before the fee earner
  2. 02The documents in a leasehold purchase
  3. 03Why a PDF is not a text file
  4. 04Detecting the case, per page
  5. 05Classify and split before you parse
  6. 06The record every page gets
  7. 07Worked example: the reference matter
  8. 08Connections
  9. 09Summary

Sources & further reading

  • Document Parsing Unveiled: Techniques, Challenges, and Prospects for Structured Information ExtractionPaper · Zhang et al. · 2024A survey of document parsing (revised 2026). Section 2 lays out the modular pipeline (layout analysis, OCR, tables, reading order) versus end-to-end vision-language models, the vocabulary this course uses.
  • DocLayNet: A Large Human-Annotated Dataset for Document-Layout AnalysisPaper · Pfitzmann, Auer, Dolfi, Nassar, Staar · IBM Research · 2022KDD 2022. The layout classes it defines (text, title, table, picture, list item, page header and footer, caption, footnote, formula, section header) are what most layout models still predict, and the paper shows how much layouts vary between document types.
  • How to read a title registerLab research · HM Land RegistryThe official guide to the property, proprietorship and charges registers. Read it once so you know what the parser must preserve.
  • How to read a title planLab research · HM Land RegistryRed edging, colour references and why the plan does not show exact legal boundaries. The Tables, plans and handwriting lesson builds on this.
  • Local Land Charges ProgrammeLab research · HM Land RegistryWhich local authorities' land charges registers have moved to HM Land Registry's national digital register. It explains why the same search arrives in different formats for different councils.
  • email: An email and MIME handling packageDocs · Python Software FoundationThe standard library you use to unpack .eml files, walk MIME parts and pull out attachments. Use the modern policy API (policy.default), not the legacy compat32 one.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 9 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks