What Happens When You Ask an AI: ten hands-on lessons on how a chatbot works

A ten-lesson course that follows a question through an AI chatbot. Cut your own question where a real tokenizer cuts it, watch a real small AI write its answer one piece at a time, turn the temperature dial, explore a map of meaning, see attention and layers at work, train a tiny AI in your browser, and find out why AIs make things up and forget.

A question cut into dark blue paper slips, each stamped with its number, beside coloured number chips and a red paper machine labelled The AI

Interactive 3D demo

What Happens When You Ask an AI

Ten hands-on lessons on how an AI chatbot works: tokens, next-word guessing, temperature, meaning, attention, layers, training and why it makes things up.

Open anyway

It draws live 3D in your browser, which needs graphics acceleration. This browser doesn't seem to have it on, so it may run slowly.