Journal of Applied Data Sciences
Vol 7, No 4: December 2026

HORNET-RAG: A Hybrid Retrieval-Augmented Generation Framework Integrating Horn Clause Reasoning for Treaty Question Answering

Fikri Fadlillah (Gunadarma University)
Eri Prasetyo Wibowo (Unknown)
Prihandoko Prihandoko (Unknown)
I Made Wiryana (Unknown)



Article Info

Publish Date
18 Nov 2026

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.

Copyrights © 2026






Journal Info

Abbrev

JADS

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management

Description

One of the current hot topics in science is data: how can datasets be used in scientific and scholarly research in a more reliable, citable and accountable way? Data is of paramount importance to scientific progress, yet most research data remains private. Enhancing the transparency of the processes ...