A plain-English course · Part one

AI from the ground up

You hear "AI" in every meeting, every product launch and every second post in your feed. People say models, tokens, agents and RAG as if everyone already knows. This course starts at zero and takes you all the way to how today's AI really works.

Each chapter builds on the one before. The main text gives you the idea. Open Go deeper at the end of a chapter when you want the detail underneath.

10 chaptersAbout 30 minutes to readNo maths, no code
Chapter 1

What AI actually is

This morning your phone unlocked when it saw your face. Your inbox quietly hid a dozen spam emails. Your maps app said the drive would take 34 minutes, and it did. All three are AI. You've been using it for years.

So what is it? Here's the simplest definition that holds up:

The core ideaAI is software that learns how to do a task from examples, instead of following rules a person wrote line by line.

Normal software runs on rules. A programmer writes: "If an invoice is more than 30 days late, send a reminder." The computer follows that rule exactly, every time. It does only what someone spelled out.

That works perfectly for clear tasks. It falls apart for fuzzy ones. Try writing rules for "is this a photo of a cat?" Pointy ears? Foxes have those. Whiskers? So do seals. You could write rules for a year and still miss the cat curled up in a cardboard box.

AI flips the approach. You show the computer thousands of photos labelled "cat" and "not cat". It works out the patterns itself. Then it can judge photos it has never seen.

The computer tries a dividing line, counts its mistakes and adjusts. Nobody wrote the rule. It found one.

A recipe and a cook

Traditional software is a recipe: precise, repeatable, and stuck the moment an ingredient is missing. AI is closer to a cook who has made a dish a thousand times and adjusts by taste. The cook is flexible and usually right. Occasionally the cook gets it wrong with total confidence. Keep that in mind; it comes back in Chapter 7.

The four words you'll keep hearing

These terms sit inside each other, like nesting boxes:

Artificial intelligenceThe whole field: any computer doing something we'd call smart.
Machine learningThe main way AI is built today: learning from examples.
Deep learningMachine learning with large neural networks (Chapter 3).
Generative AIDeep learning that creates new text, images, audio and code. ChatGPT and Claude live here.

When people say "AI" today, they usually mean the innermost box: generative AI.

Where AI shines

AI is strongest at spotting patterns in large amounts of data, at working with language, and at any task where "fast and nearly right" is useful: a first draft, a summary, a guess at which leads are worth calling first. It is weakest where it has no examples to learn from, and where one mistake is expensive.

In one line

AI learns patterns from examples, so it can handle fuzzy tasks nobody could write rules for.

Go deeper: a short history, and "general" AI

70 years in 8 moments

1956
Researchers at a summer workshop at Dartmouth College name the field "artificial intelligence".
1960s–80s
"Expert systems" try to capture human know-how as thousands of hand-written rules. They work in narrow areas and break easily. Funding dries up twice, in periods now called the "AI winters".
1997
IBM's Deep Blue beats chess world champion Garry Kasparov, mostly by searching through millions of moves rather than learning.
2012
A neural network called AlexNet wins a major image-recognition contest by a wide margin. Deep learning takes off.
2016
DeepMind's AlphaGo beats Lee Sedol at Go, a game long thought too intuitive for computers.
2017
Google researchers publish the "transformer" design (Chapter 4). Almost every modern chatbot is built on it.
2022
OpenAI releases ChatGPT. Within weeks, millions of people are using it.
Since
Models from Anthropic, Google, OpenAI, Meta and others improve every few months, and add images, voice, and the ability to take actions.

Narrow AI and AGI

Every AI you use today is "narrow": trained for particular kinds of tasks, even if that range is now very wide. Artificial general intelligence (AGI) means a system that matches people at almost any mental task. Several labs say it's their goal. Experts disagree sharply on when it might arrive, and on how you'd even know.

Chapter 2

How a machine learns from examples

