BooleanIQ / Learn

AI from the ground up / Level 400 / LESSON 402

Tokens: how AI reads, and why Hindi costs more

Text is cut into pieces; pieces are what is counted and billed

KnowCore path

Coming soon. This is the lesson outline; the full article is not available yet.

The wrong idea this corrects

"It reads words" or "it reads letters".

What you will learn

  1. A token is a frequent piece of text: a word, part of a word, a mark
  2. The pieces were chosen by counting what appears together most in the training text
  3. Text that was rare in training breaks into more pieces, so Hindi in Devanagari usually takes more tokens than the same sentence in English
  4. Limits and prices are in tokens, in and out
  5. Why it stumbles on spelling and counting letters.

The picture to remember

Tiles. Common words are one tile; rare ones are built from several.

The honest part

The gap between languages differs by model and is shrinking in some; the counts on screen are measured that day on named models.