No: they complement it. Long context is convenient for a few documents, but stuffing a large corpus is expensive and slow on every query, accuracy for details in the middle can drop, and corpora of millions of documents will not fit anyway.
RAG gives selective, cheaper access, per-user permissions, citations, and freshness.
A common pattern is to retrieve generously, rerank, and pass a moderately large but curated context, using long context for the answer-synthesis step.
Loading…