AI Engineering

After this course you can build LLM applications that hold up in production, evaluate them honestly, run them within a budget and a risk posture, understand the models well enough to make good decisions about them, and read the research critically as it is published.

27/53 CHAPTERS5 MODULES~33 H WRITTEN SO FAR
START WITH What an LLM is, and what it is not ▸
LAB STACK

Python 3.12 with uv, the Anthropic SDK, a local model through Ollama for offline labs, Postgres with pgvector, and a small evaluation harness you build across the course. Every lab that calls a hosted model states its approximate cost; most labs default to the local model and switch to the API only where quality requires it.

SHOW UP TO

BEFORE YOU START

This course assumes you can already do the following. Each line says where ATLAS teaches it.

MODULE 1

Foundations

BEGINNER 8/8 WRITTEN

What a model is and is not, tokens and cost, attention by hand, how behaviour was trained in, prompting, the API, embeddings. Ends with a naive document Q&A tool that module 3 fixes.

  1. 01 What an LLM is, and what it is not A next-token sampler trained on most of the written internet: why it sounds right when it is wrong, and what that means for everything you build on it 50 MIN
  2. 02 Tokens, context windows and cost The unit you are billed in is not a word, the model forgets everything you do not re-send, and the re-sending is where the money goes 50 MIN
  3. 03 Transformers and attention: just enough Embeddings, one attention head by hand, the stack around it, and the two facts that drive every cost and latency number you will meet: attention is quadratic, and the KV cache is what makes generation affordable 55 MIN
  4. 04 Pretraining, fine-tuning, RLHF: how a model got its behaviour A base model continues documents; an assistant answers questions. Everything between the two is post-training, and the system prompt is the last thin layer on top 50 MIN
  5. 05 Prompting fundamentals Clear instructions, examples, structure and an honest way out, then a 50-item labelled set so you know which change helped instead of guessing 55 MIN
  6. 06 The API: messages, system prompts, streaming, stop reasons One endpoint, a stateless conversation you resend every turn, six stop reasons your code must handle, and the retry rules that keep a chat loop correct 60 MIN
  7. 07 Embeddings and similarity A learned vector where distance means meaning: how embeddings are trained, which distance to use, and the four ways cosine similarity lies to you 50 MIN
  8. 08 Project: a document Q&A CLIPROJECT Chunk, embed, retrieve, answer with citations, then measure how often it is wrong. Naive on purpose: this is the baseline module A3 fixes 180 MIN
MODULE 2

Building with models

WORKING 9/10 WRITTEN

Structured output, tool use, agent loops, MCP, prompt caching and batching, multimodal input, choosing a model, and prompt injection. Ends with a support agent over the shop database.

  1. 09 Structured output and schema enforcement Free text is a format your code cannot read. Constrain the shape, validate the meaning, repair what fails, and measure both 50 MIN
  2. 10 Tool use and function calling The model writes a structured request; your code decides whether to run it. Everything else in this chapter follows from that one line 50 MIN
  3. 11 Agents: loops, planning, memory, and when not to use one A model in a loop with tools and a stop condition. The loop is easy; the stop condition, the budget and knowing when a workflow would do are the engineering 55 MIN
  4. 12 Model Context Protocol and tool ecosystems One protocol between AI applications and the tools they call, why it beats a bespoke integration per app, and why a server's tool descriptions are untrusted input 50 MIN
  5. 13 Prompt caching, batching and latency engineering Where an LLM call spends its time and money, and the three levers that cut both: cache the prefix, batch what nobody waits for, stream what someone does 50 MIN
  6. 14 Multimodal: images, documents, PDFs How a model reads a picture, what it reads well and badly, and how to get line items out of a scanned invoice without trusting a single number you have not checked 50 MIN
  7. 15 Choosing a model: capability, cost, latency, open vs hosted Eight axes, one eval, and the number that decides it: cost per task on your own traffic, not rank on someone else's leaderboard 55 MIN
  8. 16 Guardrails, safety and prompt injection Instructions arrive in your data, the model cannot tell, and the only defences that hold are the ones outside the model 60 MIN
  9. 17 Reasoning models in practice: thinking budgets, effort and when to pay for themCOMING
  10. 18 Project: a customer-support agent for the shopPROJECT Read tools, one gated write, structured answers, a cached prefix, injection defences, and a harness that proves it costs under two cents a conversation 240 MIN
MODULE 3

Retrieval, evaluation and quality

SENIOR 10/11 WRITTEN

