# Providers of relief in distress: RAG-based LLMs as situation and intent-aware assistants

**Authors:** Ahmad M. Nazar, Brianna Norman, Halle Northway, Abrahim Toutoungi, Emma Zatkalik, Gabriel Carlson, Ellery Sabado, Hamza Shawa, Mohamed Y. Selim

PMC · DOI: 10.3389/frai.2026.1712596 · Frontiers in Artificial Intelligence · 2026-03-02

## TL;DR

LLooMi is an AI assistant designed to provide empathetic, accurate, and context-aware support in mental health and crisis situations using retrieval-augmented generation.

## Contribution

LLooMi introduces an intent-aware, emotionally adaptive conversational agent for mental health and humanitarian contexts using RAG and structured prompting.

## Key findings

- LLooMi achieved 92.4% average answer correctness and 84.9% answer relevancy in evaluations.
- The system adapts tone and content based on user's psychological state and informational goals.
- High scores in readability, perceived trust, and ease of use indicate strong user acceptance.

## Abstract

In high-stress humanitarian and mental health contexts, timely access to accurate, empathetic, and actionable information remains critically limited, especially for at-risk and underserved populations. This work introduces LLooMi, an open-source, retrieval-augmented generation (RAG) conversational agent designed to deliver trustworthy, emotionally attuned, and context-aware support across domains such as mental health crises, housing insecurity, medical emergencies, immigration, and food access. Leveraging large language models (LLMs) with structured prompting, LLooMi reformulates user queries into actionable intents, often implicit, emotionally charged, or vague. It then retrieves and grounds responses in a curated, domain-specific knowledge base, without storing personal user data, aligning with privacy-preserving and ethical AI design principles. LLooMi adopts an intent-aware architecture that adapts its tone, content, and level of detail based on the user's inferred psychological state and informational goals. This step enables delivering fast, directive responses in acute distress scenarios or longer, validation-oriented support when emotional reassurance is needed, emulating key facets of therapeutic communication. By integrating NLP-driven semantic retrieval, structured dialogue memory, and emotionally adaptive generation, LLooMi offers a novel approach to scalable, human-centered digital mental health interventions. Evaluation shows an average answer correctness (AC) of 92.4% and answer relevancy (AR) of 84.9%, with high scores in readability, perceived trust, and ease of use. These results suggest LLooMi's potential as a complementary NLP-based tool for mental health support in digital psychiatry and crisis care.

## Full-text entities

- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12990127/full.md

## Figures

10 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12990127/full.md

## References

26 references — full list in the complete paper: https://tomesphere.com/paper/PMC12990127/full.md

---
Source: https://tomesphere.com/paper/PMC12990127