Digitala Vetenskapliga Arkivet

Planned maintenance
A system upgrade is planned for 17/11-2026, at 12:00-13:00. During this time DiVA will be unavailable.
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • 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
A Factual Sustainability Chatbot: Leveraging Natural Language Understanding and Embedding Models for Reliable Q&A
Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology.
Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology.
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent 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
Available from: 2025-07-21 Created: 2025-07-04 Last updated: 2025-07-21Bibliographically approved

Open Access in DiVA

fulltext(2275 kB)286 downloads
File information
File name FULLTEXT01.pdfFile size 2275 kBChecksum SHA-512
45862264e7e9bffc4fdc18213b072c61e5a45993f6e4868e08225c93f8959c0d35f1d2cf4870b0d0c070fe40881c9764b1322906b79ee3920214e0ef5aaa740b
Type fulltextMimetype application/pdf

By organisation
Department of Information Technology
Artificial Intelligence

Search outside of DiVA

GoogleGoogle Scholar
Total: 289 downloads
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: 445 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • 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