- What counts as context vs output?
- Context is the input budget — everything the model reads before generating: system prompt, prior conversation turns, tool/function definitions, retrieved documents, and the latest user message. Output is what the model writes back. They're billed and limited separately, even though both consume the same underlying attention budget. A 200K-token context window with an 8K output cap means you can feed ~200K tokens in but only get up to ~8K tokens back per call.
- Do system prompts count toward the window?
- Yes. Every token the model sees consumes the input budget — system prompt, developer instructions, few-shot examples, tool schemas, prior assistant turns, retrieved RAG chunks. The only tokens that don't count are the ones the model emits as output (those count toward the separate output cap). Long system prompts on multi-turn conversations are the #1 cause of mysterious context-overflow errors.
- What is RAG and how does it interact with context size?
- Retrieval-Augmented Generation (RAG) means fetching relevant passages from a vector store at query time and pasting them into the prompt so the model can ground its answer in fresh or domain-specific facts. Each retrieved chunk eats context budget. A typical RAG setup retrieves 5–20 chunks of 500–1000 tokens each, so 5K–20K tokens of context vanish before the user message is even appended. Plan for that — large windows let you retrieve more aggressively, but precision matters more than volume.
- Are reasoning tokens included in the output budget?
- For OpenAI's o-series and similar reasoning models, yes — internal chain-of-thought tokens count against the output cap, which is why those caps are dramatically larger (e.g. 100K for o1) than non-reasoning models. The user only sees the final answer, but the model may have generated 10–50× that many hidden tokens to get there.
- Why does the same model show different context limits at different vendors?
- Open-weight models (Llama, DeepSeek, Mistral) are hosted by many providers (Together, Groq, Fireworks, Bedrock, Vertex), and each picks its own deployment configuration — KV-cache sizing, max sequence length, batching strategy. The headline 128K Llama 3.3 70B context might be 32K on one host and 128K on another. Check your specific provider's docs.
- How accurate is the token estimate?
- Within roughly ±10% for English prose and code. Real tokenization needs each model's exact BPE or SentencePiece table — Convertitive doesn't ship those in the browser because they'd add tens of megabytes of JavaScript. For final cost or limit sign-off, run your prompt through the vendor's own tokenizer (OpenAI tiktoken, Anthropic's count-tokens endpoint, Google's count_tokens).
- Should I always pick the largest window?
- No. Bigger windows let you cram more in, but model quality typically degrades past 30–50% utilization — attention becomes diffuse and the model misses details in the middle of long contexts (the 'lost in the middle' effect). For retrieval-heavy workloads, fewer high-quality chunks beat dumping the whole corpus. For analysis tasks, summarize-then-process often beats one giant prompt.