Work

LLM-Powered Question Answering on Fault Logs at Scania AB

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.
Author: Ibrahim, Nesly
Language: English
Open Access status: green
OpenAlex ID: W7030108123
Cites: 42
Cited by:
Related to: 10