Ibnovate Course 2 · The Rising Builders
⏱ 75 minLive session

Session 13 — How Generative AI Works

Duration: 75 min · Format: live online

What you'll learn: by the end, you can explain classifying vs generating, describe how an LLM predicts the next token, and name where generative AI shines — and where it fails and must be verified.

Soft skill focus — Curiosity

Today you'll also grow Curiosity. Looking under the hood of an LLM — instead of just using it — is exactly what turns you from a passive user into a builder.

Try this: in the interrogate-an-LLM activity, probe a topic you know deeply and actively hunt for the one thing the model gets wrong or makes up.

Think about: what surprised you most about how the model actually works?

What you'll need


Hook

Before you read on, think about your own answers:

Take a guess, then here's the reveal: a Large Language Model (LLM) — the engine behind ChatGPT, Gemini, and Claude — is that same "next-word guess," supercharged. Today you'll look under the hood at how these models really work.


Teach — Classify vs generate

Here are the key words to hold onto:

Look at this diagram and notice the two directions:

Classic AI sorts a picture into a label; generative AI turns a prompt into a brand-new picture

⚠ Watch for this: it's easy to think "generate" means the model looks up an answer it stored. It doesn't — it builds the output fresh, piece by piece, which is exactly why it can produce something that looks right but is completely made up.

Your turn: think of one example of classifying and one of generating from your own life.


Teach — LLMs predict the next token

An LLM writes by repeatedly predicting the most likely next piece of text — called a token. Look at the diagram:

The sentence "The cat sat on the ___" with the model scoring "mat" 60%, "rug" 25%, "floor" 10%, "moon" 5%

Here's the loop it runs:

  1. Score the options — for "The cat sat on the ___" it scores mat 60%, rug 25%, floor 10%, moon 5%. It learned these odds from a massive amount of text.
  2. Pick one — it chooses a likely token and adds it.
  3. Repeat — it does this again and again, building sentences one token at a time.

The key point: a setting called temperature controls how adventurous the picks are — higher = more creative and random, lower = safer and more predictable.

⚠ Watch for this — the big one: an LLM has no true understanding. It is an extraordinarily good pattern predictor, not a thinker. That is why it can be brilliant and confidently wrong in the same breath. Never trust it blindly — verify.

Think about: if it's just guessing the next word from patterns, why might it invent a fact that sounds totally believable? (Here's the clue: it optimises for plausible-sounding, not true.)


Teach — Superpowers and traps

Knowing what generative AI is great at — and where it fails — is what separates a smart user from a careless one. Here's the map:

Great at Watch out for
Drafting, summarising, explaining Hallucinations — it invents facts confidently
Translating, brainstorming, rewriting Bias — it learned society's biases
Helping debug or explain code Knowledge cutoff — it may not know recent events

⚠ Watch for over-trust: the more fluent and confident an answer sounds, the easier it is to assume it's correct. Flip that instinct — fluent language is not evidence of truth. Anything that matters, you fact-check against a real source.

Think about: which of these traps would be most dangerous in a school project — and how would you catch it?


Activity — Interrogate an LLM

Open a chatbot on a school/grown-up account and run three tests:

  1. Catch a hallucination (≈8 min). Ask about something you know really well (a hobby, your town, your favourite game). Your job: find one thing it gets wrong or makes up. Note down what you caught.
  2. Summarise (≈6 min). Paste a paragraph from a textbook → "Summarise this in 3 bullet points." Ask yourself: did it keep the meaning, or drop something important?
  3. Explain, then verify (≈6 min). "Explain how vaccines work, simply." Then fact-check one claim against a real source (an encyclopaedia or a trusted site).

Notice as you go: the model sounds confident even when it's wrong. The skill you're practising — checking AI's claims against reality — is a genuine 21st-century skill.


Check yourself

Try to answer these, then check yourself against the answer after the arrow:

  1. What does an LLM actually do to write text? → It predicts the most likely next token (piece of text), over and over.
  2. What is a hallucination? → When the AI confidently states something false that it essentially made up.
  3. Does an LLM understand what it says?No — it's a very powerful pattern predictor, not a thinker.
  4. True or False: if an answer sounds fluent and confident, it's probably correct.False — fluent wording is no proof of truth; verify anything that matters.

Wrap-up


Tips & extra challenges

Vocabulary

Term Meaning
Generative AI AI that creates new content
LLM (Large Language Model) A model that predicts text, trained on huge amounts of writing
Token A small chunk of text the model predicts
Hallucination Confident, made-up output
Temperature How random or creative the output is

Resources

Practice set

Practise on your own with these exercises on how LLMs work — easy to hard. Answers follow the arrow (→).

  1. (Easy) Sort each task as classify or generate: (a) label a photo "cat" or "dog," (b) write a poem about a cat, (c) mark an email as spam, (d) draft a birthday message. → (a) classify, (b) generate, (c) classify, (d) generate.
  2. (Easy) In one sentence, what does an LLM actually do to produce text? → It repeatedly predicts the most likely next token, building the answer one piece at a time.
  3. (Medium) Name three things generative AI is genuinely great at, and three traps to watch for. → Great at: drafting, summarising, explaining/translating/brainstorming/code help. Traps: hallucinations, bias, knowledge cutoff.
  4. (Medium) A chatbot says your town was founded in 1782 and sounds totally sure. What is your next step, and why? → Verify it against a trusted source — confident tone is not evidence of truth; the model optimises for plausible-sounding, not true.
  5. (Medium · prompt-improvement drill) Improve this vague prompt: "tell me about the moon." → Add a task, audience, and format, e.g. "Explain three facts about the Moon's phases for a 10-year-old, as short bullet points."
  6. (Hard · prompt-improvement drill) You want a study summary you can trust. Rewrite "summarise this chapter" so it's harder for the model to invent facts. → e.g. "Summarise ONLY the text I paste below in 3 bullet points. If something isn't in the text, don't add it." — grounding the model in given text reduces hallucination.
  7. (Hard) Explain to a classmate why a higher temperature might be good for brainstorming story ideas but bad for a history homework answer. → High temperature = more random/creative picks (good for varied ideas) but more likely to drift from facts (bad when accuracy matters).

Going deeper (optional)

Optional enrichment for a curious mind — no new tools needed, just the chatbot you already have open.

Common mistakes & fixes

If it's not working, check these:

What's next

Session 14 — Build with Generative AI: you'll learn pro prompt patterns, design your own chatbot with a system prompt, and use AI responsibly and with integrity.

Ibnovate · Build · Innovate
Type to search · Esc to close
Welcome back
Sign in to continue building.
Accounts are created by Ibnovate — ask your instructor for your login.
🔒