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

HyPA-RAG:一种面向AI法律与政策应用的混合参数自适应检索增强生成系统

HyPA-RAG: A Hybrid Parameter Adaptive Retrieval-Augmented Generation System for AI Legal and Policy Applications

Holistic AI(整体人工智能公司);University College London(伦敦大学学院)

Rishi Kalra, Zekun Wu, Ayesha Gulley, Airlie Hilliard, Xin Guan, Adriano Koshiyama, Philip Treleaven

AI总结:

针对AI法律应用中LLM知识过时与幻觉问题,HyPA-RAG通过查询复杂度分类器、混合检索和定制评估框架,在LL144测试中提升了检索与响应质量。

摘要:

大型语言模型(LLMs)在AI法律与政策应用中面临局限性,原因在于知识过时、产生幻觉以及在复杂情境中推理能力不足。检索增强生成(RAG)系统通过引入外部知识来解决这些问题,但存在检索错误、上下文整合效果不佳以及运营成本高昂等缺陷。本文提出了混合参数自适应RAG(HyPA-RAG)系统,专为AI法律领域设计,并以纽约市地方法律第144条(LL144)作为测试案例。HyPA-RAG集成了一个查询复杂度分类器以实现参数自适应调整,一种结合稠密检索、稀疏检索和知识图谱方法的混合检索策略,以及一个包含定制化问题类型和评估指标的全面评估框架。在LL144上的测试表明,HyPA-RAG提升了检索准确性、响应忠实度和上下文精确度,为高风险法律与政策应用提供了稳健且适应性强的解决方案。

英文摘要:

Large Language Models (LLMs) face limitations in AI legal and policy applications due to outdated knowledge, hallucinations, and poor reasoning in complex contexts. Retrieval-Augmented Generation (RAG) systems address these issues by incorporating external knowledge, but suffer from retrieval errors, ineffective context integration, and high operational costs. This paper presents the Hybrid Parameter-Adaptive RAG (HyPA-RAG) system, designed for the AI legal domain, with NYC Local Law 144 (LL144) as the test case. HyPA-RAG integrates a query complexity classifier for adaptive parameter tuning, a hybrid retrieval approach combining dense, sparse, and knowledge graph methods, and a comprehensive evaluation framework with tailored question types and metrics. Testing on LL144 demonstrates that HyPA-RAG enhances retrieval accuracy, response fidelity, and contextual precision, offering a robust and adaptable solution for high-stakes legal and policy applications.

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

↑