29 September 2026 to 3 October 2026
OeAW Main Seat
Europe/Vienna timezone

An AI-Driven Natural Language Interface for Graph Database Queries in a Lexicographical Resource

2 Oct 2026, 14:30
30m
01 | Johannessaal (01 | Johannessaal, OeAW Main Seat, 1st floor)

01 | Johannessaal

01 | Johannessaal, OeAW Main Seat, 1st floor

Austrian Academy of Sciences Dr. Ignaz Seipel-Platz 2 1010 Vienna

Speaker

Peter Meyer (Leibniz Institute for the German Language)

Description

Complex digital lexicographical resources often feature rich data structures that are difficult for non-specialist users to query. This paper presents a pilot study on an LLM-driven natural-language interface for the Lehnwortportal Deutsch, a graph-based database of German loanwords in other languages. Rather than translating user questions directly into the database query language, the proposed architecture maps natural-language requests to the JSON configuration format already used by the portal’s visual query builder. This intermediate representation makes it possible for users to inspect and modify query builder configurations generated from their questions. We discuss the advantages of this approach and present a pilot study that evaluated it on a set of 310 German questions that, due to lack of real user questions, had to be AI-generated using several different strategies to cover a large range of usage scenarios as well as available querying options. Using one-shot prompting, a state-of-the-art commercial-grade LLM produced valid JSON in almost all cases; 260 outputs were rated perfect and 23 acceptable by human assessment under a low reasoning budget. A high-budget rerun improved most initially bad cases, though with impractical latency for real-time use. The paper also discusses methodological challenges in generating and evaluating synthetic query sets, handling unsupported user requests, and extending the approach through larger datasets, comparing multiple language models, varying output parameters, and using fine-tuning as an alternative strategy.

Presentation materials

There are no materials yet.