How Does AI Know?
Pip the robot answers 2 + 2 without a single answer drawer. Find out how AI really guesses, learns, follows clues and checks its work.
Pip's five big ideas
Blocks
AI cuts your words into small pieces called tokens.
Guesses
It scores every possible next block and picks a strong one.
Practice
Reading lots of text turns billions of tiny dials until the guesses get good.
Clues
Words around the question change the guess, and sneaky notes can trick it.
Tools
For answers that must be exact, smart helpers use tools to check.
For grown-ups
Large language models predict the next token from patterns learned in training. They do not look answers up. Context in the prompt can override what they learned, which is also how prompt injection works, and they can produce confident errors. Good AI products give the model tools, like a calculator or code, for anything that has to be exact. The scores and numbers in the video are simplified for kids.
Talk about it together
- Pip has no drawer that says "4". So where did the answer come from?
- Why did the fish sign change what Pip said? Can you think of a clue that might fool you?
- What is a hallucination? Have you ever heard someone say something wrong but sound very sure?
- When should we check an answer with a tool, a book or a grown-up, instead of trusting a guess?
Read the whole script
- Narrator
- Meet Pip! Pip is a robot who can answer questions.
- Pip
- Ask me anything!
- Narrator
- Okay, Pip. What is two plus two?
- Pip
- Four!
- Narrator
- Correct! But wait... how does Pip know that?
- Narrator
- Old computer programs worked like a giant cabinet. A person had to write every answer and put it in a drawer.
- Narrator
- But Pip has no drawer that says four. So where does the answer come from?
- Narrator
- First, Pip breaks your words into little pieces called tokens. Think of them as building blocks.
- Pip
- Two. Plus. Two. Equals. Click, click, click!
- Narrator
- Then Pip plays a guessing game. It looks at the blocks, and guesses which block comes next.
- Narrator
- The cat sat on the... mat? Hat? Moon? Pip gives every guess a score, and picks the strongest one.
- Narrator
- How did Pip get so good at guessing? Practice! Pip read more words than you could read in a thousand lifetimes.
- Narrator
- Inside Pip are billions of tiny dials. Every time Pip guessed wrong, the dials turned a tiny bit, so the next guess was a little better.
- Narrator
- Pip has seen two plus two equals four so many times, the four block is huge. Nothing else even comes close.
- Pip
- So I'm not looking it up. I learned the pattern!
- Narrator
- Here's the tricky part. Pip also listens to clues around the question.
- Narrator
- If a sign says, in this silly game, two plus two equals fish... the fish block suddenly grows!
- Pip
- Fish? Well... the sign says fish!
- Narrator
- Clues help Pip. But a sneaky note can trick Pip, too. That's why good AI helpers check where their clues come from.
- Narrator
- Now a hard one. What is forty-eight thousand, three hundred seventeen, times nine thousand, two hundred six?
- Narrator
- Pip has never seen this one. All the blocks are about the same size.
- Pip
- Um... four hundred forty-five million?
- Narrator
- That sounds sure, but it's wrong! When an AI says something wrong in a confident way, we call it a hallucination.
- Narrator
- So smart helpers use tools. Pip grabs a calculator!
- Pip
- Four hundred forty-four million, eight hundred six thousand, three hundred two. Checked!
- Narrator
- Coding helpers like Claude do this too. They read files, run tests, and check their work before they answer.
- Song
- Chop the words in blocks, click click click! Guess the next block, quick quick quick!
- Song
- Practice turns the dials round and round, clues can turn the guess around!
- Song
- When you need it right, don't guess, don't stress. Grab a tool and check it! Yes, yes, yes!
- Narrator
- Now you know Pip's secret. Blocks, guesses, practice, clues, and tools!
- Pip
- Bye bye!