Optimal Graph Model Schema Injection for Large Language Model-Generated Cypher Queries
DOI:
https://doi.org/10.64552/wipiec.v11i1.102Keywords:
graph database, software ecosystem, large language models, graph algorithmsAbstract
Platform ecosystems have transformed the way value is created in different industries. The data traces of such ecosystems are typically represented through graph models and databases. Retrieval of relevant data from such databases requires writing extensively complex queries to travers such complex networks to fetch and slice the correct sub-graphs corresponding to the original business inquiry. Advances in generative artificial intelligence, namely large language models (LLMs), can provide a no-code interface to such complex databases by generating and executing database queries that fetch the correct and relevant data in response to user prompts and inquiries. However, for the LLM to generate the right query, data about the schema of the database and the underlying graph model must be provided. In this study, we present a pipeline for evaluating different techniques for injecting the database schema in the LLM prompts, in addition to preliminary evaluation results.
References
A. Hein et al., “Digital platform ecosystems,” Electron Markets, vol. 30, no. 1, pp. 87–98, Mar. 2020, doi: 10.1007/s12525-019-00377-4. DOI: https://doi.org/10.1007/s12525-019-00377-4
F. von Briel and P. Davidsson, “Digital platforms and network effects: Using digital nudges for growth hacking,” in Int. Conf. Inf. Syst., ICIS, Association for Information Systems, 2019.
P. Boldi and G. Gousios, “Fine-Grained Network Analysis for Modern Software Ecosystems,” ACM Trans. Internet Technol., vol. 21, no. 1, 2021, doi: 10.1145/3418209. DOI: https://doi.org/10.1145/3418209

Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Shady Hegazy, Nouman Nusrallah, Christoph Elsner, Jan Bosch, Helena Holmström Olsson

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
License Terms:
Except where otherwise noted, content on this website is lincesed under a Creative Commons Attribution Non-Commercial License (CC BY NC)
Use, distribution and reproduction in any medium, provided the original work is properly cited and is not used for commercial purposes, is permitted.
Copyright to any article published by WiPiEC retained by the author(s). Authors grant WiPiEC Journal a license to publish the article and identify itself as the original publisher. Authors also grant any third party the right to use the article freely as long as it is not used for commercial purposes and its original authors, citation details, and publisher are identified, in accordance with CC BY NC license. Fore more information on license terms, click here.