elib
DLR-Header
DLR-Logo -> http://www.dlr.de
DLR Portal Home | Imprint | Privacy Policy | Accessibility | Contact | Deutsch
Fontsize: [-] Text [+]

An Approach to Generate Training Data for Question-to-AQL Querying Models

Bernahrndt, Marius (2025) An Approach to Generate Training Data for Question-to-AQL Querying Models. Master's, University of Cologne.

[img] PDF
6MB

Abstract

Graph databases are powerful tools for representing and querying complex knowledge structures. Query languages such as ArangoDB's AQL are challenging for non-expert users. Leveraging large language models (LLMs) for natural-language interfaces is an obvious step, but their preparation depends on suitable training corpora that map user questions to executable queries. For AQL, such corpora do not yet exist. This thesis introduces an approach to automatically generate such training data. The method combines schema-guided path sampling with LLM verbalization, ensuring that queries remain executable while questions are expressed in natural language. Fine-tuning an instruction-tuned model on the resulting corpus yields robust, well-formed AQL queries with high execution accuracy. Most remaining discrepancies concern semantic aspects such as collection choice, traversal direction, or operator selection, whereas syntax remains largely stable. Overall, the results demonstrate that schema-guided generation with LLM support can provide a faithful and sufficiently broad dataset, enabling the training of functional question-to-AQL models and offering a reproducible foundation for future NL2AQL research and system development.

Item URL in elib:https://elib.dlr.de/220679/
Document Type:Thesis (Master's)
Title:An Approach to Generate Training Data for Question-to-AQL Querying Models
Authors:
AuthorsInstitution or Email of AuthorsAuthor's ORCID iDORCID Put Code
Bernahrndt, Mariusmarius.bernahrndt (at) dlr.deUNSPECIFIEDUNSPECIFIED
DLR Supervisors:
ContributionDLR SupervisorInstitution or E-MailDLR Supervisor's ORCID iD
Thesis advisorFelderer, MichaelMichael.Felderer (at) dlr.dehttps://orcid.org/0000-0003-3818-4442
Date:28 August 2025
Open Access:Yes
Number of Pages:102
Status:Published
Keywords:Graph databases, ArangoDB / AQL, NL2AQL, Automatic training data generation, LLM
Institution:University of Cologne
Department:Faculty of Mathematics and Natural Sciences Department of Mathematics and Computer Science
HGF - Research field:other
HGF - Program:other
HGF - Program Themes:other
DLR - Research area:Digitalisation
DLR - Program:D - no assignment
DLR - Research theme (Project):D - MeToDiO, R - Synergy project| DLR FM | DLR Foundation Models [EO]
Location: other
Institutes and Institutions:Institute of Software Technology > Intelligent and Distributed Systems
Institute of Software Technology
Deposited By: Bernahrndt, Marius
Deposited On:10 Dec 2025 09:06
Last Modified:10 Dec 2025 09:06

Repository Staff Only: item control page

Browse
Search
Help & Contact
Information
OpenAIRE Validator logo electronic library is running on EPrints
Website and database design: Copyright © German Aerospace Center (DLR). All rights reserved.