Year: 2025
Type: dissertation
Abstract: This thesis presents a natural language question-answering system designed for querying structured vehicle fault log data at Scania AB.The system leverages large language models to translate user questions into SQL queries.The core contribution of this work is a pipeline that combines data pre-processing with advanced prompt engineering strategies such as schema grounding, instruction-based prompting, and retrieval-augmented input construction.Experimental evaluation shows that the final implementation, using Anthropic's Claude 3.5 via API, achieves 96% SQL accuracy on a benchmark of domain-specific queries.The study further compares prompt strategies, highlighting that schema+instruction zero-shot prompts and chain-of-thought few-shot prompts perform best.A Streamlit-based chatbot interface with human-in-the-loop validation enables real-time feedback and user trust.Overall, the thesis demonstrates that high-performing, domain-adapted natural language interfaces to structured data can be achieved without fine-tuning by aligning LLMs with clean data and carefully crafted prompts.This approach reduces technical barriers to data access, accelerates decision-making, and provides a scalable foundation for future agentic database systems.
Source: DiVA - Jönköping University
Author: Ibrahim, Nesly
Institution: Jönköping University
Language: English
Topic: Topic Modeling
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7030108123
