Anatomy of AI
You type a question into a chatbot and an answer comes back. In between is one machine. This site takes it apart into its 27 parts, explains each one in plain words, and lets you operate all of them rather than only read about them.
No maths, and no background in computing, is needed anywhere. If you already build with these systems, a switch marked Advanced on every part opens the mechanism and the trade-offs underneath it.
What we mean by "AI" here Open this first if "AI" means several different things to you
The word AI covers many machines. This site explains one
The word "AI" is applied to spam filters, chess programs, image generators, self-driving cars and chatbots at once. Nothing accurate can be said about all of them together.
This site explains one machine: the system built around a large language model. It has two halves, and confusing them causes most misunderstanding. First the model is made. Text is collected, turned into numbers, and used to adjust an enormous set of values until it predicts text well. That produces a fixed file. Second, that file is run: given text, it produces more text, one piece at a time. Everything else here, the tools and agents and memory, is scaffolding built around the second half.
Not thisNot every automated system is this. Image generation, robotics and classical statistics are different machines with different physics.
The machine · five stages
In the order things happen. Open one to see its parts, and anything marked try it really runs, in your browser.
One request, end to end Every part above, working together on one question
Everything you have just met, working at once
Every part has now been examined on its own. None of them is ever used on its own, and a list of parts is not an understanding of a machine.
Follow one request all the way through. A sentence is cut into tokens, joined to a system prompt, a memory lookup and three retrieved passages, and assembled into one string. The file runs over that string and produces tokens until it asks for a tool. A program checks the permission, runs it, and pastes the result back as text. The loop turns four more times. An answer arrives, one token at a time. Nothing in that sequence was magic.
Not thisThere is no step in this trace that is not an ordinary program, a file of numbers, or arithmetic.
The one distinction to keep
If you take one thing from this site, take the split between making the model and using it. Most arguments about what AI can and cannot do turn out to be two people talking about different halves.
Built once
Making the model. Text is read by the ton, and a vast set of numbers is nudged, over and over, until the thing predicts text well. It ran for months, finished before you arrived, and will not run again.
The file in between
What building produces is one file of numbers. It has no memory and it does nothing on its own. Making it and running it are two separate jobs, and this file is the only thing that passes between them.
Run every turn
Using the model. Text is gathered, the file is run over it, and one piece of the answer comes out. Then it happens again for the next piece. All of this repeats from scratch on every turn of every conversation.