Discussion about this post

User's avatar
Lious's avatar

Eivind, manual inspection is a useful complement to the compression advice. I would test a summary with a question whose answer depends on a small exception in the original context, not just compare token counts. A shorter context that preserves the main theme but drops that exception can look cleaner while changing the decision.

Pawel Jozefiak's avatar

Technique 3 (keyword search integration) is the one most teams skip. They implement RAG without thinking hard about what they're actually retrieving and why.

The context compression piece matters more at scale than people realize. I run an agent on long-running workflows and watched performance degrade as context accumulated - not because the model got worse, but because the signal-to-noise ratio quietly flipped.

One thing you didn't mention: there's a sweet spot for context size. More isn't always better. Some tasks perform measurably better with a 50k window than a 500k one. Counter-intuitive but consistent in my testing. The model gets distracted by volume it doesn't need.

1 more comment...

Ready for more?