Token & Context Math
Sizing & LatencyQuick mental rules for budgeting prompt windows and unit costs.
- 1 token ~ 3.5–4 English characters (~0.75 words); JSON keys and UUIDs inflate token counts 1.5–3x.
- Output tokens cost 3–5x more than input tokens and dominate total wall-clock latency.
- Keep RAG chunks to ~300–600 tokens with 10–15% overlap and parent section headers.