Back to search

University of Alberta

Developing a Safety-Focused LLM Chatbot for Mental Health Support with Grounded Retrieval of Reliable Resources

Abstract

dc:description.abstract

Despite their relatively recent rise to prominence, many people now look to LLM powered chatbots for a wide variety of advice, including on important topics like mental health. However, LLMs frequently hallucinate, or create fabrications, and often lack domain specific knowledge relevant to the important questions users are asking; and may even provide harmful information or elicit harmful behaviors. Additionally, private LLM providers will frequently harvest user data for training purposes, or even to sell, meaning sensitive information shared with these chatbots may not be private. To address these issues, we introduce ChattyMIRA, an LLM based chatbot. ChattyMIRA uses grounded information drawn from domain expert approved resources, and has a variety of safety features which help prevent the conveyance of misinformation or harmful content. ChattyMIRA is also designed to run completely on-site with highly available, affordable hardware, allowing organizations or individuals to safely handle sensitive queries. We investigate language model and safety classifier performance, train a safety classifier specifically for ChattyMIRA, investigate retrieval solutions to compose our system, and construct and evaluate the ChattyMIRA chatbot and its components on domain specific data retrieval, on consistency and accuracy of retrieval, and on message safety. Finally, we deploy ChattyMIRA publicly in partnership with the Mood Disorders Society of Canada, and evaluate user feedback on the finished system.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Master's
Grantor
University of Alberta
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Lambe Foster, Alexander E
Advisor dc:contributor.advisor
  • Zaiane, Osmar (Computing Science)

Subjects

dc:subject × 7

Rights

dc:rights
Statement dc:rights
  • This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/86219

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Lambe Foster, Alexander E. Developing a Safety-Focused LLM Chatbot for Mental Health Support with Grounded Retrieval of Reliable Resources. Master's thesis, University of Alberta, 2026. https://doi.org/10.7939/86219