Skip to content

Tutorial library →

One idea builds on the next.

This route places prerequisites before the lessons that use them. Topic series help you browse; article IDs are stable labels, not reading order. Reaching a page does not mean you have completed its prerequisite exercises.

For inference infrastructure, read 00-1 and 00-2, then jump to I-00. Application readers can finish at 10 and take the inference route when needed. Each lesson names the work to bring forward, the artifact it adds, and where that artifact is used next.

Recommended reading route

  1. 00-1 How Language Models Generate Text

    Read first: none

  2. 00-2 Prompts, Tokens, and Context

    Read first: 00-1

  3. 00-3 Why Fluent Answers Can Be Wrong

    Read first: 00-1 · 00-2

  4. 00-4 From Model Output to Controlled Action

    Read first: 00-1 · 00-2

  5. 01 Designing an AI System

    Read first: 00-3 · 00-4

  6. 02 Reliable Pipelines and Validation

    Read first: 01

  7. 04 Memory, State, and Knowledge

    Read first: 00-2 · 01

  8. 05 Choosing Between Workflows and Agents

    Read first: 00-4 · 02

  9. 03 Grounding Answers with RAG

    Read first: 00-3 · 02

  10. 11 Evaluating AI Systems

    Read first: 02 · 03

  11. 12 Identity and Authorization for Agents

    Read first: 00-4 · 02

  12. 06 Agent Loops and Tool Reliability

    Read first: 02 · 05 · 12

  13. 07 Hybrid Retrieval and Evidence Packets

    Read first: 03 · 04

  14. 08 Reading Documents Beyond OCR

    Read first: 03

  15. 09 Grounding Multimodal Evidence

    Read first: 03 · 08

  16. 00-5 Lab: A Reliable Support Workflow

    Read first: 03 · 06 · 11 · 12

  17. 10 Lab: Build a Governed Travel Copilot

    Read first: 06 · 09 · 11 · 12

  18. I-00 Inside an LLM Inference Request

    Read first: 00-1 · 00-2

  19. I-01 Continuous Batching

    Read first: I-00

  20. I-02 Managing the KV Cache

    Read first: I-00

  21. I-06 Distributing a Model Across GPUs

    Read first: I-00 · I-02

  22. I-04 Prefix Caching and Request Routing

    Read first: I-01 · I-02

  23. I-03 Separating Prefill and Decode

    Read first: I-01 · I-02 · I-04 · I-06

  24. I-05 Deploying Mixture-of-Experts Models

    Read first: I-06

  25. I-07 Benchmarking Inference Capacity

    Read first: I-01 · I-02 · I-03 · I-06

Optional exercise: source checks and retries

This teaching script uses fictional travel data to demonstrate source checks, keyword retrieval, and lookup after a timeout. A handwritten dictionary connects English and Traditional Chinese terms. The simulated supplier creates records only in a local SQLite database.

Identity and approval are simulated in code. It runs no language model, booking service, or payment. Use it to inspect program flow and duplicate-operation handling; it does not establish the quality or safety of a production AI system.

Download the Python exercise (English and Traditional Chinese instructions)

python3 lab.py all --out out
python3 -m unittest discover -s . -v

Requires Python 3.9+. Unpack the archive and run inside travel-copilot. The script prints JSON; confirmed refers only to the local simulated record. Run it again using the same out directory to check that the record count stays at one.