Think about how your best sales rep learned to spot a good deal. Nobody handed them a rulebook. They saw hundreds of deals, noticed which ones closed, and built a gut feel. Ask why a deal feels shaky and they'll say "the champion went quiet" or "we still haven't talked budget".

Machine learning works the same way. Swap the gut feel for a lot of arithmetic.

The five ingredients

Data
The examples. Past emails, past deals, photos.
Labels
The right answers attached to those examples. "Spam" or "not spam". "Won" or "lost".
Features
The details the model looks at. The sender, the words used, the number of links.
Model
The thing that learns. Picture a box full of adjustable settings.
Prediction
The model's answer for a new example it has never seen.

How training works

Take a spam filter learning from a million old emails:

  1. Show it an example. One email, with the answer hidden.
  2. Let it guess. "80% likely to be spam."
  3. Reveal the answer. It was spam.
  4. Measure the miss. 80% was close. 100% would have been perfect.
  5. Nudge the settings. Adjust them so the next guess would be slightly better.
  6. Repeat, millions of times. Each nudge is tiny. Together they add up to skill.
Training steps: 0Its guess on a known spam email: 50% spam
Each step is a tiny nudge. Over millions of them, the error falls and the guesses sharpen. Illustrative numbers.

Training and using are separate

Training happens up front. It's slow and expensive. Using the finished model is called inference. Every time you ask a chatbot something, that's inference. Training is the years at school; inference is answering a question at work.

Three ways machines learn

SupervisedUnsupervisedReinforcement
What it getsExamples with the right answersExamples with no answersA goal and a score
What it learnsTo predict the answerHidden groups and patternsWhich actions win
You've seen it inSpam filters, deal-win scores, face unlockGrouping customers into segmentsGame-playing AI, robots, and polishing chatbots (Chapter 5)

Two traps every model can fall into

Memorising instead of learning. A student who memorises last year's exam answers scores 100% on last year's paper and fails this year's. Models do the same. It's called overfitting. The fix is to always test a model on examples it never saw in training.

Learning the wrong lesson. A model only knows what its data shows. If every deal you won last year came from one city, a model may decide the city is what matters. Gaps and bias in the data become gaps and bias in the model. People call this "garbage in, garbage out".

In one line

A model learns by guessing, checking and nudging its settings, over and over, until its guesses on new examples are good.

Go deeper: how people know a model is any good

Three piles of data

Teams split their examples into three piles. The training set is what the model learns from. The validation set is used to tune choices along the way. The test set is locked away until the very end and used once, for an honest final score.

Why "accuracy" can lie

Say 1 in 100 payments is fraud. A model that always answers "not fraud" is 99% accurate, and catches nothing. So teams also ask two plainer questions. Precision: when it flags fraud, how often is it right? Recall: of all the real fraud, how much did it catch? Pushing one up usually pulls the other down, and the right balance depends on what a miss costs you.

Chapter 3

Neural networks, without the maths

When a new lead lands in your inbox, you size it up in seconds. Big company? Good sign. Job title says "intern"? Weaker. They booked a demo on their own? Strong. You give each signal a weight in your head, add them up, and decide.

That's a neuron. The building block of modern AI does exactly this.

One artificial neuron

Picture each weight as a dial. Learning means turning the dials.

Company size Job title Booked demo Lead score INPUTS HIDDEN LAYER OUTPUT
Signals flow left to right. Every line is a weight, and thicker means it counts for more. Watch them shift as training turns the dials. This tiny network has 16. Large AI models have billions.

From one neuron to a network

One neuron can only learn simple patterns. Wire thousands together in layers, each feeding the next, and they can learn very complicated ones.

In an image model, the first layers learn to spot edges. Middle layers combine edges into shapes: an eye, a wheel, a letter. Later layers combine shapes into whole things: a face, a car, a word. Nobody programs these layers. They emerge from training. The "deep" in deep learning simply means many layers.

How it learns: walking downhill in fog

