"Long-context models made RAG obsolete." Argue both sides, then give your actual position.
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
The case against RAG: Context windows went from 4k to 1M+ tokens; a whole handbook or codebase now fits. Stuffing everything eliminates the entire retrieval failure class - no parsing-chunking-embedding pipeline, no recall misses, no infrastructure. The model attends over complete documents, so cross-references and whole-corpus reasoning work naturally instead of through a top-k keyhole. Prompt caching slashes the marginal cost of re-sending a static corpus, and models' effective use of long context keeps improving. For a bounded, stable, uniformly-accessible corpus, RAG is accidental complexity.
Full worked answer
The case against RAG: Context windows went from 4k to 1M+ tokens; a whole handbook or codebase now fits. Stuffing everything eliminates the entire retrieval failure class - no parsing-chunking-embedding pipeline, no recall misses, no infrastructure. The model attends over complete documents, so cross-references and whole-corpus reasoning work naturally instead of through a top-k keyhole. Prompt caching slashes the marginal cost of re-sending a static corpus, and models' effective use of long context keeps improving. For a bounded, stable, uniformly-accessible corpus, RAG is accidental complexity.
The case for RAG: Scale kills the stuffing argument - 1M tokens is a few thousand pages; enterprise corpora run to millions of documents, and no roadmap fits them in context. Economics: even cached, attention over hundreds of thousands of mostly-irrelevant tokens per query costs more and is slower than retrieving the relevant 5k. Quality: effective context ≠ advertised context - retrieval quality inside the window degrades with distractor volume (the "lost in the middle" line of work, and long-context benchmarks since), so more haystack can mean worse answers. And three requirements are structural, independent of window size: freshness (index updates in minutes vs re-stuffing), access control (per-user filtering must happen before the model sees anything - you cannot stuff documents the user isn't allowed to read), and attribution (chunk-level citations fall out of retrieval naturally).
Actual position: long context didn't kill RAG; it killed bad RAG and changed the operating point. The 2023 pattern of squeezing five 200-token chunks into a 4k window is dead - modern systems retrieve generously (tens of chunks, full parent documents) because the window absorbs it, making retrieval recall-oriented and letting the model do reading comprehension over richer evidence. Small stable corpora (a product manual, one contract) genuinely should be cache-stuffed - that's long-context eating RAG's low end, correctly. Everything large, fresh, or permissioned remains retrieval-shaped, with long context as the consumer of better retrieval rather than its replacement. The two are complements: retrieval selects, context reasons.
What a good answer covers
- The case against RAG: Context windows went from 4k to 1M+ tokens; a whole handbook or codebase now fits
- Stuffing everything eliminates the entire retrieval failure class - no parsing-chunking-embedding…
- The model attends over complete documents, so cross-references and whole-corpus reasoning work naturally…
- Prompt caching slashes the marginal cost of re-sending a static corpus, and models' effective use of…
- For a bounded, stable, uniformly-accessible corpus, RAG is accidental complexity
Key terms: The case against RAG · The case for RAG · freshness · access control · attribution · Actual position
In the glossary: RAG · Prompt caching · Attention · Lost in the middle
Interviewer follow-ups to expect
How exactly does prompt caching shift the crossover corpus size - sketch the cost math. If effective context keeps improving, which RAG components die first and which never do?
How do you decide the retrieve-generously operating point (how many chunks) empirically?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep