RAGit:将文档预处理转化为RAG的实验变量
RAGit: Turning Document Preprocessing into an Experimental Variable for RAG
AI总结:
RAGit是开源RAG实验工作台,将文档预处理设为实验变量,支持多配置基准测试,可系统评估预处理对RAG检索的影响,已在GitHub公开。
摘要:
文档预处理选择会显著影响检索增强生成(Retrieval-Augmented Generation,RAG)流程中的检索效果,但这些选择通常是凭经验确定的,难以在一致条件下进行比较。我们提出RAGit,这是一个开源实验工作台,用于通过下游检索对文档预处理选择进行系统且可复现的评估。RAGit将解析、分块、索引、检索和评估表示为可配置的实验阶段,在保持其余下游设置固定的同时,实现受控比较。它保留了从检索分块到源页面的溯源信息,并将异构检索单元映射到通用页面级排名以进行评估。当前实现支持多种解析器和分块策略、密集检索与晚交互检索、可重用中间工件以及多配置基准测试。我们通过在固定检索设置下比较不同预处理配置的受控实验来演示RAGit,说明如何将预处理视为显式实验变量。RAGit及其文档可在GitHub(https://github.com/...)上公开获取,演示视频可在指定链接获取。
英文摘要:
Document preprocessing choices can substantially affect retrieval in Retrieval-Augmented Generation (RAG) pipelines, yet they are often selected heuristically and are difficult to compare under consistent conditions. We present RAGit, an open-source experimentation workbench for the systematic and reproducible evaluation of document preprocessing choices through downstream retrieval. RAGit represents parsing, chunking, indexing, retrieval, and evaluation as configurable experimental stages, enabling controlled comparisons while the remaining downstream settings are kept fixed. It preserves provenance from retrieved chunks to source pages and maps heterogeneous retrieval units to a common page-level ranking for evaluation. The current implementation supports multiple parsers and chunking strategies, dense and late-interaction retrieval, reusable intermediate artifacts, and multi-configuration benchmarking. We demonstrate RAGit through controlled experiments comparing alternative preprocessing configurations under a fixed retrieval setup, illustrating how preprocessing can be treated as an explicit experimental variable. RAGit and its documentation are publicly available on GitHub (https://github.com/OmarElbachyr/ragit). A demonstration video is available at https://youtu.be/tsst-Bhfz4I.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。