Imagine you're on a hillside in thick fog and you want to reach the valley floor. You can't see it. You can feel which way the ground slopes under your feet. So you take a small step downhill, feel again, and step again.

That's how a network learns. The height of the hill is how wrong its answers are, called the error or loss. Each training step works out which way to turn every dial to bring the error down a little, then turns them all a tiny amount. The technical name is gradient descent: gradient means slope, descent means going down.

The model only feels the slope where it stands. Its steps shrink as the ground flattens near the bottom.

Parameters: counting the dials

When you read that a model has "175 billion parameters", that's 175 billion dials, each set by training. That number belonged to GPT-3 in 2020. Today's leading models are larger, though most companies no longer publish exact counts. More dials can hold more patterns. They also need more data and far more computing power to set.

Why chips became big news

Training means multiplying huge grids of numbers, billions of times over. Graphics chips (GPUs), first built for video games, can do thousands of those sums at once. That's why demand for AI chips turned Nvidia into one of the most valuable companies in the world.

The name "neural network" comes from a loose resemblance to brain cells. In practice it's one very large calculation: numbers go in, numbers come out.

In one line

A neural network is layers of weighted sums; training turns billions of dials until the answers come out right.

Go deeper: the four terms engineers use
Backpropagation
How the network works out each dial's share of the blame for a wrong answer, starting at the output and working back to the first layer. It tells gradient descent which way to turn every dial.
Learning rate
The size of each step down the hill. Too big and you overshoot the valley. Too small and training takes forever.
Epoch
One full pass through all the training examples. Models often train for many.
Activation
The "decide" step inside each neuron. It bends the output so the network can learn curves and thresholds, and not only straight-line rules.
Chapter 4

How ChatGPT and Claude work

Type "See you" on your phone and the keyboard offers "tomorrow", "soon", "there". It's guessing the next word from what usually follows. ChatGPT and Claude run on the same idea, at a scale that changes what it can do.

Large language model (LLM)A neural network trained to predict the next piece of text. "Large" means billions of parameters, trained on an enormous amount of writing.

Step one: text becomes tokens

Models read tokens, which are common words or pieces of words. A short common word is usually one token. A long or rare word gets split into a few. In English, 100 tokens is roughly 75 words.

Thanks for your time on the call. Unbelievable demo!
An example split. Each model divides text in its own way.

Tokens matter for two practical reasons: they measure how much a model can hold in mind (Chapter 6), and they're how AI is priced (Chapter 10).

Step two: predict the next token

The model reads everything so far and gives every possible next token a probability.

"Thanks for your time on the"
call46%
demo21%
phone9%
meeting8%
all else16%
Scoring every possible next token…
Illustrative numbers. Watch it build the sentence one prediction at a time.

Step three: pick one, add it, repeat

The model picks a token, usually a likely one with a little randomness, adds it to the text, and predicts again. One token at a time, until the answer is finished. That's why replies appear word by word on your screen: you're watching them being generated.

Pretraining: reading a vast library

Before it can chat, the model reads an enormous amount of text: public web pages, books, articles and code. Its only job is to predict the next token, trillions of times. This phase is called pretraining.

Predicting well forces it to pick up a great deal along the way. To finish "The capital of Japan is", it needs a fact. To finish a line of a sum, it needs to follow the steps. To continue a condolence letter, it needs the right tone. Grammar, facts, reasoning patterns and writing styles all come along as side effects of getting good at prediction.

Attention: knowing which words matter

Older models read left to right and lost track of long sentences. The transformer, published in 2017, takes in the whole passage at once. For every word, it works out which other words are relevant to it. This is called attention.

Read this: "The client cancelled the meeting because it clashed with their board review." You know at once that "it" means the meeting. Attention is how the model makes that link: "it" pays strong attention to "meeting". Stack dozens of attention layers and the model can follow who did what across many pages.

Thicker lines mean more attention. "It" looks hardest at "meeting". Illustrative weights.

Does it understand?

