Intermediate Pro Subscription Required

Build with LLMs: Reliable Assistants, from Tokens to Evaluation

Learn the engineering around a language model, where most real failures happen. Count tokens and cost, parse replies that are almost JSON, chunk documents, build search, check answers against their sources, validate tool calls, resist instructions hidden in text, grade prompts on a golden set, and finish with an assistant that says 'I do not know' when it should. Every lab runs real Python in your browser with no model, key or account, and every dataset is generated for you alone.

5-6 hours of study Builds toward: AI Engineer 9 modules

Practise on your own computer

The labs in the lessons run in your browser. To repeat them, go further and try the capstone on your own machine, set up the environment with these free guides:

Anyone can get a language model to say something impressive in a demo. The engineers who ship assistants people can rely on are the ones who handle what happens around the model: what it costs, what it returns when it misbehaves, what it is shown, whether its answers are true, what it is allowed to do, what an attacker can make it do, and how you know a change made it better.

This is the fifth season of Sabi Logistics’ story. A customer assistant is live, it is popular, and Chidi, Ngozi, Emeka and Amara discover one failure after another. No real model is called in these labs, so you need no key, account, money or special download beyond the Python and pandas runtime of the earlier data courses. That is deliberate: the skills here are the engineering that surrounds any model, and you build each part by hand so you see exactly how it works. The course’s lab guide then shows how to repeat the work against a free local model on your own computer.

What you will learn

  1. The token bill: tokens, context windows, and the arithmetic of cost and savings.
  2. The reply parser: extract, parse and validate model output that is almost JSON, and never crash.
  3. The right chunk: cutting documents, overlap, and why a sentence cut in half loses its fact.
  4. Find the answer: TF-IDF search by hand, hit rate and mean reciprocal rank.
  5. Grounded or made up: checking an answer against its source, and what the check cannot catch.
  6. The tool call: validating what a model asks to run, with least privilege and limits.
  7. The poisoned note: prompt injection, detector precision and recall, and layered defence.
  8. Is it any good? Golden sets, regressions, and whether an improvement is real.
  9. The assistant: answer from the handbook, abstain when unsure, and prove it on a handbook you have never seen.

A graded capstone and an exam finish the course. Two free guides show how to set up Python, a local model and your own experiments.