RAGPerf:一种用于检索增强生成系统的端到端基准评估框架
RAGPerf: An End-to-End Benchmarking Framework for Retrieval-Augmented Generation Systems
AI总结:
RAGPerf是一个用于评估检索增强生成系统性能的端到端基准框架,支持多种数据集和模型,提供细粒度性能分析和自动化指标收集。
摘要:
我们提出了一个基于RAG的AI系统基准评估(RAGPerf)框架,用于表征RAG流水线系统的性能。为了便于详细分析和细粒度性能评估,RAGPerf将RAG工作流程分解为几个模块化组件——嵌入、索引、检索、重排序和生成。RAGPerf为用户提供配置每个组件核心参数的灵活性,并检查这些参数对端到端查询性能和质量的影响。RAGPerf具有工作负载生成器,通过支持多样化的数据集(例如文本、PDF、代码和音频)、不同的检索和更新比例以及查询分布来建模现实场景。RAGPerf还支持不同的嵌入模型、主要向量数据库(如LanceDB、Milvus、Qdrant、Chroma和Elasticsearch)以及不同的LLM用于内容生成。它自动化了性能指标(即端到端查询吞吐量、主机/GPU内存占用和CPU/GPU利用率)和准确性指标(即上下文召回、查询准确性和事实一致性)的收集。我们通过一组全面的实验展示了RAGPerf的能力,并将其代码库开源在GitHub上。我们的评估表明,RAGPerf带来的性能开销可以忽略不计。
英文摘要:
We present the design and implementation of a RAG-based AI system benchmarking (RAGPerf) framework for characterizing the system behaviors of RAG pipelines. To facilitate detailed profiling and fine-grained performance analysis, RAGPerf decouples the RAG workflow into several modular components - embedding, indexing, retrieval, reranking, and generation. RAGPerf offers the flexibility for users to configure the core parameters of each component and examine their impact on the end-to-end query performance and quality. RAGPerf has a workload generator to model real-world scenarios by supporting diverse datasets (e.g., text, pdf, code, and audio), different retrieval and update ratios, and query distributions. RAGPerf also supports different embedding models, major vector databases such as LanceDB, Milvus, Qdrant, Chroma, and Elasticsearch, as well as different LLMs for content generation. It automates the collection of performance metrics (i.e., end-to-end query throughput, host/GPU memory footprint, and CPU/GPU utilization) and accuracy metrics (i.e., context recall, query accuracy, and factual consistency). We demonstrate the capabilities of RAGPerf through a comprehensive set of experiments and open source its codebase at GitHub. Our evaluation shows that RAGPerf incurs negligible performance overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。