EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

LLMs for industrial databases: an agro-food production plant use case

Lacramioara Dranca, Pablo Donate, Julio A Sanguesa, Piedad Garrido, Vicente Torres-Sanz, Francisco J Martinez

Frontiers in Artificial Intelligence · 29.05.2026 · 9

DOI: 10.3389/frai.2026.1764367 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Frontiers in Artificial Intelligence, online erschienen am 29.05.2026. Verfasst von Lacramioara Dranca und 5 weiteren Autor:innen. Beteiligte Einrichtung: Centro Universitario de la Defensa (CUD), Zaragoza, Spain. Die Arbeit nennt 34 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Gobierno de Aragón.

AbstractSchlagwörterBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Introduction

Extracting value from industrial time-series databases such as InfluxDB 2.0 requires expertise in specialized query languages (InfluxQL, Flux) that domain experts typically lack, and no labeled corpora exist for translating natural language into them.

Methods

We present a modular system that translates questions written in Spanish into executable InfluxQL and Flux queries over an InfluxDB 2.0 instance deployed in a real agro-food production plant operating under a self-consumption energy scheme. It comprises a semantic layer implemented as a knowledge graph encoding the InfluxDB schema and its correspondence with the plant's physical components; a hierarchical entity-linking module; a lightweight language model fine-tuned for NL-to-query generation; and a query validation and sanitization module. To obtain training data, we develop a fully automated synthetic dataset distillation pipeline that uses a large teacher model with contextual retrieval from the official InfluxDB 2.0 documentation; each candidate undergoes parsing, AST extraction, and semantic checking against the knowledge graph, and only validated samples are retained. The corpus fine-tunes compact Small Language Models through domain-level conditioning followed by task-specific instruction tuning.

Results

Performance is evaluated on a manually curated suite of 56 Spanish queries, evenly distributed across seven operationally relevant query families. Compact models reliably generate syntactically valid queries, but functional evaluation against the live instance reveals a three-layer pattern-high parser validity, moderate execution success, and lower result correctness-that locates the residual gap at the semantic layer.

Discussion

The contributions are a complete NL-to-InfluxDB pipeline grounded in an explicit semantic representation of a real industrial schema; a documentation-driven synthetic data generation process with automatic syntactic and semantic verification; and a parameter-efficient fine-tuning strategy enabling query generation with lightweight models suitable for resource-constrained environments.

Schlagwörter

Stichwörter der Autor:innen

NL-to-InfluxDB queriesindustrial energy managementknowledge graphlarge language modelsnatural language interfacessmall language modelstime series databases

Autor:innen und Institutionen

  • Centro Universitario de la Defensa (CUD), Zaragoza, Spain.
  • Department of Computer Science and System Engineering, University of Zaragoza, Teruel, Spain.

Förderung

  • Gobierno de Aragón

Zitieren

APA

Dranca, L., Donate, P., Sanguesa, J. A., Garrido, P., Torres-Sanz, V., & Martinez, F. J. (2026). LLMs for industrial databases: an agro-food production plant use case. Frontiers in Artificial Intelligence, 9. https://doi.org/10.3389/frai.2026.1764367

Vancouver

Dranca L, Donate P, Sanguesa JA, Garrido P, Torres-Sanz V, Martinez FJ. LLMs for industrial databases: an agro-food production plant use case. Frontiers in Artificial Intelligence. 2026;9. doi:10.3389/frai.2026.1764367

BibTeX
@article{Dranca2026,
  author = {Dranca, Lacramioara and Donate, Pablo and Sanguesa, Julio A and Garrido, Piedad and Torres-Sanz, Vicente and Martinez, Francisco J},
  title = {LLMs for industrial databases: an agro-food production plant use case},
  journal = {Frontiers in Artificial Intelligence},
  year = {2026},
  volume = {9},
  doi = {10.3389/frai.2026.1764367}
}
Kostenlos starten →