RAG done properly, vector indexes, building an eval set, LLM-as-judge, evals in CI, hallucination and grounding, long context vs retrieval, fine-tuning, prompt management. Ends with the support agent at a measured 95%.

  1. 19 RAG done properly: chunking, hybrid search, reranking Take the naive document Q&A tool from module A1, measure where it loses the answer, and fix retrieval one stage at a time: structure-aware chunks, a lexical arm, rank fusion, a cross-encoder, and contextual retrieval 60 MIN
  2. 20 Vector databases and ANN indexes HNSW and IVFFlat in pgvector over the shop's product embeddings: recall against latency, build time and memory, the knobs that trade them, the filter that silently empties your results, and when Postgres stops being enough 55 MIN
  3. 21 Evaluation: building an eval set Turn the support agent's 30 test conversations into 100 labelled cases that cover every intent and failure mode, measure whether two people agree on the labels, and find out what your programmatic checks cannot see 60 MIN
  4. 22 LLM-as-judge, rubrics, and calibrating the judge Automate the rubric half of support-100: a judge prompt that grades criterion by criterion, pointwise and pairwise modes, position and verbosity bias measured rather than assumed, calibration against your human labels, and the cheaper judge that fails where it matters 55 MIN
  5. 23 Offline vs online evaluation, A/B tests, regression suites in CI Turn the 100-case eval set into a gate that runs on every prompt change, compare runs case by case instead of by total, keep the API key away from forked pull requests, and size an online A/B test before you start it 55 MIN
  6. 24 Hallucination, grounding and citations Measure how much of each answer the passages support, make the model point at its evidence with the citations API, verify claims one by one, and abstain when the evidence is not there 55 MIN
  7. 25 Long context vs retrieval Put the whole corpus in the prompt or retrieve five chunks: measure accuracy, cost and latency for both on the same questions, find where the information in the middle gets lost, and see how prompt caching moves the break-even 50 MIN
  8. 26 Fine-tuning: when, how, and the alternatives Fine-tuning changes how a model behaves, not what it knows. Train a LoRA adapter on a laptop for the ticket classifier, and measure it against few-shot prompting on the same fifty tickets 60 MIN
  9. 27 Prompt management, versioning and experimentation Treat the prompt, the model id and the parameters as one versioned, immutable bundle; gate every change on a paired eval; roll it out by stable buckets; and make rollback a config flip, not a deploy 55 MIN
  10. 28 Evaluating agents: tasks, trajectories and flaky runsCOMING
  11. 29 Project: the support agent at 95%PROJECT Take the A2 support agent to a measured 95% on support-100: error analysis on a development split, a help centre behind RAG v2, grounded policy answers, versioned prompt changes through the CI gate, one look at the held-out cases, and an eval report someone can ship from 240 MIN
MODULE 4

Production systems

STAFF 0/13 WRITTEN

Architecture, inference serving, reliability, observability, cost routing, security and privacy, agents in production, multi-agent systems, data pipelines, and shipping safely. Ends with a production readiness review.

  1. 30 Architecture of an LLM applicationCOMING
  2. 31 Serving and inference: KV cache, batching, speculative decoding, quantisationCOMING
  3. 32 Reliability: timeouts, retries, fallbacks, rate limits, multi-providerCOMING
  4. 33 Observability for LLM systemsCOMING
  5. 34 Cost engineeringCOMING
  6. 35 Security and privacy: data handling, PII, tenancy, supply chainCOMING
  7. 36 Agents in production: sandboxing, permissions, human-in-the-loop, budgetsCOMING
  8. 37 Multi-agent systems and orchestrationCOMING
  9. 38 Data pipelines for AI: ingestion, chunk refresh, embedding versioning, feedback loopsCOMING
  10. 39 Shipping: rollout, shadow mode, kill switches, incident response for AICOMING
  11. 40 Context engineering: memory, compaction and long-running agentsCOMING
  12. 41 Voice and real time: speech in, speech out, latency and interruptionCOMING
  13. 42 Project: production readiness review for the support agentCOMING
MODULE 5

Research, frontier and judgment

PRINCIPAL 0/11 WRITTEN

Scaling laws, training at scale, alignment research, reasoning models, interpretability, evaluation research, small models, agentic systems research, governance, and reading papers critically. Ends with a strategy memo.

  1. 43 Scaling laws and what they predictCOMING
  2. 44 Training at scale: data, parallelism, mixture of expertsCOMING
  3. 45 Alignment and post-training researchCOMING
  4. 46 Reasoning models and inference-time computeCOMING
  5. 47 Interpretability: what we know about what is insideCOMING
  6. 48 Evaluation research: benchmarks, contamination, and what scores meanCOMING
  7. 49 Small models, on-device and edge inferenceCOMING
  8. 50 Agentic systems research: tool learning, computer use, long-horizon tasksCOMING
  9. 51 Risk, governance and responsible deploymentCOMING
  10. 52 Reading AI papers criticallyCOMING
  11. 53 Capstone: the AI strategy memoCOMING