Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free preview

Learn AI online: free lessons on LLMs, RAG and AI agents

Learn AI the hands-on way. 33 modules take you from your first LLM call to RAG, AI agents and AI in production, with labs that run in your browser.

33 modules207 lessons

Whether you want to learn RAG, learn how to build AI agents, or just learn how to use an LLM in your own code, these lessons start where a programmer is and go as far as running AI features in production. Every lesson is free to read, and you run the commands in a real lab in your browser with nothing to install.

AI glossary

Short, plain definitions of 48 AI terms, from tokens to MCP, and 10 comparisons such as RAG vs fine-tuning, each linked to the lesson that teaches it.

Open the AI glossary

Series A: AI for software engineers

For a student or a new graduate who can program and use Git. Code with an AI assistant and work with coding agents (clear specs, context files, tests as guardrails, reviewing what they change), then call a model, ask for structured output, use tools, build a chatbot and answer questions from documents.

Series D: applied AI

For anyone who can program. How a language model works (tokens, attention and a tiny model of your own), prompting, images and sound, running models yourself, adapting a model, writing an MCP server, designing AI products people can trust, and having a model turn questions into SQL that you check.

How the lessons work

  • Free to read: every lesson is open with no account.
  • Hands-on: run the commands in a lab in your browser. Nothing to install.
  • Checked: Python assignments with hidden tests mark your work.
  • In your language: English, French, Spanish, German and Japanese, each written for that language.

Pay as you go, not a subscription

A free account gives you credits every month for labs and a few assistant questions a day. Want more AI help? Top up from $1. There is no subscription and no monthly fee, and top-up credits stay valid for at least a year.

aipreview.visitor.cta How credits work

Questions about learning AI here

Can I learn AI online for free?

Yes. Every lesson in the five series is free to read with no account. A free account lets you run the commands in a lab and ask the assistant a few questions a day.

Do I need machine learning or advanced maths?

No. The lessons are for people who can program. They teach how to use language models in software, so they need no machine learning maths. The one module on how a model works inside keeps the maths to multiplying and adding numbers in a table.

What is RAG and where do I learn it?

RAG, retrieval-augmented generation, lets a model answer from your own documents. Series A has a module that builds document Q&A, and Series C goes deeper into hybrid search, reranking and agentic retrieval.

Will I learn to build AI agents?

Yes. Series B starts with building agents, and Series C covers harness engineering, multi-agent systems, and evaluating and securing agents.

Is it a subscription?

No. It is pay as you go. Reading the lessons is free, and you only top up if you want more AI assistance. There is no monthly fee.

Which languages are the lessons in?

English, French, Spanish, German and Japanese. Each language is written on its own, not machine-translated from another.

Should I fine-tune a model or use RAG?

Try a better prompt first, then retrieval, and only then adapt a model. Series D has a module that shows how to judge whether training helps, and Series A and C teach the retrieval side.

Can I run an LLM on my own computer?

Series D has a module on running models yourself: how much memory a model needs, what quantising changes, serving and batching, licences, and when to host your own or rent. It teaches the sizing and cost decisions with worked numbers in the browser lab; it does not install a model on your machine.

What is MCP, the model context protocol?

MCP is a standard way for a model to reach tools and data. Series D has a module where you write an MCP server: the messages, the handshake, tools that check their input, resources and prompts, who may call what, and testing.

What is prompt engineering and can I learn it here?

It is writing the instructions and examples a model works from, and testing that a change really helps. Series D has a module on it: clear prompts, examples that teach, asking for working, patterns, testing a prompt and keeping a prompt library.

How do I become an AI engineer?

Learn to program, then follow the roadmap on this page: call models from code, build with retrieval and tools, test and secure what you build, and run it in production. The lessons teach the skills. They do not give a qualification.

Do I need a GPU, a paid API key or a powerful computer?

No. The labs run in your browser, and every command also works with no model by showing a clearly labelled recorded sample. A free account's credits cover the lab, and you can top up if you want more.

How do I test and evaluate an LLM application?

Series B has a module on evals: fixed cases, a rule for each and a before and an after. Series C goes on to evaluating agents, and Series D shows how to test a single prompt.

How do I protect an AI app from prompt injection?

Series B has a module on securing LLM applications, including prompt injection, and Series C covers securing agents. The lessons never attack anybody's system.

Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.