Evaluating large language models for natural language queries in manufacturing execution systems
2026 (English)Independent thesis Basic level (degree of Bachelor), 20 credits / 30 HE credits
Student 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
2026-07-032026-07-032026-07-03Bibliographically approved