All learning
Lab 01 · Fundamentals
Tokenizer playground
Type text, watch it split into tokens, and see what a prompt costs at scale.
The question
liveWhy do two prompts of the same length cost different amounts?
Booting sandbox…
Edits save to this browser only. Press ⌘/Ctrl + Enter to re-run, Reset to restore the original.
What building it taught me
- Greedy longest-match over a subword vocabulary already shows how BPE behaves.
- Emoji and accented characters fall back to single-character tokens fast.
- Turning token counts into $/month makes the trade-off concrete for stakeholders.
Related notes
FundamentalsNext lab: Hybrid search, unpacked →
