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

    Exercise answers

    • Answer: Build incremental re-ingestion with early cutoff
  • 7PII detection and redaction
  • 8Ingest evals and the hand-off
CapstoneIngest a case file end to endReference implementation

Module 2 · Running ingest in production · Lesson 6

Re-ingestion, versioning and backfills

How to change parsers, prompts, schemas and models without re-running everything or losing history - content hashing, version keys per stage, early cutoff, document lineage, diff-before-promote, and bulk backfills through batch APIs.

70 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

  • Model ingest as a build graph whose artefacts are keyed by input hash and stage version, and compute what a change invalidates
  • Apply early cutoff so unchanged intermediate outputs stop a rebuild from propagating
  • Version documents in the business sense (supersession, amendment) separately from pipeline versions, and keep what each agent saw
  • Plan a re-ingestion with an impact estimate, a shadow run and a field-level diff before promotion
  • Run a backfill through a batch API with stable request IDs, resumability and isolation from live traffic

On this page

  • Intuition: ingest is a build
  • Keys: input hash plus stage version
  • Two meanings of "version"
  • Re-ingest in four steps
  • Backfills through batch APIs
  • Worked example: two changes to the archive
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: ingest is a build
  2. 02Keys: input hash plus stage version
  3. 03Two meanings of "version"
  4. 04Re-ingest in four steps
  5. 05Backfills through batch APIs
  6. 06Worked example: two changes to the archive
  7. 07Connections
  8. 08Summary

Sources & further reading

  • Build systems à la cartePaper · Mokhov, Mitchell, Peyton Jones · Microsoft Research · 2018ICFP 2018. The clearest account of how build systems decide what to rebuild - content hashes ("verifying traces"), early cutoff and cloud caches. Section 2 and the early-cutoff discussion map one-to-one onto incremental re-ingestion.
  • A Fault-Tolerance Shim for Serverless ComputingPaper · Sreekanti et al. · UC Berkeley · 2020EuroSys 2020. Atomic visibility of multi-key writes, the property you need when a re-ingestion promotes a new set of records for a document in one step.
  • How to read a title registerLab research · HM Land RegistryAn official copy shows the register as at a stated date and time, which is why a newer official copy supersedes an older one rather than duplicating it.
  • Batch processing (Claude API docs)Docs · AnthropicLimits (100,000 requests or 256 MB per batch), timing (most within an hour, expiry at 24 hours), results kept 29 days and returned in any order, custom_id rules, best-effort cache hits, and not being eligible for zero data retention.
  • Workflow Execution limits (Temporal docs)Docs · TemporalWhy a backfill should not fan out from a single workflow - the 2,000 pending-operation default and the history limits.
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