Saved in:
Bibliographic Details
Main Authors: Pan, Xueli, van Ossenbruggen, Jacco, de Boer, Victor, Huang, Zhisheng
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2409.08820
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929710720614400
author Pan, Xueli
van Ossenbruggen, Jacco
de Boer, Victor
Huang, Zhisheng
author_facet Pan, Xueli
van Ossenbruggen, Jacco
de Boer, Victor
Huang, Zhisheng
contents Competency question (CQ) formulation is central to several ontology development and evaluation methodologies. Traditionally, the task of crafting these competency questions heavily relies on the effort of domain experts and knowledge engineers which is often time-consuming and labor-intensive. With the emergence of Large Language Models (LLMs), there arises the possibility to automate and enhance this process. Unlike other similar works which use existing ontologies or knowledge graphs as input to LLMs, we present a retrieval-augmented generation (RAG) approach that uses LLMs for the automatic generation of CQs given a set of scientific papers considered to be a domain knowledge base. We investigate its performance and specifically, we study the impact of different number of papers to the RAG and different temperature setting of the LLM. We conduct experiments using GPT-4 on two domain ontology engineering tasks and compare results against ground-truth CQs constructed by domain experts. Empirical assessments on the results, utilizing evaluation metrics (precision and consistency), reveal that compared to zero-shot prompting, adding relevant domain knowledge to the RAG improves the performance of LLMs on generating CQs for concrete ontology engineering tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2409_08820
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A RAG Approach for Generating Competency Questions in Ontology Engineering
Pan, Xueli
van Ossenbruggen, Jacco
de Boer, Victor
Huang, Zhisheng
Artificial Intelligence
Competency question (CQ) formulation is central to several ontology development and evaluation methodologies. Traditionally, the task of crafting these competency questions heavily relies on the effort of domain experts and knowledge engineers which is often time-consuming and labor-intensive. With the emergence of Large Language Models (LLMs), there arises the possibility to automate and enhance this process. Unlike other similar works which use existing ontologies or knowledge graphs as input to LLMs, we present a retrieval-augmented generation (RAG) approach that uses LLMs for the automatic generation of CQs given a set of scientific papers considered to be a domain knowledge base. We investigate its performance and specifically, we study the impact of different number of papers to the RAG and different temperature setting of the LLM. We conduct experiments using GPT-4 on two domain ontology engineering tasks and compare results against ground-truth CQs constructed by domain experts. Empirical assessments on the results, utilizing evaluation metrics (precision and consistency), reveal that compared to zero-shot prompting, adding relevant domain knowledge to the RAG improves the performance of LLMs on generating CQs for concrete ontology engineering tasks.
title A RAG Approach for Generating Competency Questions in Ontology Engineering
topic Artificial Intelligence
url https://arxiv.org/abs/2409.08820