Topic
AI Engineering 101
A pre-reading primer for Chip Huyen's AI Engineering, from tokens and sampling to evaluation and RAG.
Review this Topic 88 Review cards
About
A primer on AI engineering shaped around the ten chapters of Chip Huyen's AI Engineering (O'Reilly, 2025), so the book reads as confirmation and depth rather than a wall of new terms. Concept-first; no API coding.
After this Topic you can:
- Say what each chapter is about and where it sits in the three-layer AI stack
- Explain the core loop of an LLM app (tokens, next-token prediction, sampling) and why outputs are probabilistic
- Choose between prompt engineering, RAG and finetuning for a product problem and defend the choice
- Describe how to evaluate an open-ended AI feature: exact evaluation, AI as judge, comparison
- Follow a design review that uses the vocabulary: TTFT, LoRA, KV cache, guardrails, embeddings
Lessons
- The Big Picture What AI engineering is, and the one diagram that organizes the whole book.
- Inside a Foundation Model How a raw text predictor becomes an assistant, and why the same prompt can return a different answer, or a made-up one.
- Evaluation Methodology How to tell whether an open-ended answer is any good, and where each method fails.
- Evaluating AI Systems From “which method?” to “which model, and how do I know my product works?”
- Prompt Engineering How to tell a model what you want, and how attackers tell it what they want.
- Retrieval-Augmented Generation Give the model the right facts at question time, and know which half to fix when it still gets things wrong.
- Agents and Memory When the model chooses the next step itself: tools, plans, the ways they break, and what the agent remembers.
- Finetuning Changing the model itself: when it's worth it, why it eats memory, and how LoRA makes it affordable.
Reference sheets
- Agents Cheat Sheet Environment + tools + a model that plans: how to build one, break it and measure it.
- AI Engineering Book Map All ten chapters of Huyen's AI Engineering on one page: what each chapter covers, where it sits in the stack, and the terms to listen for.
- Evaluation Cheat Sheet Which method fits which feature, how to choose a model, and how to build a pipeline you can trust.
- Finetuning Cheat Sheet When to change the weights, what it costs in memory, and the cheap way to do it.
- AI Engineering Glossary The canonical terms for this course, following Huyen's usage. A term is added only after you've shown you can use it.
- Prompting Cheat Sheet What goes into a prompt, the fixes that last, and how to defend it.
- RAG Cheat Sheet Retriever + generator: how to build it, measure it and fix it.
- Sampling Cheat Sheet How a model is made, how it picks each token, and how to tame the randomness.
Where this Topic fits
This Topic's Nodes and the Nodes one Relationship away in other Topics.
Loading the Graph…