XRAG: eXamining the Core -- Benchmarking Foundational Components in Advanced Retrieval-Augmented Generation

Qianren Mao, Yangyifei Luo, Qili Zhang, Yashuo Luo, Zhilong Cao +13 more
12/20/2024
cs.CLcs.AI

No official code found. Best implementation: DocAILab/XRAG (803 stars, Apache-2.0, last commit 2026-03-13).

Abstract

Retrieval-augmented generation (RAG) synergizes the retrieval of pertinent data with the generative capabilities of Large Language Models (LLMs), ensuring that the generated output is not only contextually relevant but also accurate and current. We introduce XRAG, an open-source, modular codebase that facilitates exhaustive evaluation of the performance of foundational components of advanced RAG modules. These components are systematically categorized into four core phases: pre-retrieval, retrieval, post-retrieval, and generation. We systematically analyse them across reconfigured datasets, providing a comprehensive benchmark for their effectiveness. As the complexity of RAG systems continues to escalate, we underscore the critical need to identify potential failure points in RAG systems. We formulate a suite of experimental methodologies and diagnostic testing protocols to dissect the failure points inherent in RAG engineering. Subsequently, we proffer bespoke solutions aimed at bolstering the overall performance of these modules. Our work thoroughly evaluates the performance of advanced core components in RAG systems, providing insights into optimizations for prevalent failure points.

View on arXivView PDF

Code Implementations(1)

DocAILab/XRAGCommunity100%
Apache-2.0

XRAG: eXamining the Core - Benchmarking Foundational Component Modules in Advanced Retrieval-Augmented Generation

80320PythonSep 7, 20247 months agoApache-2.0
evaluationllamaindexllmrag

Similar Papers

Cite this paper

@article{mao2024xrag,
  title  = {XRAG: eXamining the Core -- Benchmarking Foundational Components in Advanced Retrieval-Augmented Generation},
  author = {Qianren Mao and Yangyifei Luo and Qili Zhang and Yashuo Luo and Zhilong Cao and Jinlong Zhang and HanWen Hao and Zhijun Chen and Weifeng Jiang and Junnan Liu and Xiaolong Wang and Zhenting Huang and Zhixing Tan and Sun Jie and Bo Li and Xudong Liu and Richong Zhang and Jianxin Li},
  year   = {2024},
  eprint = {2412.15529},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.15529v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.15529.svg)](https://codeofpaper.com/paper/2412.15529)

Discussion