Högskolan i Skövde

his.sePublications
4142434445464744 of 356
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • apa-cv
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Evaluating large language models for natural language queries in manufacturing execution systems
University of Skövde, School of Informatics.
University of Skövde, School of Informatics.
2026 (English)Independent thesis Basic level (degree of Bachelor), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

This thesis examines whether large language models (LLMs) can translate natural language questions into SQL queries for a Manufacturing Execution System (MES). MES databases store important production data, but retrieving that data can require knowledge of the interface, database structure, or SQL. The study therefore investigates how model size and model specialisation influence effectiveness and efficiency in natural language-to-SQL generation. A controlled quasi-experiment was carried out in collaboration with Schneider Electric using four Qwen2.5 models, the same question bank, a sanitised industrial MES database, manually created retrieval-augmented generation (RAG) context, SQL validation and read-only execution. The evaluation considered both effectiveness and efficiency. Effectiveness was measured through exact match, execution success, and F1-score, while efficiency was measured through latency and token usage. The results showed that no model performed best in every area. Among the larger models, specialisation led to different strengths: one model produced more correct results regarding exact match and F1-score, while the other more often generated executable SQL. The smaller models were faster overall. The experiment results were also discussed with a Schneider Electric representative through a limited semi-structured validation interview to support the practical interpretation of the findings. 

Place, publisher, year, edition, pages
2026. , p. 47, v
Keywords [en]
Large language models, manufacturing execution systems, text-to-SQL, effectiveness and efficiency, model size, model specialisation
National Category
Information Systems, Social aspects
Identifiers
URN: urn:nbn:se:his:diva-26856OAI: oai:DiVA.org:his-26856DiVA, id: diva2:2084180
External cooperation
Schneider Electric
Subject / course
Informationsteknologi
Educational program
Computer Science - Specialization in Systems Development
Supervisors
Examiners
Available from: 2026-07-03 Created: 2026-07-03 Last updated: 2026-07-03Bibliographically approved

Open Access in DiVA

fulltext(3605 kB)23 downloads
File information
File name FULLTEXT01.pdfFile size 3605 kBChecksum SHA-512
96aa0b8d9d46272e16be19db8744a39fb3838b39f2ef8c5d453d022aeeb4d12e1de9f19eee7044306c882a22111735441fbbeabade80c65e96f40869050e4193
Type fulltextMimetype application/pdf

By organisation
School of Informatics
Information Systems, Social aspects

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 81 hits
4142434445464744 of 356
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • apa-cv
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf