arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2408.10343cs.AI
收藏

LegalBench-RAG:面向法律领域的检索增强生成基准

LegalBench-RAG: A Benchmark for Retrieval-Augmented Generation in the Legal Domain

ZeroEntropy(零熵公司)

Nicholas Pipitone, Ghita Houir Alami

AI总结:

针对法律领域RAG系统检索评估的空白,提出首个专门基准LegalBench-RAG,含6,858个人工标注查询-答案对,强调精确检索以提升性能与可引用性。

摘要:

检索增强生成(RAG)系统展现出巨大的应用潜力,在人工智能驱动的法律应用中日益重要。现有的基准测试(如LegalBench)评估了大型语言模型(LLM)在法律领域的生成能力,但在评估RAG系统的检索组件方面存在关键空白。为解决这一问题,我们推出了LegalBench-RAG,这是首个专门用于评估法律领域RAG流水线中检索步骤的基准。LegalBench-RAG强调精确检索,专注于从法律文档中提取最小、高度相关的文本片段。这些高相关性的片段优于检索文档ID或大段不精确的文本块,因为后两者都可能超出上下文窗口限制。长上下文窗口处理成本更高,导致更高延迟,并使LLM遗忘或产生幻觉信息。此外,精确的检索结果使LLM能够为最终用户生成引用。LegalBench-RAG基准通过将LegalBench查询中使用的上下文追溯至其在法律语料库中的原始位置来构建,生成了一个包含6,858个查询-答案对的数据集,语料库超过7900万字符,全部由法律专家进行人工标注。我们还推出了LegalBench-RAG-mini,一个用于快速迭代和实验的轻量级版本。通过提供专门的法律检索基准,LegalBench-RAG成为公司和研究人员提升法律领域RAG系统准确性和性能的关键工具。LegalBench-RAG数据集可在https://github.com/zeroentropy-cc/legalbenchrag公开获取。

英文摘要:

Retrieval-Augmented Generation (RAG) systems are showing promising potential, and are becoming increasingly relevant in AI-powered legal applications. Existing benchmarks, such as LegalBench, assess the generative capabilities of Large Language Models (LLMs) in the legal domain, but there is a critical gap in evaluating the retrieval component of RAG systems. To address this, we introduce LegalBench-RAG, the first benchmark specifically designed to evaluate the retrieval step of RAG pipelines within the legal space. LegalBench-RAG emphasizes precise retrieval by focusing on extracting minimal, highly relevant text segments from legal documents. These highly relevant snippets are preferred over retrieving document IDs, or large sequences of imprecise chunks, both of which can exceed context window limitations. Long context windows cost more to process, induce higher latency, and lead LLMs to forget or hallucinate information. Additionally, precise results allow LLMs to generate citations for the end user. The LegalBench-RAG benchmark is constructed by retracing the context used in LegalBench queries back to their original locations within the legal corpus, resulting in a dataset of 6,858 query-answer pairs over a corpus of over 79M characters, entirely human-annotated by legal experts. We also introduce LegalBench-RAG-mini, a lightweight version for rapid iteration and experimentation. By providing a dedicated benchmark for legal retrieval, LegalBench-RAG serves as a critical tool for companies and researchers focused on enhancing the accuracy and performance of RAG systems in the legal domain. The LegalBench-RAG dataset is publicly available at https://github.com/zeroentropy-cc/legalbenchrag.

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

↑