Skip to content

Build your own tiny AI.

These are two small AIs you can build in about a minute. They learn from whatever you give them, right here on your device, so you can watch exactly how it works.

Lesson 4 of 7: Bias in, bias out

Teach it to sort

Give it a few examples of two kinds of message. It counts which words turn up in which pile, and uses that to guess where a new message belongs. Spam filters started out exactly like this.

Why it matters

Loads of everyday AI works like this. It learns from examples, then it guesses. Give it lopsided examples and you get lopsided guesses, so any AI is only as good as what it was fed, and it's always worth asking what that was.

  • thanks for listening tonight
  • you're not on your own
  • that sounds really hard, i'm here
  • take your time, no rush
  • nobody cares what you think
  • you're so annoying
  • stop wasting my time
  • what a stupid thing to say

It thinks: Kind (87% sure)

thanksthatreallyhelped

Have a go at breaking it. Add "thanks" to the Unkind pile four times and watch "thanks, that really helped" flip to Unkind. It only knows what you've shown it, and that's where bias comes from.

Lesson 1 of 7: What AI really is

Teach it to talk

Chatbots write one word at a time, picking a likely next word based on what they've read. This one has only read the text in the box. Change the text and it learns something else.

Why it matters

ChatGPT and the rest do a much bigger version of exactly this, guessing the next word from what usually comes next. Once you've seen it for yourself, it makes sense that they can sound sure of themselves and still be wrong, and that it's worth checking anything that matters.

It has read 83 words, 36 of them different.

Nothing written yet. Press Next word.

What it might say next

  • the34%
  • when24%
  • people14%
  • some14%

A big chatbot works the same way, except it's read a huge chunk of the internet and looks back over thousands of words instead of the last two. That's why it sounds so clever, even though it's still just picking the next word.