Seven Failure Points When Engineering a Retrieval Augmented Generation System
On the map: Retrieval-augmented generation → RAG pipeline design and evaluation
Abstract (arXiv)
Software engineers are increasingly adding semantic search capabilities to applications using a strategy known as Retrieval Augmented Generation (RAG). A RAG system involves finding documents that semantically match a query and then passing the documents to a large language model (LLM) such as ChatGPT to extract the right answer using an LLM. RAG systems aim to: a) reduce the problem of hallucinated responses from LLMs, b) link sources/references to generated responses, and c) remove the need for annotating documents with meta-data. However, RAG systems suffer from limitations inherent to information retrieval systems and from reliance on LLMs. In this paper, we present an experience report on the failure points of RAG systems from three case studies from separate domains: research, education, and biomedical. We share the lessons learned and present 7 failure points to consider when designing a RAG system. The two key takeaways arising from our work are: 1) validation of a RAG system is only feasible during operation, and 2) the robustness of a RAG system evolves rather than designed in at the start. We conclude with a list of potential research directions on RAG systems for the software engineering community.
Key facts. Cited by 138 papers in the map (data through 7 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 10 of its 21 references that are in the map. First posted on arXiv 11 Jan 2024.
Builds on
10 of 21 references.
Closest ancestors · 1
Same direction, newest first
Other references · 9
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022Robust Speech Recognition via Large-Scale Weak Supervisioncited by 3,972
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
- 2023Large Language Models for Information Retrieval: A Surveycited by 331
- 2023Benchmarking Large Language Models in Retrieval-Augmented Generationcited by 307
- 2022Improving the Domain Adaptation of Retrieval Augmented Generation (RAG) Models for Open Domain Question Answeringcited by 126
- 2020Beware the evolving 'intelligent' web service! An integration architecture tactic to guard AI-first componentscited by 3
- 2020Threshy: Supporting Safe Usage of Intelligent Web Servicescited by 3
Built on by
Citing papers per year: 2024: 39; 2025: 58; 2026: 41.
138 papers.
Sort:
By area:
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2024Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Toolscited by 170
- 2024Evaluation of Retrieval-Augmented Generation: A Surveycited by 146
- 2024Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?cited by 53
- 2024Knowledge Graphs Meet Multi-Modal Learning: A Comprehensive Surveycited by 50
- 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directionscited by 49
- 2024Financial Report Chunking for Effective Retrieval Augmented Generationcited by 46
- 2024TC-RAG:Turing-Complete RAG's Case study on Medical LLM Systemscited by 28
- 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontierscited by 26
- 2024T-RAG: Lessons from the LLM Trenchescited by 23
- 2024ConfusedPilot: Confused Deputy Risks in RAG-based LLMscited by 22
- 2024HyPA-RAG: A Hybrid Parameter Adaptive Retrieval-Augmented Generation System for AI Legal and Policy Applicationscited by 22
38 more
- 2026A Survey on Long-Term Memory Security in LLM Agents: Attacks, Defenses, and Governance Across the Memory Lifecyclecited by 21
- 2024When to Retrieve: Teaching LLMs to Utilize Information Retrieval Effectivelycited by 20
- 2025FinSage: A Multi-aspect RAG System for Financial Filings Question Answeringcited by 18
- 2024LRP4RAG: Detecting Hallucinations in Retrieval-Augmented Generation via Layer-wise Relevance Propagationcited by 17
- 2024FACTS About Building Retrieval Augmented Generation-based Chatbotscited by 15
- 2024AdapterSwap: Continuous Training of LLMs with Data Removal and Access-Control Guaranteescited by 14
- 2024Are LLMs Correctly Integrated into Software Systems?cited by 13
- 2025Towards Reliable Retrieval in RAG Systems for Large Legal Datasetscited by 12
- 2024Dialectical Alignment: Resolving the Tension of 3H and Security Threats of LLMscited by 11
- 2024CommunityKG-RAG: Leveraging Community Structures in Knowledge Graphs for Advanced Retrieval-Augmented Generation in Fact-Checkingcited by 11
- 2025Visual RAG: Expanding MLLM visual knowledge without fine-tuningcited by 11
- 2024Generating Test Scenarios from NL Requirements using Retrieval-Augmented LLMs: An Industrial Studycited by 9
- 2024RE-Adapt: Reverse Engineered Adaptation of Large Language Modelscited by 9
- 2025Towards Practical GraphRAG: Efficient Knowledge Graph Construction and Hybrid Retrieval at Scalecited by 9
- 2025Classifying and Addressing the Diversity of Errors in Retrieval-Augmented Generation Systemscited by 9
- 2024Incorporating External Knowledge and Goal Guidance for LLM-based Conversational Recommender Systemscited by 8
- 2024Introducing a new hyper-parameter for RAG: Context Window Utilizationcited by 8
- 2025Graph-Augmented Reasoning: Evolving Step-by-Step Knowledge Graph Retrieval for LLM Reasoningcited by 8
- 2026InfMem: Learning System-2 Memory Control for Long-Context Agentcited by 8
- 2024A RAG Approach for Generating Competency Questions in Ontology Engineeringcited by 7
- 2024RAGProbe: An Automated Approach for Evaluating RAG Applicationscited by 7
- 2024Optimizing and Evaluating Enterprise Retrieval-Augmented Generation (RAG): A Content Design Perspectivecited by 7
- 2024Understanding the Fundamental Design Decisions of Retrieval-Augmented Generation Systemscited by 7
- 2025A New HOPE: Domain-agnostic Automatic Evaluation of Text Chunkingcited by 7
- 2025GRADE: Generating multi-hop QA and fine-gRAined Difficulty matrix for RAG Evaluationcited by 7
- 2024CONFLARE: CONFormal LArge language model REtrievalcited by 6
- 2024Contrastive Learning to Improve Retrieval for Real-world Fact Checkingcited by 6
- 2024A Methodology for Evaluating RAG Systems: A Case Study On Configuration Dependency Validationcited by 6
- 2025RAGVA: Engineering Retrieval Augmented Generation-based Virtual Assistants in Practicecited by 6
- 2025Talk Before You Retrieve: Agent-Led Discussions for Better RAG in Medical QAcited by 6
- 2025Automatic Dataset Generation for Knowledge Intensive Question Answering Taskscited by 6
- 2026Beyond Similarity: Trustworthy Memory Search for Personal AI Agentscited by 6
- 2024Development and Testing of a Novel Large Language Model-Based Clinical Decision Support Systems for Medication Safety in 12 Clinical Specialtiescited by 5
- 2024Fine-Tuning or Fine-Failing? Debunking Performance Myths in Large Language Modelscited by 5
- 2024RAG Foundry: A Framework for Enhancing LLMs for Retrieval Augmented Generationcited by 5
- 2024Recent Advances in Attack and Defense Approaches of Large Language Modelscited by 5
- 2025POQD: Performance-Oriented Query Decomposer for Multi-vector retrievalcited by 5
- 2025A Comprehensive Graph Framework for Question Answering with Mode-Seeking Preference Alignmentcited by 5
50 most cited of 138 All 138 (JSON)
- 2026Automated Extraction of Records of Processing Activities (RoPA) Using Hybrid RAG and Locally Deployed Large Language Models23 Sep 2026
- 2026UniK: Universal Knowledge Perception for Digital and Physical AI21 Sep 2026
- 2026Version- and Scope-Aware Question Answering over Normative Documents: A Deployed System and an End-to-End Evaluation at Production Scale16 Sep 2026
- 2026A Hierarchical Consistency Framework for Auditing Retrieval-Augmented Generation Systems7 Sep 2026
- 2026Checkpoints Are Not Enough: Trust Calibration in CoSLR, a Human-AI System for Systematic Literature Reviews5 Sep 2026
- 2026Co-Evolving Structured Knowledge and Reasoning in Language Models26 Aug 2026
- 2026The Illusion of Independent Quorums: Epistemic Fault Domains and Correlated Cognitive Failures in Agentic Quorums24 Aug 2026
- 2026When More Modalities Hurt: Modality Dropout for Heavy-Duty Vehicle Engine Diagnostics24 Aug 2026
- 2026post-graph-rag: A PostgreSQL-Native Bi-Temporal Graph RAG Engine with Temporal Grounding at Synthesis14 Aug 2026
- 2026QUBO-Optimized Evidence Selection for Retrieval-Augmented Question Answering with Unconventional Solvers14 Jul 2026
- 2026Enhancing LLMs through human feedback: a journey towards self-improvement13 Jul 2026
- 2026Memory-Orchestrated Semantic System (MOSS): An Auditable Agentic Memory Architecture5 Jul 2026
38 more
- 2026When More Documents Hurt RAG: Mitigating Vector Search Dilution with Domain-Scoped, Model-Agnostic Retrieval9 Jun 2026
- 2026Beyond Probabilistic Similarity: Structural, Temporal, and Causal Limitations of Retrieval-Augmented Generation in the Legal Domain8 Jun 2026
- 2026Analyzing the Correlation Between Hallucinations and Knowledge Conflicts in Large Language Models7 Jun 2026
- 2026Beyond Similarity: Trustworthy Memory Search for Personal AI Agents4 Jun 2026
- 2026Beyond Vector Similarity: A Structural Analysis of Graph-Augmented Retrieval for Industrial Knowledge Graphs4 Jun 2026
- 2026Executable Schema Contracts: From Automatic Ingestion to Multi-Source Retrieval3 Jun 2026
- 2026Separating Semantic Competition from Context Length in RAG Reading26 May 2026
- 2026Beyond Scaling: Agents Are Heading to the Edge18 May 2026
- 2026Metacognition Should Be the Scientific Framework for Bounded and Effective Self-Governance in Generative AI13 May 2026
- 2026SemChunk-C: Semantic Segmentation for C Code12 May 2026
- 2026The Interference Gap: Comparing Retrieval Bounds in Human Memory and RAG Systems9 May 2026
- 2026Reliable AI Needs to Externalize Implicit Knowledge: A Human-AI Collaboration Perspective3 May 2026
- 2026Budget-Constrained Online Retrieval-Augmented Generation: The Chunk-as-a-Service Model28 Apr 2026
- 2026Faithfulness-QA: A Counterfactual Entity Substitution Dataset for Training Context-Faithful RAG Models28 Apr 2026
- 2026Knowledge Capsules: Structured Nonparametric Memory Units for LLMs22 Apr 2026
- 2026Semantic Entanglement in Vector-Based Retrieval: A Formal Framework and Context-Conditioned Disentanglement Pipeline for Agentic RAG Systems20 Apr 2026
- 2026A Survey on Long-Term Memory Security in LLM Agents: Attacks, Defenses, and Governance Across the Memory Lifecycle17 Apr 2026
- 2026Controlling Authority Retrieval: A Missing Retrieval Objective for Authority-Governed Knowledge15 Apr 2026
- 2026When Verification Fails: How Compositionally Infeasible Claims Escape Rejection13 Apr 2026
- 2026AV-SQL: Decomposing Complex Text-to-SQL Queries with Agentic Views8 Apr 2026
- 2026Improving MPI Error Detection and Repair with Large Language Models and Bug References2 Apr 2026
- 2026LLM Readiness Harness: Evaluation, Observability, and CI Gates for LLM/RAG Applications28 Mar 2026
- 2026When Chain-of-Thought Backfires: Evaluating Prompt Sensitivity in Medical Language Models26 Mar 2026
- 2026Towards Cold-Start Drafting and Continual Refining: A Value-Driven Memory Approach with Application to NPU Kernel Synthesis11 Mar 2026
- 2026Understand Then Memory: A Cognitive Gist-Driven RAG Framework with Global Semantic Diffusion11 Feb 2026
- 2026InfMem: Learning System-2 Memory Control for Long-Context Agent2 Feb 2026
- 2026Why Does the LLM Stop Computing: An Empirical Study of User-Reported Failures in Open-Source LLMs20 Jan 2026
- 2026RAGExplorer: A Visual Analytics System for the Comparative Diagnosis of RAG Systems19 Jan 2026
- 2026VerifAI: A Verifiable Open-Source Search Engine for Biomedical Question Answering16 Jan 2026
- 2025M'as contexto no es mejor. Paradoja de la diluci'on vectorial en RAG corporativos23 Dec 2025
- 2025Collaborative QA using Interacting LLMs. Impact of Network Structure, Node Capability and Distributed Data18 Nov 2025
- 2025Making LLMs Reliable When It Matters Most: A Five-Layer Architecture for High-Stakes Decisions10 Nov 2025
- 2025A Decentralized Retrieval Augmented Generation System with Source Reliabilities Secured on Blockchain10 Nov 2025
- 2025GRAPH-GRPO-LEX: Contract Graph Modeling and Reinforcement Learning with Group Relative Policy Optimization10 Nov 2025
- 2025RAGalyst: Automated Human-Aligned Agentic Evaluation for Domain-Specific RAG6 Nov 2025
- 2025Adapting Large Language Models to Emerging Cybersecurity using Retrieval Augmented Generation31 Oct 2025
- 2025A Research Roadmap for Augmenting Software Engineering Processes and Software Products with Generative AI30 Oct 2025
- 2025The Narrative Continuity Test: A Conceptual Framework for Evaluating Identity Persistence in AI Systems28 Oct 2025
50 newest of 138 All 138 (JSON)
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2024Evaluation of Retrieval-Augmented Generation: A Surveycited by 146
- 2024Financial Report Chunking for Effective Retrieval Augmented Generationcited by 46
- 2024TC-RAG:Turing-Complete RAG's Case study on Medical LLM Systemscited by 28
- 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontierscited by 26
- 2024ConfusedPilot: Confused Deputy Risks in RAG-based LLMscited by 22
- 2024HyPA-RAG: A Hybrid Parameter Adaptive Retrieval-Augmented Generation System for AI Legal and Policy Applicationscited by 22
- 2025FinSage: A Multi-aspect RAG System for Financial Filings Question Answeringcited by 18
- 2024LRP4RAG: Detecting Hallucinations in Retrieval-Augmented Generation via Layer-wise Relevance Propagationcited by 17
- 2024FACTS About Building Retrieval Augmented Generation-based Chatbotscited by 15
- 2024Are LLMs Correctly Integrated into Software Systems?cited by 13
- 2025Towards Reliable Retrieval in RAG Systems for Large Legal Datasetscited by 12
12 most cited of 66 All 66 (JSON)
- 2026A Hierarchical Consistency Framework for Auditing Retrieval-Augmented Generation Systems7 Sep 2026
- 2026QUBO-Optimized Evidence Selection for Retrieval-Augmented Question Answering with Unconventional Solvers14 Jul 2026
- 2026Enhancing LLMs through human feedback: a journey towards self-improvement13 Jul 2026
- 2026When More Documents Hurt RAG: Mitigating Vector Search Dilution with Domain-Scoped, Model-Agnostic Retrieval9 Jun 2026
- 2026Beyond Probabilistic Similarity: Structural, Temporal, and Causal Limitations of Retrieval-Augmented Generation in the Legal Domain8 Jun 2026
- 2026Beyond Vector Similarity: A Structural Analysis of Graph-Augmented Retrieval for Industrial Knowledge Graphs4 Jun 2026
- 2026Separating Semantic Competition from Context Length in RAG Reading26 May 2026
- 2026The Interference Gap: Comparing Retrieval Bounds in Human Memory and RAG Systems9 May 2026
- 2026Budget-Constrained Online Retrieval-Augmented Generation: The Chunk-as-a-Service Model28 Apr 2026
- 2026Faithfulness-QA: A Counterfactual Entity Substitution Dataset for Training Context-Faithful RAG Models28 Apr 2026
- 2026Semantic Entanglement in Vector-Based Retrieval: A Formal Framework and Context-Conditioned Disentanglement Pipeline for Agentic RAG Systems20 Apr 2026
- 2026Understand Then Memory: A Cognitive Gist-Driven RAG Framework with Global Semantic Diffusion11 Feb 2026
12 newest of 66 All 66 (JSON)
- 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directionscited by 49
- 2026A Survey on Long-Term Memory Security in LLM Agents: Attacks, Defenses, and Governance Across the Memory Lifecyclecited by 21
- 2026Beyond Similarity: Trustworthy Memory Search for Personal AI Agentscited by 6
- 2026The Illusion of Independent Quorums: Epistemic Fault Domains and Correlated Cognitive Failures in Agentic Quorumscited by 2
- 2026AV-SQL: Decomposing Complex Text-to-SQL Queries with Agentic Viewscited by 1
- 2026Beyond Scaling: Agents Are Heading to the Edgecited by 1
- 2025Towards the "Digital Me": A vision of authentic Conversational Agents powered by personal Human Digital Twinscited by 0
- 2026Memory-Orchestrated Semantic System (MOSS): An Auditable Agentic Memory Architecturecited by 0
- 2026The Illusion of Independent Quorums: Epistemic Fault Domains and Correlated Cognitive Failures in Agentic Quorums24 Aug 2026
- 2026Memory-Orchestrated Semantic System (MOSS): An Auditable Agentic Memory Architecture5 Jul 2026
- 2026Beyond Similarity: Trustworthy Memory Search for Personal AI Agents4 Jun 2026
- 2026Beyond Scaling: Agents Are Heading to the Edge18 May 2026
- 2026A Survey on Long-Term Memory Security in LLM Agents: Attacks, Defenses, and Governance Across the Memory Lifecycle17 Apr 2026
- 2026AV-SQL: Decomposing Complex Text-to-SQL Queries with Agentic Views8 Apr 2026
- 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directions23 Sep 2025
- 2025Towards the "Digital Me": A vision of authentic Conversational Agents powered by personal Human Digital Twins30 Jun 2025
- 2025Graph-Augmented Reasoning: Evolving Step-by-Step Knowledge Graph Retrieval for LLM Reasoningcited by 8
- 2025How to Auto-optimize Prompts for Domain Tasks? Adaptive Prompting and Reasoning through Evolutionary Domain Knowledge Adaptationcited by 4
- 2025Causal-Counterfactual RAG: The Integration of Causal-Counterfactual Reasoning into RAGcited by 2
- 2025Domain-Specific Data Generation Framework for RAG Adaptationcited by 1
- 2025GRAPH-GRPO-LEX: Contract Graph Modeling and Reinforcement Learning with Group Relative Policy Optimizationcited by 1
- 2026When Chain-of-Thought Backfires: Evaluating Prompt Sensitivity in Medical Language Modelscited by 1
- 2025ReCellTy: Domain-Specific Knowledge Graph Retrieval-Augmented LLMs Reasoning Workflow for Single-Cell Annotationcited by 0
- 2026Co-Evolving Structured Knowledge and Reasoning in Language Modelscited by 0
- 2026Co-Evolving Structured Knowledge and Reasoning in Language Models26 Aug 2026
- 2026When Chain-of-Thought Backfires: Evaluating Prompt Sensitivity in Medical Language Models26 Mar 2026
- 2025GRAPH-GRPO-LEX: Contract Graph Modeling and Reinforcement Learning with Group Relative Policy Optimization10 Nov 2025
- 2025How to Auto-optimize Prompts for Domain Tasks? Adaptive Prompting and Reasoning through Evolutionary Domain Knowledge Adaptation24 Oct 2025
- 2025Domain-Specific Data Generation Framework for RAG Adaptation13 Oct 2025
- 2025Causal-Counterfactual RAG: The Integration of Causal-Counterfactual Reasoning into RAG17 Sep 2025
- 2025ReCellTy: Domain-Specific Knowledge Graph Retrieval-Augmented LLMs Reasoning Workflow for Single-Cell Annotation24 Apr 2025
- 2025Graph-Augmented Reasoning: Evolving Step-by-Step Knowledge Graph Retrieval for LLM Reasoning3 Mar 2025
- 2025Can we Evaluate RAGs with Synthetic Data?cited by 2
- 2025Can we Evaluate RAGs with Synthetic Data?15 Aug 2025
- 2024Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Toolscited by 170
- 2024Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?cited by 53
- 2024Knowledge Graphs Meet Multi-Modal Learning: A Comprehensive Surveycited by 50
- 2024T-RAG: Lessons from the LLM Trenchescited by 23
- 2024When to Retrieve: Teaching LLMs to Utilize Information Retrieval Effectivelycited by 20
- 2024AdapterSwap: Continuous Training of LLMs with Data Removal and Access-Control Guaranteescited by 14
- 2024RE-Adapt: Reverse Engineered Adaptation of Large Language Modelscited by 9
- 2024Incorporating External Knowledge and Goal Guidance for LLM-based Conversational Recommender Systemscited by 8
- 2026InfMem: Learning System-2 Memory Control for Long-Context Agentcited by 8
- 2024Contrastive Learning to Improve Retrieval for Real-world Fact Checkingcited by 6
- 2025Automatic Dataset Generation for Knowledge Intensive Question Answering Taskscited by 6
- 2024Recent Advances in Attack and Defense Approaches of Large Language Modelscited by 5
12 most cited of 53 All 53 (JSON)
- 2026Automated Extraction of Records of Processing Activities (RoPA) Using Hybrid RAG and Locally Deployed Large Language Models23 Sep 2026
- 2026UniK: Universal Knowledge Perception for Digital and Physical AI21 Sep 2026
- 2026Version- and Scope-Aware Question Answering over Normative Documents: A Deployed System and an End-to-End Evaluation at Production Scale16 Sep 2026
- 2026Checkpoints Are Not Enough: Trust Calibration in CoSLR, a Human-AI System for Systematic Literature Reviews5 Sep 2026
- 2026When More Modalities Hurt: Modality Dropout for Heavy-Duty Vehicle Engine Diagnostics24 Aug 2026
- 2026post-graph-rag: A PostgreSQL-Native Bi-Temporal Graph RAG Engine with Temporal Grounding at Synthesis14 Aug 2026
- 2026Analyzing the Correlation Between Hallucinations and Knowledge Conflicts in Large Language Models7 Jun 2026
- 2026Executable Schema Contracts: From Automatic Ingestion to Multi-Source Retrieval3 Jun 2026
- 2026Metacognition Should Be the Scientific Framework for Bounded and Effective Self-Governance in Generative AI13 May 2026
- 2026SemChunk-C: Semantic Segmentation for C Code12 May 2026
- 2026Reliable AI Needs to Externalize Implicit Knowledge: A Human-AI Collaboration Perspective3 May 2026
- 2026Knowledge Capsules: Structured Nonparametric Memory Units for LLMs22 Apr 2026
12 newest of 53 All 53 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Retrieval Augmented Generation Evaluation in the Era of Large Language Models: A Comprehensive Survey
- 2024Know Your RAG: Dataset Taxonomy and Generation Strategies for Evaluating RAG Systems
- 2024RAG Does Not Work for Enterprises
- 2025A Systematic Review of Key Retrieval-Augmented Generation (RAG) Systems: Progress, Gaps, and Future Directions
- 2024Semantic Tokens in Retrieval Augmented Generation
- 2025Retrieval-Augmented Generation in Industry: An Interview Study on Use Cases, Requirements, Challenges, and Evaluation
- 2024A Comprehensive Survey of Retrieval-Augmented Generation (RAG): Evolution, Current Landscape and Future Directions
- 2025Towards Trustworthy Retrieval Augmented Generation for Large Language Models: A Survey