Skip to main content

Learn how AI really works

Free, bite-sized lessons from the basics to expert level, a quiz after every lesson, and the day's AI news in plain English.

A real run of GPT-2

GPT-2 reads the prompt “Mumbai is the capital of the state of” as 9 tokens, turns them into numbers, passes them through 12 layers and gives these chances for the next token: Maharashtra 64.4%, Gujarat 8.7%, Mad 8%, Karn 2.7%, Tamil 2.3%. All other tokens share 14%.

Every possible next token gets a chance. The model picks “Maharashtra” at 64.4%, adds it to the text and starts again.

Lesson 4: Predicting the next word

Start here

How AI Works

Beginner

16 lessons · 4 modules

0 of 16 lessons done
Start lesson 1: What is AI, really?

We'll save your progress in this browser.

What you'll learn

How AI Works: 16 lessons in 4 modules, about 104 minutes of reading.

See every lesson
  1. Big picture

    • What is AI, really?
    • From rules to reasoning: a short history
    • Meet the LLM
  2. How an LLM talks

    • Predicting the next word
    • Tokens: the LLM's alphabet
    • Search engine vs LLM
    • Embeddings: meaning as numbers
    • RAG: giving the model an open book
  3. Inside the model

    • Neural networks without the scary maths
    • The Transformer, step by step
    • How models learn
    • From base model to assistant
  4. Today and next

    • Can AI reason?
    • Beyond text: multimodal AI and agents
    • Using AI responsibly
    • Capstone: the journey of one prompt

What learners say

In their own words, shared with their permission.

Quote 1 of 5

Latest AI news

Summarised in plain English, each story linked to its source.

All AI news
  • Research

    Google chooses Blue Origin to launch space-based satellites

    Google partnered with Blue Origin to launch orbital computing satellites in 2029 to meet growing infrastructure needs. Orbiting data centers are becoming a new frontier for handling massive workloads.

    Source: The Economic TimesRead source
  • Policy

    Meta reconsiders net zero climate goal due to AI expansion

    Source: The Economic TimesRead source
  • Policy

    Anthropic shares debut at massive valuation on Nasdaq

    Source: The Economic TimesRead source

Coming next

The tracks we're writing after How AI Works.

  • Up next

    Prompt Engineering

    Write prompts that get useful, reliable answers.

    Beginner
  • Coming soon

    Building with LLM APIs

    Call a model from your own code and build a small app around it.

    Intermediate
  • Coming soon

    RAG and Embeddings

    Let a model answer from your own documents.

    Intermediate
  • Coming soon

    AI Agents

    Models that use tools to get real work done.

    Advanced
  • Coming soon

    Build AI from Scratch

    Train a small language model yourself, step by step.

    Expert
  • Coming soon

    AI for Careers

    Use AI well in your studies, your job search and your daily work.

    All levels

Your first lesson takes 6 minutes

There's nothing to sign up for. Your progress is saved in this browser, so you can stop after any lesson and pick up where you left off.