People genuinely disagree. Two things are clear. It has learned patterns of language and knowledge rich enough to explain, summarise, translate, write code and work through problems. And it builds every answer from those patterns, which is why it can sound certain and still be wrong. Chapter 7 is all about that.

In one line

A language model splits text into tokens and predicts the next one, again and again; reading a vast library makes those predictions smart.

Go deeper: what GPT stands for, and why bigger got better

G, P, T

Generative: it creates new text. Pre-trained: it did the big reading phase first. Transformer: the design underneath. The name belongs to OpenAI's models, but almost every chatbot today follows the same recipe.

Scaling

Around 2020, researchers showed that models improve predictably as you add more data, more parameters and more computing power. That finding, often called "scaling laws", is why companies have spent so heavily on ever-larger training runs. It's also why new abilities keep appearing in bigger models that smaller ones lack.

A base model

The model you get straight out of pretraining is called a base model. It knows a lot and follows no instructions. The next chapter covers how it becomes an assistant.

Chapter 5

From autocomplete to helpful assistant

Ask a fresh base model "What's a good subject line for a follow-up email?" and it might reply with three more questions. It has read so many FAQ pages that it assumes you're writing one. It's a brilliant mimic that has no idea its job is to help you.

A few more stages of training turn that mimic into an assistant.

The four stages

  1. Pretraining: read the library. Covered in Chapter 4. The result is a base model with broad knowledge.
  2. Instruction tuning: learn what a good answer looks like. People write many thousands of example conversations: a request, then an excellent reply. The model trains on them and learns that when someone asks, it should answer. Also called fine-tuning.
  3. Feedback: learn which answers people prefer. The model writes several answers to the same question. People rank them. The model is trained to produce more of what ranked well. This is reinforcement learning from human feedback (RLHF): Chapter 2's reinforcement learning, with human judgement as the score. Anthropic also trains Claude against a written set of principles, an approach it calls Constitutional AI.
  4. Safety training: learn where the lines are. Declining harmful requests, being honest about uncertainty, and handling sensitive topics with care.
PretrainingInstruction tuningFeedbackSafety
You askWhat's a good subject line for a follow-up email?
After safety training

What happens when you press send

The app quietly assembles one long piece of text and hands it to the model:

The model reads all of it and predicts a reply, token by token.

Your chat leaves the model unchanged

This surprises most people. Once training ends, a model's dials are frozen. It seems to remember earlier messages because the app re-sends the whole conversation every single time. Start a new chat and it starts fresh.

"Memory" features work the same way: the app saves notes about you and slips them into the conversation. The model itself learns nothing from talking to you. Whether a company uses your chats to train its next model is a separate question, covered in Chapter 10.

Thinking before answering

Newer reasoning models write out working steps before they reply, like scribbling on scrap paper. You may see this as "Thinking…" in the app. It takes longer and costs more, and it clearly improves maths, coding, planning and tricky questions. Many apps let you switch it on or choose how much thinking to allow.

In one line

Pretraining gives a model knowledge; examples and human feedback teach it to use that knowledge to help you.

Go deeper: side effects of feedback training, and custom models

Why assistants can be too agreeable

Feedback training rewards answers people like. People tend to like being agreed with. So models can drift toward telling you your plan is great. This is called sycophancy, and labs actively train against it. You can counter it yourself by asking, "What's wrong with this?"

Fine-tuning for a business

Companies can fine-tune a model further on their own examples, for instance thousands of past support replies, so it reliably matches a format or style. It's good for teaching how to answer. It's a poor way to teach facts that change, which is why Chapter 8 exists.

Chapter 6

Talking to AI so it helps you

Imagine you hire a sharp freelancer and your whole brief is "write an email". You'd get something generic. Now imagine you tell them who it's for, what happened, what worried the client and how long it should be. You'd get something you could send.

AI is that freelancer. Fast, capable, and knows nothing about your situation until you tell it.

