Configuring RAG Systems: What Breaks, Where Originates, and How to Fix
Organizations: University of Electronic Science and Technology of China, Chengdu, China · University of Birmingham, Birmingham, United Kingdom
Abstract
Retrieval-Augmented Generation (RAG) has emerged as a dominant paradigm for improving Large Language Model (LLM) by intertwining it with other components, such as a vector/graph database. Therefore, the resulting RAG systems are often highly configurable, under which a non-trivial amount of failures are related to the configurations. However, there remains a lack of systematic understanding regarding the configuration issues for RAG systems. To bridge this gap, in this paper, we conduct the first large-scale empirical study of 654 real-world configuration issues collected from 10 diverse RAG systems. Drawing on this, we provide a complete categorization of the symptoms, root causes, relevant stages, and fix patterns of configuration issues for RAG systems, as well as several new observations. Our findings not only reveal the characteristics of configuration issues, but also strongly link them to the unique pipeline stages of RAG, e.g., we found that most symptoms can be observed at the early or late stage, while the stage of the root cause might not be at the same stage as where the symptom is identified. We also provide nine actionable insights to the practitioners on testing, localizing, and fixing the configuration issues for RAG systems.
Figures & tables
| ID : Potential Issue in naive_merge_docx Function |
| Description (excerpt from the issue report): |
| …This can result in the first chunk being larger than intended, as there’s no proper size control for the initial chunk… |
| …The function initializes tk_nums = [0] and uses tk_nums[-1] > chunk_token_num as a condition for creating new chunks… Since (default 128), the first section is always added to the first chunk… |
Retrieval-Augmented Generation
Retrieval-augmented generation connects language models to external knowledge so answers can use current, domain-specific evidence.
See all 786 papers