LLM Engineering
Understand how large language models work and build reliable, cost-aware LLM features: tokens, sampling, prompting, structured outputs, API calls and evaluation.
Large language models are now a standard building block in software, but using them well is an engineering discipline. This course takes you from an intuition-level understanding of how LLMs work (tokens, embeddings, attention, sampling) to the practical skills you need to ship LLM features: writing prompts that generalise, getting machine-readable structured output, calling provider APIs robustly, and evaluating quality against cost and latency.
All coding exercises run in your browser in pure Python. They do not call a real model; instead you implement the small but critical pieces of glue code that every LLM application needs, such as token budgeting, sampling, template filling, output parsing, retry logic and cost estimation. Real SDK usage (Anthropic, OpenAI, plain HTTP) is shown in illustrative code examples.
Tokens, embeddings, attention and sampling: the mental model you need to reason about LLM behaviour.
Write prompts that generalise and get output your code can trust.
Call LLM APIs robustly and decide with data: quality, cost and latency.
Build a small service that classifies support tickets into categories using an LLM with structured output, plus an offline evaluation harness that reports accuracy, validity rate, cost and latency for different prompts and models.