Classic RAG Limitations Explained

Analytics Vidhya · Intermediate ·🔍 RAG & Vector Search ·3mo ago

Key Takeaways

Explains the limitations of classic RAG systems

Full Transcript

Welcome back. In this video, we are going to cover what is rag and where it breaks. By the end of this video, you will have a clear picture of how classic rack works and the exact point where it starts to fall apart. Let's start with the basics. What exactly is rag? Rack stands for retrieval augmented generation. It works in three steps. First, retriever. Find the most relevant content from your document based on the user's query. Second, augment. take that retrieved content and add it to LLM prompt as context. And third is generation. The LLM produces a grounded accurate answer using that context. That's the core idea. Simple and powerful. But as we will see, there are specific situations where this approach breaks down. Now let's look at how this actually works end to end. Your source documents, whether PDFs, web pages, or any text files, goes through a chunker that splits them into smaller pieces. Each chunk is passed through an embedding model that converts text into vectors. Those vectors are stored in vector store. When a user sends a query, it goes through the same embedding model. The retriever then searches the vector store for the most similar chunks. Those chunks are passed into LLM context window along with the original question and the LLM generates the final answer. This is the classic rag pipeline. Keep this flow in mind as we walk through where things go wrong. Before we critique rag, let's be fair about where it genuinely works well. Factual lookups from a fixed document set works great. If someone askked what is your refund policy and that answer sits cleanly in one document, Rag will find it. Single hop question answer over internal documents works well too. Questions like what does the contract say about termination have self-contained answer that rag handles reliably and rag does meaningfully reduce hallucination. The LLM now has real retrieved content to work from instead of guessing from training data alone. Rag is not broken. It is solid system for specific class of problems. The question is what happens when your queries get more complex? Here is the first failure mode multihop queries. Consider this question. Which researchers influence the methodology used in this paper and what institution are they affiliated with? What rack does is it retrieves the chunk closest to that query text maybe the abstract and stops there. It misses the citation chain entirely. What is actually needed is a chain of reasoning. Paper cites author Affiliated with institution X who also collaborated with author B. That is three hop of reasoning. Rag has no mechanism to chain reasoning across multiple documents or entities. It makes one retrieval jump not three. That is the core limitation here. The second failure mode is one of the most important. Rag has no awareness of relationship between entities. Take this query. How are company A and company B connected? What rag does? It searches for chunks containing both names and written co-occurrence. But co-occurrence is not connection. What is actually needed is a traversal. Company A acquired subsidiary X which was founded by person Y who sits on the board of company B. That chain of relationship does not live in any single chunk. It exists in the structure between documents in the edges between entities. Rag has no way to see that structure. It treats every chunk as an isolated island. The third failure mode is chunk loss and ambiguity. And this one is very common in practice. The chunking problem. The answer often sits across two chunks. The chunker splits at a fixed token count and neither chunk alone is useful. You lose the answer at the boundary. Now the ambiguity problem. Tell me about the Apple announcement. Which apple? Which announcement? Which air? Vector similarity retrieves whatever is the closest to that query, not what users actually meant. Rag has no disambiguation layer. It matches text not intent. These are not rare edge cases. They happen constantly in real world rack deployments. That wraps up video one. We now have a clear picture of what classic rack is, how it flows end to end, and three specific places where it breaks. Multihop queries, no relationship awareness and chunk loss with ambiguity. In the next video, we will see how graph rack is designed to solve all three. See you there.

Original Description

Description: In this video, you will get a deep understanding of how classic Retrieval-Augmented Generation (RAG) works and exactly where it fails in real-world applications. What you will learn: The complete classic RAG flow step by step What multi-hop query failures are and why they happen How chunk loss affects retrieval quality How ambiguity in queries breaks classic RAG systems Why these limitations make Graph RAG necessary This is the foundation you need before building any Graph RAG system. If you have ever wondered why your RAG chatbot gives wrong or incomplete answers, this video explains exactly why.
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Analytics Vidhya · Analytics Vidhya · 0 of 60

