RAGExplorer: A Visual Analytics System for the Comparative Diagnosis of RAG Systems
Haoyu Tian, Yingchaojie Feng, Zhen Wen, Haoxuan Li, Minfeng Zhu, Wei Chen
TL;DR
RAGExplorer addresses the challenge that Retrieval-Augmented Generation performance emerges from a complex, multi-component configuration space. It proposes a visual analytics workflow that moves from a holistic performance overview to interactive, hypothesis-driven, instance-level debugging, supported by quantitative metrics, hierarchical failure attribution, and comparative causal verification. The system comprises four coordinated views and enables side-by-side configuration comparisons to reveal causal failure patterns and context-driven explanations. Case studies and expert evaluations demonstrate that the approach uncovers non-obvious trade-offs and supports data-driven design decisions, highlighting a path toward robust, human-AI collaborative optimization of modular RAG systems.
Abstract
The advent of Retrieval-Augmented Generation (RAG) has significantly enhanced the ability of Large Language Models (LLMs) to produce factually accurate and up-to-date responses. However, the performance of a RAG system is not determined by a single component but emerges from a complex interplay of modular choices, such as embedding models and retrieval algorithms. This creates a vast and often opaque configuration space, making it challenging for developers to understand performance trade-offs and identify optimal designs. To address this challenge, we present RAGExplorer, a visual analytics system for the systematic comparison and diagnosis of RAG configurations. RAGExplorer guides users through a seamless macro-to-micro analytical workflow. Initially, it empowers developers to survey the performance landscape across numerous configurations, allowing for a high-level understanding of which design choices are most effective. For a deeper analysis, the system enables users to drill down into individual failure cases, investigate how differences in retrieved information contribute to errors, and interactively test hypotheses by manipulating the provided context to observe the resulting impact on the generated answer. We demonstrate the effectiveness of RAGExplorer through detailed case studies and user studies, validating its ability to empower developers in navigating the complex RAG design space. Our code and user guide are publicly available at https://github.com/Thymezzz/RAGExplorer.
