EconPapers    
Economics at your fingertips  
 

Enhancement Large Language Models Domain Through Ontology-Based Retrieval-Augmented Generation

Fabio Clarizia, Massimo De Santo, Rosario Gaeta and Rocco Loffredo
Additional contact information
Fabio Clarizia: University of Salerno, Italy
Massimo De Santo: University of Salerno, Italy
Rosario Gaeta: University of Salerno, Italy
Rocco Loffredo: University of Salerno, Italy

International Journal on Semantic Web and Information Systems (IJSWIS), 2025, vol. 21, issue 1, 1-29

Abstract: Large Language Models (LLMs) show strong performance in natural language tasks but are prone to hallucinations, limiting reliability in knowledge-intensive fields such as cultural heritage. This paper presents an Ontology-Based Retrieval-Augmented Generation (OB-RAG) framework that embeds subject–predicate–object triples from domain ontologies into a vector space, retrieving relevant knowledge via semantic search to ground LLM outputs. Unlike traditional RAG using unstructured text, the framework integrates manually and semiautomatically generated ontologies for explicit contextual grounding. A cultural heritage case study illustrates implementation and evaluation. Performance is assessed with quantitative metrics (Faithfulness and Answer Relevancy) and expert validation. Results show the OB prototype outperforms baseline LLMs, reducing hallucinations and improving factual accuracy and contextual alignment. The study offers both an architectural framework and empirical evidence that ontology-based RAG strengthens trustworthiness and user acceptance of LLMs in specialized domains.

Date: 2025
References: Add references at CitEc
Citations:

Downloads: (external link)
https://services.igi-global.com/resolvedoi/resolve ... 0.4018/IJSWIS.392507 (application/pdf)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:igg:jswis0:v:21:y:2025:i:1:p:1-29

Access Statistics for this article

International Journal on Semantic Web and Information Systems (IJSWIS) is currently edited by Brij Gupta

More articles in International Journal on Semantic Web and Information Systems (IJSWIS) from IGI Global Scientific Publishing
Bibliographic data for series maintained by Journal Editor ().

 
Page updated 2025-12-13
Handle: RePEc:igg:jswis0:v:21:y:2025:i:1:p:1-29