← All transcripts

Is RAG Still Needed? Choosing the Best Approach for LLMs Transcript, AI Summary & Key Points

IBM Technology · Mar 09, 2026 · Education · 11:10 · EN

📄 Transcript

Searchable transcript of Is RAG Still Needed? Choosing the Best Approach for LLMs — IBM Technology (11:10). Search for a phrase, then click its timestamp to jump straight to that moment in the video.

Captions sourced from the original video on YouTube, published by IBM Technology. The video, its captions and all related intellectual property remain the property of their respective owners; AINotes claims no ownership. Provided for research, accessibility and search — see the Transcript Notice and Copyright Policy.

00:00 There's a fundamental truth about LLMs, large  language models. They are frozen in time. They know everything about our world up until  their training cutoff date and absolutely nothing about what happened 5 minutes ago. Nor  do they know anything about your private data, your internal wikis, your proprietary codebase. And  if we do want an LLM to know any of that stuff, well, we have to solve the problem of context  injection.

00:28 How do we get the right data into the model at the right time? And there have been two  very different ways to handle this. Now, the first is really what we can think of as the engineering  approach. It's RAG, retrieval augmented generation. So here we've got an LLM and we've also got an  input prompt from the user. Now ahead of time we take some of the documents that we want to give  to this LLM.

01:01 So these are documents that could be PDFs or code files or entire books and we chunk  them. We break them up into smaller chunks and we pass them through to an embedding model and  the embedding model takes those chunks and it turns them into vectors and those vectors are then  stored in a dedicated vector database. Now when a user asks a question, it performs a semantic  search to retrieve the most relevant chunks and then inject them into the context window.

01:47 So now the context window has the user prompt, but it also has all of these chunks that we have  taken from the vector database and together this forms the context window. Now this works but  it does rely on something. It relies on the hope that your retrieval logic actually found  the right information in the vector database. Now the the second approach is really a bit more  of a brute force approach and that one is called long context.

02:23 Now this is really the model native  solution because you skip the database here and you skip the embedding model. All you do is you  take your documents and you just well you put them straight into the context window and then you let  the model's attention mechanism actually do the heavy lifting of finding the answer. Now for a  long time this kind of brute force method wasn't really much of an option because initially context  windows were tiny.

02:50 Early LLMs had context windows that could maybe store what like 4K of tokens.  You couldn't fit a novel in there, let alone a corporate knowledge base. You basically had to use  RAG. But today's models have much larger context windows. Some of them have, you know, a million  tokens plus. And to put that into perspective, a million tokens is roughly 700,000 words.

03:21 and you  could fit the entire Lord of the Rings series into the prompt and still have room for The Hobbit. So,  this massive jump in capacity forces us to ask a difficult question about our architecture. Because  if we can simply command A, command C, command V, all of our documentation into the models context  window, do we really need the overhead of embedding models and vector data stores?

03:49 Is RAG becoming an unnecessary complexity layer? Well, if we accept that we can fit whatever data we  need into the context window, then the argument for doing so basically boils down to one word,  simplicity. And let me give you three reasons why stuffing the context window directly may indeed be  the way to go. And reason number one is collapsing the infrastructure.

04:20 A production RAG system. Well,  it is quite heavy. You need a a chunking strategy which is like fixed size maybe or sliding window  or recursive. You decide. You're going to need a embedding model to encode the data. You need  a a vector database to store it. You're going to need a reranker to sort the results. you need  to keep all the vectors in sync with your source data.

04:45 It's basically a lot of moving parts, a lot  of places for things to break. And long context offers what we might call well just simply the uh  the no stack stack. You remove the database, you remove the embeddings, you remove the retrieval  logic. The architecture simplifies down to getting the data and just well sending it to the model. So  that's reason number one.

05:06 Reason number two is the retrieval lottery. Now, RAG introduces a critical  point of failure here, the retrieval step itself, because when a user asks a question, RAG looks at  mathematical representations of the data, which are stored in vectors. And vectors are basically  just like a really long series of numbers in an array. And it tries to find the closest  match.

