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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Kalra, Rishi, Wu, Zekun, Gulley, Ayesha, Hilliard, Airlie, Guan, Xin, Koshiyama, Adriano, Treleaven, Philip
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929730867953664
author Kalra, Rishi
Wu, Zekun
Gulley, Ayesha
Hilliard, Airlie
Guan, Xin
Koshiyama, Adriano
Treleaven, Philip
author_facet Kalra, Rishi
Wu, Zekun
Gulley, Ayesha
Hilliard, Airlie
Guan, Xin
Koshiyama, Adriano
Treleaven, Philip
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2409_09046
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle HyPA-RAG: A Hybrid Parameter Adaptive Retrieval-Augmented Generation System for AI Legal and Policy Applications
Kalra, Rishi
Wu, Zekun
Gulley, Ayesha
Hilliard, Airlie
Guan, Xin
Koshiyama, Adriano
Treleaven, Philip
Information Retrieval
Artificial Intelligence
Machine Learning
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.
title HyPA-RAG: A Hybrid Parameter Adaptive Retrieval-Augmented Generation System for AI Legal and Policy Applications
topic Information Retrieval
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2409.09046