A Factual Sustainability Chatbot: Leveraging Natural Language Understanding and Embedding Models for Reliable Q&A
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesis
Abstract [en]
As conversational AI becomes more common, ensuring that answers are factually correct remains a major challenge, especially in specialized fields like sustainability. This project tackles that issue by developing and testing a fact-based chatbot that answers questions about sustainability using reliable and verifiable information drawn only from a selected set of scientific articles. The chatbot was built using the RASA Open Source framework and developed step by step, with a focus on semantic search based on sentence embeddings.
In the early stages, the project used the all-MiniLM-L6-v2 embedding model, which revealed difficulties in telling apart similar questions and meanings. To address this, the Q&A dataset was improved through clearer rewording, dynamic similarity thresholds were introduced, and a top-3 suggestion system was added, resulting in better performance. Later, the embedding model was upgraded to BAAI/bge-large-en-v1.5, along with specific query instructions and normalization techniques. These changes made the system more accurate and better at handling subtle differences between questions, as well as identifying questions that were outside the chatbot’s knowledge.
The chatbot’s performance, especially in terms of factual accuracy, consistency, and how it handled difficult cases, was evaluated using detailed testing and logs. To determine its practical use, the factual accuracy and relevance of its answers were compared with two other types of popular AI chatbots, specifically an LLM and a RAG-based one. While all three chatbots generally provided relevant answers, our chatbot greatly excelled at delivering fact-based answers compared to the others.
The results from this development process offer insights for future projects aiming to build trustworthy AI chatbots, especially in areas where scientific precision, transparency, and controlled information are crucial.
Place, publisher, year, edition, pages
2025. , p. 51
Series
IT ; kDV 25 019
National Category
Artificial Intelligence
Identifiers
URN: urn:nbn:se:uu:diva-563212OAI: oai:DiVA.org:uu-563212DiVA, id: diva2:1981604
External cooperation
Sustainable AI Solutions
Educational program
Bachelor Programme in Computer Science
Supervisors
Examiners
2025-07-212025-07-042025-07-21Bibliographically approved