EUVIMEDEUVIMED entdecken
Open Access · CC BY-NC-ND 4.0

Modular Enterprise Natural Language to SQL Using Small Language Models

Rodrigo Fernandes, Ricardo Malheiro

International Conference on AI Research · 18.11.2026 · 7 (1) · 73-81

DOI: 10.34190/icair.7.1.5581 ↗

Kurz gefasst

Fachartikel in der Zeitschrift International Conference on AI Research, online erschienen am 18.11.2026. Verfasst von Rodrigo Fernandes und 1 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY-NC-ND 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Enterprise organisations increasingly store critical data in relational databases, but business users often lack the SQL expertise to query them. This problem is acute in ERP/CRM systems with large, poorly documented schemas, multilingual requests, and constraints that may preclude proprietary cloud models. This work evaluates a modular Natural Language-to-SQL architecture built from small, locally deployable open-weight models. Its stages are query normalisation, intent classification, embedding-based schema retrieval with graph expansion, and LoRA-fine-tuned skeleton generation and query completion. A 9-billion-parameter model achieved over 80% recall across all intent classes, without consistent gains from larger models or ensembles. A 0.6-billion-parameter embedding model matched larger alternatives for broad candidate retrieval. In an isolated gold-grounded evaluation, the 9B skeleton model achieved 84.2% execution accuracy on the Spider test comparison split; a 0.8B model reached 80.3%. The 9B checkpoint achieved only 34.9% zero-shot on BIRD, with failures concentrated in structurally complex queries. Translation of noisy multilingual ERP metadata produced a median cosine similarity above 0.79. An end-to-end test achieved 26.0% execution accuracy with retrieved tables and 82.0% with correct tables, identifying schema retrieval as the dominant bottleneck. Although the components can run locally, this 50-query evaluation on one ERP demonstration database does not yet establish production readiness.

Zitieren

APA

Fernandes, R., & Malheiro, R. (2026). Modular Enterprise Natural Language to SQL Using Small Language Models. International Conference on AI Research, 7(1), 73-81. https://doi.org/10.34190/icair.7.1.5581

Vancouver

Fernandes R, Malheiro R. Modular Enterprise Natural Language to SQL Using Small Language Models. International Conference on AI Research. 2026;7(1):73-81. doi:10.34190/icair.7.1.5581

BibTeX
@article{Fernandes2026,
  author = {Fernandes, Rodrigo and Malheiro, Ricardo},
  title = {Modular Enterprise Natural Language to SQL Using Small Language Models},
  journal = {International Conference on AI Research},
  year = {2026},
  volume = {7},
  number = {1},
  pages = {73--81},
  doi = {10.34190/icair.7.1.5581}
}
Kostenlos starten →