Optimal Graph Model Schema Injection for Large Language Model-Generated Cypher Queries

Authors

  • Shady Hegazy Siemens Technology
  • Nouman Nusrallah Siemens Technology
  • Christoph Elsner Siemens AG
  • Jan Bosch Chalmers University of Technology
  • Helena Holmström Olsson University of Malmo

DOI:

https://doi.org/10.64552/wipiec.v11i1.102

Keywords:

graph database, software ecosystem, large language models, graph algorithms

Abstract

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

2025-09-02

How to Cite

Hegazy, S., Nusrallah, N., Elsner, C., Bosch, J., & Holmström Olsson, H. (2025). Optimal Graph Model Schema Injection for Large Language Model-Generated Cypher Queries. WiPiEC Journal - Works in Progress in Embedded Computing Journal, 11(1), 3. https://doi.org/10.64552/wipiec.v11i1.102