A READING COURSE FROM THE FIRST MODEL CALLAI engineering,
AI engineering,
understood.
Learn how a general model becomes a useful, trustworthy application. Start with the model call and build toward evaluation, prompts, retrieval, agents, data, cost, and live systems. Every chapter explains the idea in plain language and walks through Python code.
Begin with the first idea21 long chapters6 connected parts8 cookbook guides0 read in this browser
THE READING ROUTE
From a model call to a system you can explain.
01 / 06
First principles
01What AI engineering actually buildsBegin with the user problem, the model, the surrounding software, and the promise an application makes.LONG READ ↗02The contract of a model callUnderstand input messages, output text, errors, timeouts, and why an API response is only a candidate answer.LONG READ ↗03Tokens, context, and attentionLearn how text enters a language model, what a context window limits, and why more text can make an answer worse.LONG READ ↗04Sampling, uncertainty, and structured outputSee why generations vary, what decoding controls do, and how to treat JSON as data that still needs validation.LONG READ ↗
02 / 06
Evidence and evaluation
05Define a task before choosing a modelTurn a vague AI idea into a user task, success criteria, boundaries, and a fallback.LONG READ ↗06Build evidence from representative casesLearn how evaluation sets, labels, rubrics, slices, and holdouts reveal real application quality.LONG READ ↗07How to judge generated answersSeparate exact checks, reference comparisons, human review, and model judges without treating one metric as truth.LONG READ ↗08Choose a model for the taskCompare candidate models on capability, data rules, latency, cost, and the quality your users actually need.LONG READ ↗
03 / 06
Shaping model behavior
04 / 06
Knowledge and action
11Give the model the right evidenceLearn the retrieval-augmented generation path from documents to search results to grounded answers.LONG READ ↗12Search, embeddings, and rankingUnderstand lexical search, vector similarity, reranking, and why retrieval quality is a separate metric.LONG READ ↗13Tools, actions, and agentsSee how a model proposes tool calls, how software grants authority, and why multi-step agents need limits.LONG READ ↗14Memory and conversation stateDistinguish recent turns, durable preferences, retrieved facts, and the risks of carrying context forward.LONG READ ↗
05 / 06
Adaptation and efficiency
15When to fine-tune a modelSeparate prompt, retrieval, and fine-tuning problems, then understand what an adaptation dataset teaches.LONG READ ↗16Engineer datasets with a purposeLearn data provenance, coverage, labels, synthetic examples, leakage, and versioned evaluation sets.LONG READ ↗17Latency, throughput, and costUnderstand where response time and spending come from, and choose optimisations without losing quality.LONG READ ↗
06 / 06
Reliable systems
18Architecture for a live AI featureConnect interfaces, orchestration, retrieval, model adapters, validation, traces, and fallbacks.LONG READ ↗19Security, privacy, and prompt injectionTreat prompts and retrieved text as different trust levels, and enforce access in code rather than model instructions.LONG READ ↗20Learn from the live systemUnderstand traces, user corrections, quality drift, incidents, and the evaluation loop after release.LONG READ ↗21A complete way to reason about AI systemsBring the course together into a sequence from user need to evidence, model, evaluation, release, and correction.LONG READ ↗
THE COMPANION COLLECTION
Code with the whole story.
Eight complete Python references show the system around a model: validation, retrieval, evaluation, bounded tools, cost, and release decisions. Each guide explains what its output does and does not prove.
Read the cookbookBuilt with curiosity. By Navan Sami. ↗AI engineering · From model calls to reliable systems.