Step-by-step answer
Core 2 hours6 stepsCompare long context, RAG and a router on your questions
The Flat 4 matter padded to about 120,000 tokens with synthetic filler and two planted distractors, then answered three ways through claude -p, the whole bundle as a cached system-prompt prefix, hybrid RAG over the top 20 chunks, and a router that falls back from RAG to full documents, with correctness, citations, "not stated" accuracy, cache reads, cost and latency per stratum, and the break-even computed from the measured bundle size.
Back to the exercise