← Previous Next →
1 The DataHour: Data Science in Retail
The DataHour: Data Science in Retail
Analytics Vidhya
2 The DataHour: Anomaly detection using NLP and Predictive Modeling
The DataHour: Anomaly detection using NLP and Predictive Modeling
Analytics Vidhya
3 The DataHour: Energy Data Science Project from Scratch
The DataHour: Energy Data Science Project from Scratch
Analytics Vidhya
4 The DataHour: Explainable AI Need and Implementation
The DataHour: Explainable AI Need and Implementation
Analytics Vidhya
5 The DataHour: Google Cloud AI/ML
The DataHour: Google Cloud AI/ML
Analytics Vidhya
6 Prediction to Production in Machine Learning #machinelearning #prediction
Prediction to Production in Machine Learning #machinelearning #prediction
Analytics Vidhya
7 Practical Applications of Data science in Ecommerce
Practical Applications of Data science in Ecommerce
Analytics Vidhya
8 How to tackle Overfitting?#machinelearning #overfitting
How to tackle Overfitting?#machinelearning #overfitting
Analytics Vidhya
9 Building Data Pipelines on GCP #googlecloud #datapipelines #data
Building Data Pipelines on GCP #googlecloud #datapipelines #data
Analytics Vidhya
10 Hands-on with A/B Testing #abtesting #datascience
Hands-on with A/B Testing #abtesting #datascience
Analytics Vidhya
11 Efficient Implementations of Transformers #transformers #cnn  #machinelearning
Efficient Implementations of Transformers #transformers #cnn #machinelearning
Analytics Vidhya
12 Modern Deep Learning Architecture #deeplearning  #architecture #deeplearningtutorial
Modern Deep Learning Architecture #deeplearning #architecture #deeplearningtutorial
Analytics Vidhya
13 Key steps for Designing Artificial Neural Network (ANN) for Image classification #machinelearning
Key steps for Designing Artificial Neural Network (ANN) for Image classification #machinelearning
Analytics Vidhya
14 5 things you should know about Azure SQL #azure #sql #datahour #datascience
5 things you should know about Azure SQL #azure #sql #datahour #datascience
Analytics Vidhya
15 AI & ML in the Automotive Industry #machinelearning #ai
AI & ML in the Automotive Industry #machinelearning #ai
Analytics Vidhya
16 Building Machine Learning Models in BigQuery
Building Machine Learning Models in BigQuery
Analytics Vidhya
17 NLP aspects in Telecommunication Industry
NLP aspects in Telecommunication Industry
Analytics Vidhya
18 Practical Time Series Analysis
Practical Time Series Analysis
Analytics Vidhya
19 Fundamentals of Quantum Computing
Fundamentals of Quantum Computing
Analytics Vidhya
20 A DAY IN THE LIFE of a Data Scientist (From waking up to working on algorithms)
A DAY IN THE LIFE of a Data Scientist (From waking up to working on algorithms)
Analytics Vidhya
21 Classification Machine Learning Model from Scratch
Classification Machine Learning Model from Scratch
Analytics Vidhya
22 Knowledge Graph Solutions using Neo4j
Knowledge Graph Solutions using Neo4j
Analytics Vidhya
23 Model Guesstimation (MLOps)
Model Guesstimation (MLOps)
Analytics Vidhya
24 ETL Pipelines in Google Cloud Platform
ETL Pipelines in Google Cloud Platform
Analytics Vidhya
25 Key steps for Designing Convolutional Neural Network(CNN) for Image Classification
Key steps for Designing Convolutional Neural Network(CNN) for Image Classification
Analytics Vidhya
26 Getting Started with AWS EC2 #amazon #aws
Getting Started with AWS EC2 #amazon #aws
Analytics Vidhya
27 How to Use Azure NLP and Graph Databases for Intelligent Knowledge Mining
How to Use Azure NLP and Graph Databases for Intelligent Knowledge Mining
Analytics Vidhya
28 Certified AI & ML BlackBelt Plus Program #shorts
Certified AI & ML BlackBelt Plus Program #shorts
Analytics Vidhya
29 Visualizing Data using Python #machinelearning #visualization #python
Visualizing Data using Python #machinelearning #visualization #python
Analytics Vidhya
30 DCNN for Machine RUL Prediction using Time-series Data #timeseries #machinelearning #datascience
DCNN for Machine RUL Prediction using Time-series Data #timeseries #machinelearning #datascience
Analytics Vidhya
31 M in ML stands for Math & Magic
M in ML stands for Math & Magic
Analytics Vidhya
32 An Unsupervised ML approach using Clustering
An Unsupervised ML approach using Clustering
Analytics Vidhya
33 Customizing Large Language Models GPT3 for Real-life Use Cases #gpt3 #datascience
Customizing Large Language Models GPT3 for Real-life Use Cases #gpt3 #datascience
Analytics Vidhya
34 Model Parameters vs Hyperparameters - Techniques in ML Engineering #machinelearning
Model Parameters vs Hyperparameters - Techniques in ML Engineering #machinelearning
Analytics Vidhya
35 Practical MLOps #mlops #datascience
Practical MLOps #mlops #datascience
Analytics Vidhya
36 Data Engineering with Databricks #dataengineering #databricks
Data Engineering with Databricks #dataengineering #databricks
Analytics Vidhya
37 Multi-Objective Optimisation
Multi-Objective Optimisation
Analytics Vidhya
38 When Airflow Meets Kubernetes
When Airflow Meets Kubernetes
Analytics Vidhya
39 AI in Banking
AI in Banking
Analytics Vidhya
40 Learn Convolutional Neural Network for Image Recognition
Learn Convolutional Neural Network for Image Recognition
Analytics Vidhya
41 Extracting Value from Data
Extracting Value from Data
Analytics Vidhya
42 How to measure Marketing Channel Effectiveness
How to measure Marketing Channel Effectiveness
Analytics Vidhya
43 Transforming Lives | Data Science Immersive Bootcamp
Transforming Lives | Data Science Immersive Bootcamp
Analytics Vidhya
44 Stock Market Analysis - AI driven approach
Stock Market Analysis - AI driven approach
Analytics Vidhya
45 Become a Data Engineering Professional in 2022 | Future Trends + Skills Required
Become a Data Engineering Professional in 2022 | Future Trends + Skills Required
Analytics Vidhya
46 Ensemble Techniques in Machine Learning #machinelearning #ensemble #datascience
Ensemble Techniques in Machine Learning #machinelearning #ensemble #datascience
Analytics Vidhya
47 The Power of Visualization | Tableau Full Course | Analytics Vidhya
The Power of Visualization | Tableau Full Course | Analytics Vidhya
Analytics Vidhya
48 Demand for Data Engineers is on the Rise | Data Engineer | Analytics Vidhya
Demand for Data Engineers is on the Rise | Data Engineer | Analytics Vidhya
Analytics Vidhya
49 Data Visualization in Data Science | DataHour | Analytics Vidhya
Data Visualization in Data Science | DataHour | Analytics Vidhya
Analytics Vidhya
50 Role of Optimization in Machine Learning & Deep Learning | DataHour | Analytics Vidhya
Role of Optimization in Machine Learning & Deep Learning | DataHour | Analytics Vidhya
Analytics Vidhya
51 Solving any Machine Learning Problem | Approach and Steps Involved
Solving any Machine Learning Problem | Approach and Steps Involved
Analytics Vidhya
52 Topic Modeling Explained with Implementation | Using LDA in Python | DataHour by Arpendu Ganguly
Topic Modeling Explained with Implementation | Using LDA in Python | DataHour by Arpendu Ganguly
Analytics Vidhya
53 Data Engineering in E-Commerce | The Best Case Study
Data Engineering in E-Commerce | The Best Case Study
Analytics Vidhya
54 Introduction to Classification using Azure Machine Learning | DataHour | Analytics Vidhya
Introduction to Classification using Azure Machine Learning | DataHour | Analytics Vidhya
Analytics Vidhya
55 Introduction to Federated Learning | DataHour | Analytics Vidhya
Introduction to Federated Learning | DataHour | Analytics Vidhya
Analytics Vidhya
56 Diffusion Models for Generative Arts | DataHour | Analytics Vidhya
Diffusion Models for Generative Arts | DataHour | Analytics Vidhya
Analytics Vidhya
57 Master Google Analytics in 1 Hour | DataHour | Analytics Vidhya
Master Google Analytics in 1 Hour | DataHour | Analytics Vidhya
Analytics Vidhya
58 Learn Hypothesis Testing | DataHour | Analytics Vidhya
Learn Hypothesis Testing | DataHour | Analytics Vidhya
Analytics Vidhya
59 A Practical Approach to Kaggle Competition | DataHour | Analytics Vidhya
A Practical Approach to Kaggle Competition | DataHour | Analytics Vidhya
Analytics Vidhya
60 Making AI work for Business | DataHour | Analytics Vidhya
Making AI work for Business | DataHour | Analytics Vidhya
Analytics Vidhya

Related Reads

📰
Building Trustworthy Production RAG Systems Through Continuous Evaluation
Learn to build trustworthy production RAG systems through continuous evaluation to catch retrieval failures and performance drift
Towards Data Science
📰
Most RAG Hallucinations Are Retrieval Failures: How the Retrieval Brick Decides What the Model Can Invent
Learn how RAG hallucinations are often caused by retrieval failures and how fixing retrieval can reduce model inventions
Towards Data Science
📰
Beyond Search: Building Knowledge Nexus — The Future of AI-Powered Enterprise Intelligence
Learn how to build an enterprise-grade RAG platform that turns static PDFs into an interactive Knowledge Graph, enabling AI-powered enterprise intelligence
Medium · Machine Learning
📰
From Documents to Intelligent Answers: Building a RAG Agent from Scratch & Lessons Learned
Learn to build a RAG agent from scratch and discover key lessons for creating intelligent answer systems
Dev.to · Sri Deevi
Up next
4. Indexing PDF using Vector + Semantic Search in Azure AI Search with Document Intelligence | Chunk
Dewiride Technologies
Watch →