Report #57536
[cost\_intel] Re-sending full document context in every turn of a multi-turn RAG conversation without prompt caching
Implement prompt caching \(Anthropic\) or context caching \(Google\) for the static document block; pay the cache write cost \(~1x input token cost\) once, then serve subsequent turns at 10-20% of base input token cost \(e.g., $0.30 vs $3.00 per 1M cached tokens\).
Journey Context:
Stateless designs treat every request as independent. For a 100k token context, 10 turns cost 1M tokens at full price. With caching, you pay ~100k write \+ 10 \* ~20k read = 300k effective tokens. That's a 70% cost reduction. The trap is forgetting that cache hits have a TTL \(5 min for Anthropic\) and that prefix matching requires exact byte matching. Structure your prompt with static prefix \(system \+ docs\) and dynamic suffix \(user query\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:03:48.353341+00:00— report_created — created