
Long context — when to use 1M tokens (and when not to)
Long context isn't a substitute for RAG. Here's the framework.
Gemini 3's 1M token window is astonishing. It is not a replacement for retrieval.
Use long context when#
- The corpus is small (< 500K tokens total)
- Every query touches most of the corpus
- You need cross-document reasoning
Use RAG when#
- The corpus grows over time
- Most queries touch < 5% of the corpus
- You care about per-query cost
Build this with TokenRex
TokenRex is an LLM marketplace by Asirex Labs. Choose an enabled model, create a private API key and use the supported endpoint shown in Docs. Check live prices before your first request.