Prompt
What you type.
Context
Everything the model sees when it answers: the system prompt, the conversation so far, any files you attached, and your latest message.

The model only knows two things: what it learned in training, and what's in the context. The context is the part you control. It's the biggest lever you have.

The same request, briefed two ways

Thin brief

"Write a follow-up email."

Result: polite, generic, and about nobody.

Full brief

"Write a follow-up to Priya, head of sales at a 40-person logistics firm. We demoed on Tuesday. She liked the pipeline view and worried about how long migration takes. Under 120 words, warm, and offer two times for a call next week."

Result: a draft you could send after a quick read.

What a good brief covers

Situation
Who you are and what's going on.
Goal
What you want to happen.
Audience
Who will read the result.
Material
The facts, notes or documents to work from.
Limits
Length, tone, anything to avoid.
Format
An email, a table, bullet points, 3 options.

Habits that reliably help

The context window: working memory

Every model has a limit on how much it can take in at once, called the context window, measured in tokens. Today's larger models can hold hundreds of thousands of tokens, roughly a few novels' worth. Everything has to fit inside it: instructions, chat history, attachments and the reply.

In very long chats, early details can get less attention and the model may lose the thread. When a chat starts drifting, open a new one and paste in a short summary of what matters.

System prompt
Window used0%
Every message takes up room. When the window fills, many apps drop or summarise the oldest messages. Faded blocks are early details that already get less attention.

Why the same question gets different answers

When the model picks its next token, it doesn't always take the top choice. A setting called temperature controls how adventurous it is. Low temperature gives predictable, near-identical answers. High temperature gives more varied, creative answers that wander more. Chat apps choose a middle setting for you.

"Thanks for your time on the call"
Drag the slider. Low is predictable, high is adventurous.
In one line

AI knows only its training plus what you tell it; a clear, specific brief is the biggest lever you have.

Go deeper: techniques with names
Few-shot
Giving 2–5 worked examples in the prompt so the model copies the pattern. "Zero-shot" means no examples.
Role
Telling the model who to be: "You're an experienced sales manager reviewing this pitch." It shifts vocabulary and focus.
Structured output
Asking for a fixed shape, such as a table with set columns, so the answer can be pasted or processed straight away.
Chaining
Splitting a task into several prompts, each feeding the next: research, then outline, then draft, then edit. Each step is easier to check.
Chapter 7

Why AI gets things wrong

You ask a chatbot for a prospect's annual revenue. It answers instantly: "$48 million, up 12% last year." It sounds sure. It's specific. And it may be entirely made up.

This is the most important chapter in the course. Knowing how AI fails is what lets you use it with confidence.

Hallucination: confident and wrong

Remember how the model works: it predicts plausible next tokens. Plausible and true overlap most of the time, which is why it's so often right. When it lacks the facts, it still produces plausible text, because that's what it does. No alarm goes off inside it. This is called hallucination. Invented statistics, quotes nobody said and links to pages that don't exist are the classic signs.

The model aims for plausible. Most plausible answers are true. The rest look exactly the same from the outside. Illustrative.

The other common failures

What happensWhyWhat you do
Out of dateTraining stops at a knowledge cutoff date. Anything later is unknown to it.Use web search, or paste in current information.
Blind to your worldIt can't see your inbox, CRM or files unless they're connected or pasted in.Give it the material (Chapter 8).
Shaky countingIt sees tokens, not single letters or digits. Models famously miscounted the r's in "strawberry".Ask it to use a calculator or code tool, or check yourself.
Too agreeableFeedback training rewards answers people like.Ask it to argue the other side.
BiasIt absorbs patterns from human writing, unfair ones included.Review anything that affects people: hiring, credit, pricing.
Hidden instructionsText inside a web page or email can carry commands the model follows.Covered in Chapter 9.

Match your trust to the stakes

StakesExamplesHow to treat it
LowBrainstorming, first drafts, rewording, summarising a document you've providedUse freely, skim the result
MediumFacts, figures, names, quotes, anything a customer will readCheck every claim that matters
HighLegal, medical, financial, contracts, anything costly to get wrongExpert review before acting

