arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.19710cs.IRcs.LG
收藏

了解你的检索增强生成(RAG):用于评估RAG系统的数据集分类法与生成策略

Know Your RAG: Dataset Taxonomy and Generation Strategies for Evaluating RAG Systems

IBM Research(IBM研究院)

Rafael Teixeira de Lima, Shubham Gupta, Cesar Berrospi, Lokesh Mishra, Michele Dolfi, Peter Staar, Panagiotis Vagenas

AI总结:

针对RAG系统性能评估中数据集的问题,提出基于标签表征和目标生成的解决方案,证明微调小型LLMs可高效生成数据集,助力系统开发的“了解你的数据”步骤。

摘要:

检索增强生成(RAG)系统是大型语言模型(LLMs)在工业界的广泛应用。虽然存在许多工具帮助开发者构建自己的系统,但使用能反映系统用例的数据集在本地测量其性能仍是一项技术挑战。该问题的解决方案从非特定且低成本(大多数公共数据集)到特定且高成本(从本地文档生成数据)不等。本文表明,使用公共问答(Q&A)数据集评估检索性能可能导致非最优的系统设计,而RAG数据集生成的常用工具可能导致数据不平衡。我们基于通过标签对RAG数据集的表征以及针对标签的数据生成,提出了这些问题的解决方案。最后,我们证明微调后的小型LLMs可以高效生成Q&A数据集。我们认为这些观察对RAG系统开发的“了解你的数据”步骤具有重要价值。

英文摘要:

Retrieval Augmented Generation (RAG) systems are a widespread application of Large Language Models (LLMs) in the industry. While many tools exist empowering developers to build their own systems, measuring their performance locally, with datasets reflective of the system's use cases, is a technological challenge. Solutions to this problem range from non-specific and cheap (most public datasets) to specific and costly (generating data from local documents). In this paper, we show that using public question and answer (Q&A) datasets to assess retrieval performance can lead to non-optimal systems design, and that common tools for RAG dataset generation can lead to unbalanced data. We propose solutions to these issues based on the characterization of RAG datasets through labels and through label-targeted data generation. Finally, we show that fine-tuned small LLMs can efficiently generate Q&A datasets. We believe that these observations are invaluable to the know-your-data step of RAG systems development.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