Skip to content
Open access

A New Metadata-Aware Retrieval-Augmented Generation (RAG) Architecture for Trustworthy Legal Question Answering

2026 · International Journal of Advanced Computer Science and Applications · 0 citations · 35 references

TL;DR

The proposed architecture achieves double-digit improvements over a Naive RAG baseline across all four RAGAS metrics—Context Precision, Context Recall, Factual Correctness, and Faithfulness—with gains ranging from 13.10% to 28.15%; notably, Faithfulness surpasses 0.90 for Gemma-3-27B.

Abstract

Large Language Models (LLMs) offer strong capabilities for Natural Language Processing, yet their inherent uncertainty often produces hallucinations, confident but incorrect statements, which is critical in domains requiring precise knowledge representation. Retrieval-Augmented Generation (RAG) reduces this risk through information retrieval, but standard pipelines still suffer from fragmented context and weak alignment between queries and legal provisions, limiting trustworthy knowledge extraction. This study proposes a Metadata-Aware RAG architecture to improve grounding in large legal corpora. It integrates: 1) Sub-chunking with Legal Metadata Inheritance, which transforms unstructured legal PDFs into granular, metadata-rich fragments; and 2) an Adaptive Filter Creator, a pipeline that extracts structured constraints and compiles optimized hybrid retrieval queries. These components enhance semantic alignment, reduce uncertainty-driven hallucinations, and strengthen neural information retrieval. Using a curated Peruvian labor law corpus and 150 manually validated question–answer pairs, the system was evaluated across three LLMs (Llama-3.1-8B, GPT-OSS-20B, Gemma-3-27B). The proposed architecture achieves double-digit improvements over a Naive RAG baseline across all four RAGAS metrics—Context Precision, Context Recall, Factual Correctness, and Faithfulness—with gains ranging from 13.10% to 28.15%; notably, Faithfulness surpasses 0.90 for Gemma-3-27B. Statistical analysis confirms significance (t(11) = 15.49, p = 4.06 × 10−9) with an extremely large effect size (Cohen’s d = 4.47). Regression results show minimal influence of model size (slope < 0.005), indicating that retrieval design has a stronger influence than parameter count in the evaluated setting.

Read PDF

Similar papers

#generative ai Review Open access Oct 2026

A Survey on Retrieval-Augmented and Transformer-Based Approaches for Legal AI: Grounding, Reasoning, and Multilingual Outcome Prediction

Legal artificial intelligence (AI) systems increasingly draw on retrieval-augmented generation (RAG), transformerbased embeddings, multi-stage structured reasoning, and ensemble learning to support tasks such as legal question answering, legal judgment prediction, and multilingual outcome prediction. Hallucination, lim...

Neeraja R. A., Sherin Shaji, Devende M. R. et al. · 0 citations
Open access Aug 2026

Multi-Granular Demonstration Retrieval via Syntax-Derived Representations for Few-Shot NL2GQL

MGDR-SDR is proposed, a training-free approach that applies constituency parsing to derive three complementary representations of the utterance that drive a multi-granular retrieval procedure that aggregates evidence across dense and sparse channels, yielding broader and more precise demonstration coverage.

Tong Li, Zhi-Peng Du, Xinyu Hu et al. · 0 citations
#artificial intelligence Preprint Sep 2026

URA-NER: A Unified Retrieval-Augmented Framework with Retrieval Alignment and Uncertainty Reduction for Low-Resource NER

A novel unified retrieval-augmented framework, URA-NER, including three key components: Progressive Granularity Retrieval, Model-aware Representation Enhancement, and Reason-aware Knowledge Verification is proposed, including three key components: Progressive Granularity Retrieval, Model-aware Representation Enhancemen...

Jing-Yu Wang, Shijie Wu, Fu-Sheng Jin · 0 citations
Open access Sep 2026

PKSF: A Task-Aware Prior Knowledge Selection and Fusion Framework for TextVQA

This work proposes a TextVQA framework that integrates external prior knowledge to support multimodal reasoning and demonstrates that this approach effectively leverages external knowledge to improve performance on knowledge-intensive questions.

Zan-Xia Jin, Pin-Le Qin, Jia Qin et al. · 0 citations
Open access 2026

Effective Chunking for Retrieval-Augmented Generation over Structured Institutional Documents

Evaluating four chunking strategies for structured institutional RAG systems demonstrates that chunking strategies influence RAG objectives in distinct ways, with structure-aware chunking improving answer generation while semantic chunking more effectively preserving table integrity.

Siti Sarah Izhan Khalib, Abdul Hadi Abd Rahman, L. Zakaria · 0 citations
Preprint Aug 2026

W-RAG: Source-Aware Retrieval for Enterprise Document Generation from Heterogeneous Knowledge Bases

W-RAG is proposed, a source-aware retrieval framework that performs ontology-guided retrieval, local ranking within each knowledge base, and source-level weighting to regulate evidence composition to improve document coverage and generation quality.

Hridya Dhulipala, Rajesh Ombase, Michael Wang et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.