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
  • 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

    Exercise answers

    • Answer: Build an ingest eval harness
    • Answer: Specify and test the retrieval hand-off
CapstoneIngest a case file end to endReference implementation

Module 2 · Running ingest in production · Lesson 8

Ingest evals and the hand-off

How to know whether ingest works - page-level unit tests, field-level accuracy, precision, recall, hallucination rate and coverage on a stratified gold set, online health checks - and the contract that hands documents to retrieval.

75 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

  • Build a stratified, pseudonymised gold set and write page-level unit tests in the style of olmOCR-Bench
  • Compute field-level accuracy, precision, recall, hallucination rate on empty fields and coverage, with confidence intervals
  • Explain why aggregate accuracy can hide invented values, and weight fields by severity
  • Design online health checks and drift alerts that run on every document without labels
  • Specify the hand-off contract and events that feed the retrieval system, without doing retrieval's job

On this page

  • Intuition: the file review
  • Building the gold set
  • Page-level tests: did the parser read it?
  • Field-level metrics: did extraction get it right?
  • Worked example
  • Checks without labels, on every document
  • The hand-off to retrieval
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: the file review
  2. 02Building the gold set
  3. 03Page-level tests: did the parser read it?
  4. 04Field-level metrics: did extraction get it right?
  5. 05Checks without labels, on every document
  6. 06The hand-off to retrieval
  7. 07Connections
  8. 08Summary

Sources & further reading

  • olmOCR 2: Unit Test Rewards for Document OCRPaper · Poznanski, Soldaini, Lo · Allen Institute for AI · 2025Binary unit tests per page (text present, text absent, reading order, table relations) as both an evaluation and a training signal. The model for the page-level tests in this lesson.
  • ParseBench: A Document Parsing Benchmark for AI AgentsPaper · Zhang et al. · LlamaIndex · 2026Argues that text-similarity metrics miss failures that matter to agents and scores semantic correctness with deterministic rules, without LLM judges. Read the design of its five dimensions.
  • OmniDocBench: Benchmarking Diverse PDF Document Parsing with Comprehensive AnnotationsPaper · Ouyang et al. · 2024CVPR 2025. Its attribute labels (page type, layout, language, quality) show how to stratify a gold set so that results can be sliced by the conditions that matter.
  • UNIKIE-BENCH: Benchmarking Large Multimodal Models for Key Information Extraction in Visual DocumentsPaper · Ji et al. · 2026ACL 2026. Field-level key information extraction evaluation across layouts and image qualities; a good reference for per-field scoring.
  • A statistical approach to model evaluationsLab research · Anthropic · 2024Anthropic's summary of its paper "Adding Error Bars to Evals" - report standard errors, cluster them when questions are related (fields within one document are), and compare models on paired differences.
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.

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