Claim Missing Document
Check
Articles

Found 1 Documents
Search

HORNET-RAG: A Hybrid Retrieval-Augmented Generation Framework Integrating Horn Clause Reasoning for Treaty Question Answering Fikri Fadlillah; Eri Prasetyo Wibowo; Prihandoko Prihandoko; I Made Wiryana
Journal of Applied Data Sciences Vol 7, No 4: December 2026
Publisher : Bright Publisher

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.47738/jads.v7i4.1590

Abstract

The increasing use of large language models (LLMs) in legal question answering is constrained by hallucinations, unsupported statements, and the inability of conventional Retrieval-Augmented Generation (RAG) to capture the normative and logical relationships embedded in legal documents. This study aims to improve retrieval and answer reliability by introducing HORNET-RAG, a neuro-symbolic RAG framework that integrates dense semantic retrieval with Horn Clause reasoning for treaty question answering. The core idea and contribution are to operationalize Horn Clause inference as a candidate-level retrieval-control mechanism through logical filtering and logic-aware reranking, rather than using symbolic reasoning only as a downstream inference process. The framework was evaluated using 120 treaty documents containing 4,862 retrieval units and 250 legal queries, divided into 50 development and 200 held-out test queries. Experimental findings show that HORNET-RAG Filtering achieved the highest precision, with P@3 = 0.84 and P@5 = 0.78, representing improvements of 33.3% and 32.2%, respectively, over Naïve RAG. HORNET-RAG Reranking achieved P@3 = 0.81, R@3 = 0.88, and the highest nDCG@3 = 0.90, improving nDCG@3 by 25.0% over Naïve RAG. For answer quality, reranking achieved the highest Faithfulness score of 0.90, compared with 0.72 for Naïve RAG and 0.83 for Prolog-RAG, while filtering achieved the highest Context Precision of 0.84. Statistical validation confirmed significant improvements, including ΔP@3 = +0.210 for filtering and ΔnDCG@3 = +0.180 for reranking versus Naïve RAG (both adjusted p 0.001). The novelty of HORNET-RAG lies in moving Horn Clause reasoning into candidate selection and ranking, enabling logical evidence to directly shape the context supplied to the LLM and improving precision, ranking quality, and evidence-grounded answer generation.