A Hybrid RAG-LLaMA Framework for Scalable and Accurate Interpretation of Legal Texts

Interpreting Indian tax law is challenging due to frequent legislative amendments, complex statutory structures, and the requirement for precise citation. This paper presents TaxFlow, a domain-specific legal assistant that integrates a hybrid Retrieval-Augmented Generation (RAG) framework with the LLaMA-3 language model for statutory question answering. The system is trained on a curated corpus of Indian tax statutes, government gazettes, and case law, processed through structured extraction, segmentation, and dense–sparse indexing. TaxFlow incorporates temporal validity filtering to ensure that retrieved provisions reflect the legally effective version at query time. The architecture combines FAISS-based retrieval, legal-domain adapters, and critique-driven generation to reduce hallucinations and improve citation fidelity. Evaluation is conducted on a unified Indian tax law benchmark using automatic metrics. Experimental results show that TaxFlow achieves 96.5% accuracy and a 95.0% F1-score, demonstrating consistent and substantial improvements over representative baseline systems, while BLEU and ROUGE-L scores demonstrate significant improvements in linguistic quality. The findings confirm the effectiveness of domain-adapted hybrid RAG systems for reliable and scalable legal assistance.

Authors

Institutions

Publication Details

Journal
Applied Artificial Intelligence
Published
2026-02-05
DOI
https://doi.org/10.1080/08839514.2026.2626097
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Hybrid RAG-LLaMA Framework for Scalable and Accurate Interpretation of Legal Texts

Harshitha Vibhu N V, M Manasa, M. S. Neethu, Rajesh R M et al.
Applied Artificial Intelligence
Topic Modeling
article

A Hybrid RAG-LLaMA Framework for Scalable and Accurate Interpretation of Legal Texts

Harshitha Vibhu N V, M Manasa, M. S. Neethu, Rajesh R M, B Sathish Babu, Viswavardhan Reddy Karna
article en

Abstract

Interpreting Indian tax law is challenging due to frequent legislative amendments, complex statutory structures, and the requirement for precise citation. This paper presents TaxFlow, a domain-specific legal assistant that integrates a hybrid Retrieval-Augmented Generation (RAG) framework with the LLaMA-3 language model for statutory question answering. The system is trained on a curated corpus of Indian tax statutes, government gazettes, and case law, processed through structured extraction, segmentation, and dense–sparse indexing. TaxFlow incorporates temporal validity filtering to ensure that retrieved provisions reflect the legally effective version at query time. The architecture combines FAISS-based retrieval, legal-domain adapters, and critique-driven generation to reduce hallucinations and improve citation fidelity. Evaluation is conducted on a unified Indian tax law benchmark using automatic metrics. Experimental results show that TaxFlow achieves 96.5% accuracy and a 95.0% F1-score, demonstrating consistent and substantial improvements over representative baseline systems, while BLEU and ROUGE-L scores demonstrate significant improvements in linguistic quality. The findings confirm the effectiveness of domain-adapted hybrid RAG systems for reliable and scalable legal assistance.

Applied Artificial IntelligenceVol. 40(1)
Rock Valley College (US)
Peace, Justice and strong institutions
Openalex Percentile: Top 67%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Hybrid RAG-LLaMA Framework for Scalable and Accurate Interpretation of Legal Texts — Harshitha Vibhu N V, M Manasa, et al. · Applied Artificial Intelligence (2026) | TGRS Research Map | TGRS