05:37 That's semantic search. But semantic search is probabilistic and for all manner of  reasons, the retrieval might fail to find the relevant document. And we actually have a name  for this. It's called silent failure. The answer, well, it existed in the data, but the LLM never  saw it because the retrieval step didn't return the right results. With long context, there is no  retrieval step.

06:01 The model gets to see everything. Now, reason number three that is well, I think  we're going to call this the whole book problem. A RAG is fundamentally designed to retrieve  what exists. It relies on finding a semantic match between your query and a specific snippet  of text in your database. But what if the answer lies in what's not in the database?

06:27 So, so let's  say you have a set of product requirements stored as a document and you've also got a set of release  notes stored as a document and then we ask which security requirements were omitted from the final  release. Now using RAG when you query for omitted security requirements the vector search looks for  chunks discussing well security and requirements.

06:57 It retrieves snippets from the requirements doc.  It retrieves snippets from the release notes, but it cannot retrieve the gap between them. And  because RAG only shows the model a few isolated snapshots, the model never sees the full picture  required to spot the missing pieces. The model really needs both of these documents in full to  perform the comparison, which is exactly what long context does by dumping the whole book, the  full requirements doc and the full release notes into the context window.

07:28 So, is RAG dead? Is the  vector database destined for the museum of things we needed in 2024? Well, not quite because while  long context wins on simplicity, RAG still has a place. And I got another three reasons to support  that. So, reason number one is the rereading text. Now, long context creates a massive compute  inefficiency. So, if we take a manual, let's say this is like a a 500 page manual, and we've got to  turn this into tokens.

07:59 Well, that's something like 250k of tokens. And we need to do that every time  we make a user query and we put this document in the prompt. You're basically requiring the model  to process that manual every time. Now, RAG also has to process that manual, but it only pays that  processing cost once at indexing time. Now, prompt caching that can partially offset some of this for  static data, but for dynamic data streams where content changes frequently, you are stuck paying  the full tax on every request.

08:36 Reason number two is the needle in the haystack problem. Now,  there's a an intuitive assumption that if data is in the context window, the model's probably  going to use it, but research suggests otherwise. Because as we start with a context window and then  it grows and it continues to grow and now we're at like 500,000 tokens, well, the model's attention  mechanism can get a bit diluted.

09:06 If you ask a specific question about a single paragraph that's  buried in, let's say, the middle of a 2,000 page document, well, the model often fails to retrieve  it or it hallucinates details from the surrounding text. But with RAG, we're giving the model less  noise. So by retrieving, say only the top five relevant chunks, RAG has removed the haystack  and presents the model with just the needles.

09:42 It forces the model to focus on the signal and  not the noise. And then reason number three, well that is the infinite data set. Now a context  window of millions of tokens sounds great but in the scheme of enterprise data that's really just a  drop in the bucket. I mean an enterprise data lake that's probably measured in terabytes or or maybe  even petabytes.

10:05 So if you want an infinite data set that stores everything, you really do need to  have a retrieval layer to filter information down to something that fits into the LLM context  window. So where does this leave us? Well, if your problem involves a bounded data set and  requires complex global reasoning like analyzing a specific legal contract or summarizing a book, I  think long context is the way to go.

10:30 It simplifies the stack and it improves the reasoning. But  if you're navigating the infinite data set of enterprise knowledge, the vector database remains  the only viable warehouse for your data. But how about you? Are you team long context, team RAG,  maybe a bit of both? Let me know in the comments.

💡 Answer

RAG is still needed for large-scale or frequently changing enterprise data, while long context is better for bounded datasets requiring full-document reasoning.

🧠 AI Summary

RAG is not dead. Long context is preferable for bounded datasets that require complex global reasoning because it removes chunking, embeddings, vector databases, reranking, and retrieval failures. RAG remains necessary for massive or changing enterprise datasets because it reduces processing costs, limits context noise, and filters data that cannot fit into an LLM context window.

