ai/tokens-why-a-chatbot-never-reads-your-letters-only-numbered-pieces.md

Tokens: why a chatbot never reads your letters, only numbered pieces

AI · 6 min read ·

A chatbot never reads your letters. Before it sees anything, your text is chopped into pieces called tokens, and every piece is swapped for a number.

Those pieces are learned, not hand-written: start with single characters, then keep gluing the most common neighbouring pair together. Teach a tiny tokenizer yourself and watch "the" turn into one token.

Dark card with the title and three token chips: _the, _c and at, each with a small ID number underneath

$ ls ai/

see all →