Knowledge-Augmented Large Language Model Prompting for Cypher Query Construction

dc.contributor.authorKomecoglu, Başak Buluz
dc.contributor.authorYilmaz, Burcu
dc.date.accessioned2025-10-29T12:08:33Z
dc.date.issued2024
dc.departmentGebze Teknik Üniversitesi
dc.description9th International Conference on Computer Science and Engineering, UBMK 2024 -- Antalya -- 204906
dc.description.abstractWhile existing large language models demonstrate remarkable proficiency inn a turall a nguage processing tasks, their capacity for knowledge graph structuring remains a potential avenue for enhancement, particularly in the context of knowledge graph question answering. This paper presents a novel method for knowledge-enriched LLM routing for the construction of Cypher queries utilising knowledge graphs. It is proposed that the prompts of LLMs be enriched with knowledge by the addition of relevant triples taken from the knowledge graph. The proposed method facilitates the generation of more precise and pertinent Cypher queries by LLMs, thereby enhancing their question-answering capabilities. The method is evaluated using a story-based knowledge graph question answering dataset, which is introduced in this paper as a new contribution to the literature. The results demonstrate that the incorporation of knowledge enhances the performance of knowledge graph question answering (KGQA), particularly in the context of complex and temporal inquiries. Furthermore, the utilisation of a story graph structure for the modelling of events in news texts facilitates the effective resolution of complex questions by following the paths on the graph. Finally, it is demonstrated that the extraction of temporal labels and their incorporation into the knowledge graph is of paramount importance in answering temporal questions. © 2025 Elsevier B.V., All rights reserved.
dc.identifier.doi10.1109/UBMK63289.2024.10773450
dc.identifier.endpage192
dc.identifier.isbn9798350365887
dc.identifier.scopus2-s2.0-85215532421
dc.identifier.scopusqualityN/A
dc.identifier.startpage187
dc.identifier.urihttps://doi.org/10.1109/UBMK63289.2024.10773450
dc.identifier.urihttps://hdl.handle.net/20.500.14854/14565
dc.indekslendigikaynakScopus
dc.language.isoen
dc.publisherInstitute of Electrical and Electronics Engineers Inc.
dc.relation.publicationcategoryKonferans Öğesi - Uluslararası - Kurum Öğretim Elemanı
dc.rightsinfo:eu-repo/semantics/closedAccess
dc.snmzKA_Scopus_20251020
dc.subjectknowledge graph
dc.subjectlanguage model
dc.subjectnatural language processing
dc.subjectprompt engineering
dc.subjectquestion answering
dc.titleKnowledge-Augmented Large Language Model Prompting for Cypher Query Construction
dc.typeConference Object

Dosyalar