About this episode
What an AI model actually sees while it works: the context window, how an agent fills it step by step, why a bigger window doesn't mean better answers (context rot), how to keep it clean, and how RAG (retrieval-augmented generation) finds the right documents, and what happens when it finds the wrong ones.
Written by Kiran Krishna. Narrated with an AI voice. · LinkedIn
In this episode
- 0:01The newest AI models can read about a million tokens at once.
- 0:53Here's the plan.
- 1:09So what can a model actually see?
- 2:17So how fast does an agent fill it?
- 3:44But why cut anything?
- 5:06So how do you keep the form clean?
- 6:34So what about a question the data can't answer?
- 8:18But is that right?
- 10:13So what should a model see?
Sources check every one
- Anthropic, models overview (1M-token context windows) platform.claude.com
- OpenAI, models (about a million tokens) developers.openai.com
- Google, Gemini models (1M tokens) aistudio.google.com
- Google, Gemini API long-context docs (a million tokens is eight novels; finding one fact) aistudio.google.com
- Anthropic docs, context windows (context rot; what counts toward the window; too-long requests are refused; dropping the oldest messages) platform.claude.com
- Claude Help Center, usage and length limits (Claude sums up earlier messages) support.claude.com
- Google, Gemma 4 31B tokenizer (our token counts for the sales agent's run, before and after cleaning it up) huggingface.co
- Liu et al. 2023, Lost in the Middle (20 documents; 75.8% when the answer came first, 53.8% in the middle, 56.1% with none) arxiv.org
- Chroma 2025, Context Rot (18 models, less reliable as the input grows) trychroma.com
- Google DeepMind, Gemini 4 Argon model card (2026 scores on short and long inputs) deepmind.google
- Google, Gemini 2.5 report (Gemini playing Pokémon tended to repeat old moves past about 100,000 tokens) storage.googleapis.com
- Anthropic, Effective context engineering for AI agents (the smallest set of high-signal tokens; what a good summary keeps; searching with tools) anthropic.com
- Anthropic, Managing context on the Claude Developer Platform (clearing old tool results cut tokens 84%) claude.com
- Google, Gemini API token docs (about ¾ of a word a token, for "about 4 million tokens") aistudio.google.com
- Lewis et al. 2020, retrieval-augmented generation (the name, from 2020) arxiv.org
- Anthropic, Introducing Contextual Retrieval (chunks; keyword and meaning search; a line of context, with keyword search, cut failed searches from 5.7% to 2.9%) anthropic.com
- OpenAI, embeddings docs (an embedding is a list of numbers, 1,536 of them for one OpenAI model) developers.openai.com
- Latent Space, Claude Code interview (early versions used RAG; the switch to searching with tools, mostly by feel) latent.space
- Cursor, semantic search (word search plus meaning search: +12.5% answer accuracy on average, in Cursor's own test) cursor.com