Five habits that catch most mistakes

In one line

AI produces plausible text, and plausible is usually true but not always; give it sources and check what matters.

Go deeper: why hallucination is hard to fix completely

Each new generation of models hallucinates less. Three things help most: grounding (answering from documents you supply, Chapter 8), search (looking up current facts), and reasoning (checking its own working before answering). Models are also being trained to say "I don't know" more often.

Because every answer is still a prediction, the risk shrinks without reaching zero. The practical stance: treat AI like a brilliant new colleague. You'd trust their draft and still read it before it goes to a customer.

Chapter 8

Teaching AI your own knowledge

You want an assistant that can answer "What did we promise Northwind about onboarding?" or "Which help article covers bulk import?" The model has never seen your contracts, your CRM or your help centre. Its training ended long before you asked.

You have three ways to give it your knowledge.

Paste it inRetrieval (RAG)Fine-tuning
How it worksAttach the documents to your chatThe system finds the relevant passages and adds them for youTrain the model further on your examples
Best forQuestions about a few filesLarge, changing knowledge: help centres, wikis, CRM notesA consistent style, format or specialist task
Keeps up with changes?Yes, paste the latestYes, automaticallyOnly after retraining
EffortNoneMedium, usually built into a productHigh

For most business knowledge, retrieval is the right choice. To see how it works, you need one more idea.

Embeddings: meaning as a location

An embedding turns a piece of text into a long list of numbers that captures what it means. Think of it as a map where every sentence gets a spot. Sentences with similar meanings sit close together, even when they share no words at all.

A new question arrives.
Real embeddings have hundreds or thousands of dimensions, not two. Closeness still means similar meaning.

How retrieval answers a question

Set up once

  1. Split your documents into chunks. Small passages, a few paragraphs each.
  2. Turn each chunk into an embedding. Every passage gets its spot on the map.
  3. Store them in a vector database. A database built to find nearby points fast.

For every question

  1. Turn the question into an embedding. Now it has a spot on the same map.
  2. Find the closest chunks. Usually a handful of the most relevant passages.
  3. Hand them to the model with the question. With the instruction to answer from these passages.
  4. Answer with sources. The model replies and points to the passages it used.

This is RAG, short for retrieval-augmented generation: retrieve the right passages, then generate an answer from them.

Why it works so well

When RAG gives a bad answer, the search step is usually the culprit: it fetched the wrong passage and the model worked from that. Messy, duplicated or outdated documents lead to messy answers, so tidy sources pay off.

In one line

Embeddings place text on a map of meaning; RAG uses that map to find your relevant documents and hand them to the model.

Go deeper: tuning a RAG system
Chunk size
Small chunks are precise but can lose surrounding context. Large chunks keep context but bring in noise. Teams test to find the balance for their documents.
Hybrid search
Meaning-based search can miss exact strings like product codes, invoice numbers and names. Combining it with old-fashioned keyword search catches both.
Reranking
A second, more careful model re-orders the first batch of results so the best passages go to the top.
A famous result
Early word embeddings showed that meaning has direction: the position of "king", minus "man", plus "woman", lands close to "queen".
Chapter 9

AI that does things

You finish a call and say: "Log this call, move the deal to Proposal and book a follow-up for next Thursday." A plain chatbot can write you a lovely paragraph about doing those things. It produces text, so text is all you get.

Tools change that.

Tool use: giving the model hands

The app around the model offers it a menu of tools, each with a name and a plain description. For example: "update deal stage", "book calendar slot", "search the web". The model chooses when to use them.

  1. You ask for something. "Book a follow-up with Priya next Thursday."
  2. The model writes a request. Which tool, with which details: calendar, Thursday, 30 minutes, Priya.
  3. The app runs it. The app does the real work, and can check or ask you first.
  4. The result comes back. "Booked for 3 pm" goes into the context.
  5. The model carries on. It answers you, or calls the next tool.

