Back to Foundations
Lesson 2 of 3

How AI Works

AI isn't a thinking brain. It's a prediction engine—and once you see it, you can't unsee it.

5 min read

The Pizza Rule

If I say "Pepperoni", your brain instantly screams "Pizza".

You didn't think about it. You didn't reason through it. You predicted it based on probability—because those two words appear together constantly.

This is exactly how AI works. It doesn't "know" facts. It knows which words usually hang out together. The next word is always a guess—just a very educated one.

See It In Action

Complete all 3 concepts to understand how AI really works.

Concept 1 of 3

Concept 1: The Pizza Rule

AI predicts the most likely next word based on patterns it learned.

Generated Text

10 tokens
I went to the Italian restaurant and ordered a pepperoni |

Next Token Probabilities

Why AI "Lies" (Hallucinations)

Because AI is just guessing the next word, it can be confidently wrong.

It isn't checking facts. It's checking probability. If a lie is statistically likely based on the patterns it learned, it will tell the lie with complete confidence.

This is why you should never trust AI output without verification—especially for facts, dates, quotes, or anything that matters.

What You Just Learned

  • AI is a prediction engine, not a thinking brain
  • It predicts tokens (word chunks), not whole words
  • This is why AI can be confidently wrong—it predicts likely tokens, not true facts
  • Always verify AI output for anything that matters