Skip to content

Appendix B: Reading Paths

The chapters of this book are arranged by topic: tokenizers in one chapter, attention in another, serving in a third. That is the right arrangement for reference, but it is not always the right order for learning. A reading path is a second arrangement laid over the first. It cuts across the chapters, and across the other books in the library, and picks out which sections to read, in what order, and what you should be able to explain when you finish each stage.

Concepts from other sections (3)

This section uses these ideas. Each has a short definition and a link to the section that explains it in full. Tap a dotted term in the text to preview it.

  • Service Level Objective (SLO): a target for a defined measure of service behavior over a specified window. Read more: Chapter 13: Engineering Acronyms in Software Engineering
  • usage policy: an ordered list of rules that allow or deny inference requests by model, tenant, token cap, or classifier score. Read more: 25.6 Usage policy enforcement
  • Probability density function (PDF): for a continuous random variable, a function f(x)≥0f(x) \ge 0 that integrates to 1, with P(a≤X≤b)=∫abf(x) dxP(a \le X \le b) = \int_a^b f(x)\,dx; a density value is not itself a probability. Read more: Chapter 13: Probability and Statistics in Mathematics

A path owns no content of its own beyond its opening page and a short account of what the system can do at its end. The sections stay in the chapters and books that own them, so a correction made in a chapter is made in every path that uses it. Nothing is copied.

The main path is the course: one LLM system, built end to end in Python, Rust, Go, and C, grown in thirteen passes. Each pass is itself a path, and each ends with a page describing what the finished system does at that point.

Every path has a manifest, path.tsv, beside its opening page. Each row of the manifest is one stage: a stage number, a title, the files to read in order, and a “done when” statement that names what you should be able to explain or reproduce once you have read those sections and their solution walkthroughs. A line of the form @<path> includes every stage of another path at that point, which is how the course strings its thirteen passes together. Each pass’s opening page turns its manifest into a reading list, so in practice you read the opening page and follow its links.

Each path also builds into its own PDF, supersource-<path>.pdf. CI attaches every one to the build artifact and to each GitHub Release, and ./scripts/build-book.sh --path <path> builds one locally. A path that includes others gets one PDF part per included path.

Adding a path takes five steps, and the build checks them for you:

  1. Create content/courses/ai-engineering/paths/<name>/README.md. Its first # heading is the path’s title.

  2. Create content/courses/ai-engineering/paths/<name>/path.tsv, one row per stage, tab-separated:

    stage <TAB> title <TAB> file[,file...] <TAB> done when
    @other-path

    Files are repository-relative Markdown, read in the order listed. A line @other-path includes every stage of that path at that point. Lines starting with # are comments. “Done when” is a comprehension outcome (you can explain, derive, or reproduce something), not “read the chapter”.

  3. Put content in a chapter, even when only one path uses it today. A path directory holds only its manifest, its opening page, and material that is about the path itself, such as a pass’s opening or its “what the system does” page.

  4. Run ./scripts/build-book.sh --path <name>. A missing file, an unknown include, or an include cycle fails the build, and CI runs the same assembly.

  5. Add outputs/supersource-<name>.pdf to sr.yaml under packages[].artifacts so releases attach it.

The third rule is the one that keeps the library coherent. If a path ever needs a section that no chapter has, write the section in the chapter where it belongs and link to it from the path.