Skip to content
AI engineering

AI engineering: 12 hands-on labs

The code around a language model, one small function at a time: similarity, chunking, retrieval, context budgets, cited sources, tool policies, retries, evaluation and cost. No lab calls a model or needs an API key.

Model foundations

The numbers under a language model: vectors, similarity and probabilities, and how to check what a model sends back.

Retrieval & context

How a document assistant finds the right text, fits it into a prompt, and keeps its sources honest.

Safe tool use

What your own code must decide when a model asks to act: what may run, and how to retry without doing harm.

Evaluation & shipping

Numbers that tell you whether a change helped, and what a request costs.