That split keeps you in control. The model asks; the app decides what's allowed and what needs your approval.

Agents: tools in a loop

An agent is a model that keeps going until a goal is met. It plans, acts, looks at the result, decides the next step, and repeats.

Say you ask: "Prepare me for tomorrow's call with Northwind." An agent might look up the account in your CRM, read the last three call notes, check recent news, notice a new VP of Sales, look up her background, and write you a one-page brief. You gave one instruction. It chose six steps on its own. Coding assistants, research assistants and CRM assistants all work this way.

  1. Search the CRM for Northwind
  2. Read the last 3 call notes
  3. Check recent news
  4. Spot a new VP of Sales
  5. Look up her background
  6. Write a one-page brief
One instruction, six laps of the loop. Each lap, the agent picks its next step from what it just learned.

MCP: one plug for every tool

Connecting an AI app to each tool used to need custom work every time. The Model Context Protocol (MCP), an open standard Anthropic introduced in 2024, works like USB-C for AI. A tool built once as an "MCP server" works with any AI app that supports MCP. That's why assistants can now connect to email, calendars, Slack, Notion or a CRM in a few clicks.

Keeping agents safe

In one line

Tools let a model act; an agent is a model using tools in a loop until the job is done.

Go deeper: workflows, multiple agents, and computer use
Workflow or agent?
A workflow follows fixed steps you design, with AI inside some of them. An agent chooses its own steps. When a task is predictable, a workflow is cheaper and more reliable. Save agents for tasks where the path changes each time.
Multi-agent
Several agents split a big job: one researches, one drafts, one reviews. Useful for large tasks, and harder to debug.
Computer use
Some models can operate a screen directly, clicking and typing like a person. It's slower than a proper tool connection, and handy when an app has no other way in.
Chapter 10

The AI landscape, and choosing well

Claude, GPT, Gemini, Llama, Mistral, DeepSeek. Opus, Sonnet, mini, flash. Names arrive faster than anyone can learn them. You don't need to know them all. You need a way to sort them.

The engine and the car

A model is the engine. An app is the car built around it. ChatGPT is an app; GPT models are the engine inside. Many products you already use, from writing tools to support bots to CRMs, run on one of a handful of engines underneath.

Who makes the main models

CompanyModel familyWhere you'll meet it
OpenAIGPTThe ChatGPT app, and many products built on it
AnthropicClaudeThe Claude app, and many coding and business tools
GoogleGeminiThe Gemini app, Gmail, Docs and Search
MetaLlamaMeta AI in WhatsApp and Instagram, and free downloads for builders
OthersMistral, DeepSeek, Qwen, GrokFast-moving alternatives, many of them free to download

Three ways to sort any model

Closed or open-weight. Closed models are used through the maker's app or service; you can't download them. Open-weight models publish their trained dials, so anyone can run them on their own computers. Open-weight gives you control and privacy. Closed models have often led on top-end ability.

Big or small. Most families come in sizes. Anthropic's Claude comes as Opus (largest), Sonnet (middle) and Haiku (smallest, fastest). Others use names like "mini", "flash" or "nano". Big means smarter, slower and pricier. Small means quick and cheap, ideal for simple tasks done in high volume.

AbilitySpeedCost per task
Largee.g. Opus
Middlee.g. Sonnet
Smalle.g. Haiku
Relative and illustrative. Real figures vary by model and task.

Text only or multimodal. Most leading models now read images, PDFs, charts and screenshots, and some listen and speak. Image and video generators mostly use a different method called diffusion: start from random noise and remove it step by step, guided by your description, until a picture appears.

Picking the right one

If you needLook for
Everyday writing and questionsAny leading assistant app; choose the one you enjoy using
Current eventsOne with web search turned on
Answers from company documentsA tool that uses RAG over your files and shows sources
Hard analysis, code or planningA large model with thinking turned on
Simple tasks at high volumeA small, fast model
Data that must stay in-houseAn open-weight model your team hosts

