cs.AIOct 26, 2026

OA-RAG: Ontology-based Agentic RAG for Faithful LLM Reasoning

Authors: Hui Yang, Jiaoyan Chen, Yongsheng Gao

Organizations: The University of Manchester, Manchester, United Kingdom · SNOMED International, London, United Kingdom

Abstract

Large language models (LLMs) perform well across many real-world tasks but remain prone to hallucination, limiting their reliability in domains such as biomedicine and healthcare, where answers must be grounded in established knowledge. Retrieval-augmented generation (RAG) mitigates this problem by incorporating external information, but often overlooks logical relationships and relies heavily on the LLM's own reasoning, which can compromise answer faithfulness. We propose OA-RAG, an agent that integrates formal reasoning with LLM reasoning, drawing on both the logical structure and informal annotations of domain ontologies. For each answer, OA-RAG reports the ontology observations used as evidence and a model-assessed grounding level (entailed, supported, related, or unrelated) that characterises the strength of that evidence. Across benchmarks derived from three large-scale ontologies and six real-world medical question-answering tasks, OA-RAG achieves the best overall performance among the evaluated ontology-fine-tuned and popular RAG methods, with particularly strong results on reasoning-intensive tasks. The reported grounding levels also offer a useful indication of answer reliability, with stronger grounding generally associated with higher accuracy. Finally, our results demonstrate the value of ontologies as knowledge sources: OA-RAG is competitive with, and sometimes outperforms, domain-specific RAG systems that draw on sources such as textbooks.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Reason and Verify: A Framework for Faithful Retrieval-Augmented Generation

    Mar 10, 2026Eeham Khan, Luis Rodriguez, Marc QueudotRAG Citation FaithfulnessRetrieval-Augmented Generation

  2. SEMA-RAG: A Self-Evolving Multi-Agent Retrieval-Augmented Generation Framework for Medical Reasoning

    May 16, 2026Yongfeng Huang, Ruiying Chen, James ChengRetrieval-Augmented GenerationHealthcare