Codele / LLMs, RAG and agentic AI
Tokens
A model does not read letters or whole words. It reads pieces called tokens, and every token is a number.
- A token is a piece of text, a short word, part of a word or a single letter. Every token is a number.
- The cutter has a vocabulary of common pieces and uses the longest match that fits.
- The model works with the numbers, never with the letters.
- Length limits and cost are counted in tokens, not words, so a long strange word costs more.
- This is a toy cutter with 16 pieces. Real ones have tens of thousands, and keep the spaces too.
Loading the playable lesson…