The most reliable test is your own work: run the same real task through two or three options and compare the results side by side.

Your data

Before you put work information into any AI tool, find out three things. Does the provider use your conversations to train future models, and can you switch that off? Business and developer plans often exclude your data from training by default, while personal plans vary. How long is your data kept? And does your company already have an approved tool? Each provider's privacy terms answer the first two.

What it costs

Assistant apps usually charge a monthly fee per person, often with a free tier. Builders who connect to a model directly pay per token, quoted per million tokens. Output tokens usually cost more than input tokens, and bigger models cost more per token than smaller ones. Prices change often, so please confirm on each provider's pricing page before signing up.

In one line

Sort models by maker, open or closed, and size; then choose by testing them on your real work.

Where you are now

You know how it works

You now understand AI better than most people who use it every day. It learns patterns from examples. It predicts text one token at a time. It knows only its training and your context. It can be confidently wrong. It can read your documents through retrieval, and act through tools.

Part two can take you further: measuring AI quality properly, building with AI directly, AI across sales and customer work, safety and regulation, and where the field is heading.

Glossary: every term in this course
Agent
A model that uses tools in a loop until a goal is met. Ch 9
AGI
Artificial general intelligence: AI that matches people at almost any mental task. Not here yet. Ch 1
Attention
How a transformer works out which words in a passage matter to each other. Ch 4
Base model
A model straight out of pretraining, before it learns to follow instructions. Ch 4
Context
Everything the model sees when it answers. Ch 6
Context window
The most a model can take in at once, measured in tokens. Ch 6
Deep learning
Machine learning with many-layered neural networks. Ch 1, 3
Diffusion
How most image generators work: turning noise into a picture step by step. Ch 10
Embedding
A list of numbers that places text on a map of meaning. Ch 8
Fine-tuning
Extra training on specific examples to shape behaviour or style. Ch 5
Generative AI
AI that creates new text, images, audio or code. Ch 1
GPU
A chip that does thousands of sums at once; the workhorse of AI. Ch 3
Gradient descent
Learning by repeatedly turning dials a little in the direction that reduces error. Ch 3
Hallucination
A confident answer that is false. Ch 7
Inference
Using a trained model to get an answer. Ch 2
Knowledge cutoff
The date a model's training data ends. Ch 7
LLM
Large language model: a neural network that predicts the next token. Ch 4
Machine learning
Building AI by learning from examples. Ch 1, 2
MCP
Model Context Protocol: a standard plug connecting AI apps to tools. Ch 9
Model
The trained system that makes predictions; the engine inside an AI app. Ch 2, 10
Neural network
Layers of weighted sums whose dials are set by training. Ch 3
Open-weight
A model whose trained dials are published for anyone to run. Ch 10
Overfitting
Memorising training examples instead of learning the pattern. Ch 2
Parameter
One dial in a model. Large models have billions. Ch 3
Pretraining
The big reading phase where a model learns by predicting text. Ch 4
Prompt
What you type to the model. Ch 6
Prompt injection
Hidden instructions in outside content that try to hijack a model. Ch 9
RAG
Retrieval-augmented generation: find the right passages, then answer from them. Ch 8
Reasoning model
A model that works through steps before replying. Ch 5
RLHF
Reinforcement learning from human feedback: training on people's rankings of answers. Ch 5
System prompt
Hidden instructions an app gives the model before your message. Ch 5
Temperature
How much randomness goes into picking each token. Ch 6
Token
A word or piece of a word; the unit models read, remember and charge by. Ch 4
Tool use
A model asking the app to run an action, like booking a meeting. Ch 9
Training
Setting a model's dials by learning from examples. Ch 2
Transformer
The 2017 design behind nearly every modern language model. Ch 4
Vector database
A database built to find the nearest embeddings fast. Ch 8