AI Engineering
Build the deterministic engineering around language models — tokenizers, retrieval, MCP tool routers, and agents — all running for real in your browser.
A hands-on AI engineering course for the era after 'how do I call the API' became free. Instead of watching a model generate text, you build the infrastructure that makes AI features shippable: a tokenizer, a retrieval pipeline, a Model Context Protocol router, an agent loop, a token budgeter, and an eval harness. Every exercise is deterministic JavaScript that actually runs and is verified — no live model, no faked output, no per-token bill.
Module 1 · Why AI Engineering Is Engineering
What large language models did and did not commoditise, and why the durable, hireable skill in 2026 is the deterministic system you build AROUND the model — not the prompt you type into it.
Module 2 · Tokens, Context Windows & Cost
The unit of everything in generative AI is the token. Build a tokenizer, count context, model a bill, and see why 'it worked in the playground' and 'it is affordable in production' are different sentences.
Module 3 · Embeddings & Semantic Search
Before retrieval, meaning must become geometry. Build vector similarity, a tiny index, and the chunking decisions that quietly determine whether search finds the right thing.
Module 4 · Retrieval-Augmented Generation (RAG)
RAG is the workhorse pattern of production AI. Build the full pipeline — index, retrieve, rerank, cite — and study the failure modes that make naive RAG return confident nonsense.
Module 5 · Prompting & Context Engineering
Prompt engineering became context engineering: the job is assembling the right information, in the right order, within a budget. Build the packer, the structured-output validator, and the guards.
Module 6 · The Model Context Protocol (MCP)
MCP is how agents get a clean, versioned set of tools in 2026 — and it is just JSON-RPC. Implement the message framing, the handshake, and a working router, then reason about the two transports and where each belongs.
Module 7 · Tools, Skills & Plugins
How you actually extend a model: tool schemas, discovery, dispatch, and the sandboxing that stops a tool call from becoming an incident. Build the dispatch loop and the guards around it.
Module 8 · Agents & Multi-Agent Orchestration
An agent is a state machine with tools and a stopping condition — not magic. Build the loop, then coordinate several agents with supervisor-worker handoffs, failure recovery, and loop-guards.
Module 9 · Token Economics: Caching, Routing & Savings
Cost work is what keeps AI features alive in production. Build a cache, a model router, and the savings math that turns a feature that gets killed into one that ships.
Module 10 · Safety, Evaluation & Capstone
Ship responsibly: filter injection, measure with evals instead of vibes, and assemble everything into a graded, deterministic AI system you built end to end.