🔑 Key Points

  • LLMs are frozen at their training cutoff and do not automatically know recent events or private data.
  • RAG chunks documents, embeds the chunks as vectors, stores them in a vector database, and retrieves relevant chunks for each query.
  • Long context places documents directly into the context window and lets the model's attention mechanism find the answer.
  • Long context simplifies infrastructure and supports comparisons across complete documents.
  • RAG can fail silently when semantic retrieval misses the relevant information.
  • Long context repeatedly processes large documents, while RAG pays the main processing cost during indexing.
  • Large contexts can dilute attention and cause models to miss or hallucinate details buried in long documents.
  • RAG remains the viable way to filter enterprise data lakes measured in terabytes or petabytes into a usable context window.

✅ Actionable items

  • Use long context for bounded datasets such as a specific legal contract, a book, or a complete set of related documents requiring global reasoning.
  • Use RAG when navigating enterprise knowledge that exceeds the model's context window.
  • For RAG, chunk source documents, embed the chunks, store the vectors in a vector database, perform semantic search, and inject the retrieved chunks into the prompt.
  • Use prompt caching to partially offset repeated processing costs for static long-context data.

🧭 Frameworks

Long context versus RAG decision framework10:25
  1. Determine whether the dataset is bounded or effectively infinite.
  2. Determine whether the task requires complex reasoning across complete documents.
  3. Choose long context for bounded datasets requiring global reasoning.
  4. Choose RAG for enterprise-scale data that cannot fit into the context window.

🧰 Tools & AI usage

  • Embedding model — Convert document chunks into vectors for retrieval01:19
  • Vector database — Store document vectors and support semantic search01:27
  • Reranker — Sort retrieved results in a RAG system04:39
  • Prompt caching — Partially offset repeated processing costs for static data08:30

AI is used for

  • Answering questions using injected documents — Provide an LLM with recent, private, or proprietary information that is absent from its training data00:00
  • Comparing complete documents — Perform global reasoning such as identifying security requirements omitted from release notes06:15

📊 Numbers mentioned

Costs

  • Long context processes large documents on every user query.
  • RAG pays the document processing cost once at indexing time.
  • Dynamic data streams require the full processing cost on every long-context request.

Growth

  • Early LLMs had context windows of about 4K tokens.
  • Some current models have context windows of 1 million tokens plus.
  • 1 million tokens is roughly 700,000 words.
  • A 500-page manual is described as approximately 250k tokens.
  • A context of 500,000 tokens can dilute the model's attention.

⚖️ Advantages, risks & lessons

Advantages

  • Long context removes the embedding, vector database, and retrieval layers.
  • Long context lets the model see complete documents for cross-document comparisons.
  • RAG reduces noise by presenting only the most relevant chunks.
  • RAG scales beyond the context window by filtering large enterprise datasets.

Risks

  • RAG retrieval can silently fail when semantic search does not return the relevant document.
  • Long context can repeatedly incur large processing costs.
  • Attention can become diluted in very large contexts.
  • Long-context models may miss or hallucinate details buried in lengthy documents.
  • RAG may miss gaps or omissions that are not represented by a directly retrievable text snippet.

Lessons

  • The choice between RAG and long context depends on dataset size, data volatility, and reasoning requirements.
  • Long context is simpler but does not eliminate the need for retrieval at enterprise scale.
  • RAG is useful both for scaling access to large datasets and for reducing irrelevant context.

💬 Quotes

The architecture simplifies down to getting the data and just well sending it to the model.

Concise description of the infrastructure advantage of long context05:06

The answer, well, it existed in the data, but the LLM never saw it because the retrieval step didn't return the right results.

Defines silent failure in RAG05:48

If your problem involves a bounded data set and requires complex global reasoning like analyzing a specific legal contract or summarizing a book, I think long context is the way to go.