Skip to content
Emotional-Rag-Support

Emotional-Rag-Support

A journal that listens and cares

Created on 10th December 2025

•

Emotional-Rag-Support

Emotional-Rag-Support

A journal that listens and cares

The problem Emotional-Rag-Support solves

  • Provides a safe and judgment-free space for people to express their emotions when they don’t have someone to talk to.
  • Offers empathetic AI responses that support the user emotionally instead of leaving them alone after journaling.
  • Helps users track their mood over time, making emotional awareness easier and more consistent.
  • Uses RAG to remember past experiences and provide personalized reflections based on the user’s own journal history.
  • Provides insights and visual mood analysis, helping users recognize patterns, triggers, and progress in their emotional well-being.
  • Detects high-risk language and gives gentle crisis guidance, encouraging the user to seek real-world help when necessary.

Challenges we ran into

  • Frontend–Backend Integration
    Initially, the React UI could not communicate with the FastAPI backend due to CORS restrictions.
    We resolved this by configuring a proxy in vite.config.js to allow secure API communication.
  • User-Specific Journal Storage
    Journal entries were mixing between users during testing.
    We implemented a multi-tenancy database structure, where each user gets a separate journal table mapped to their account.
  • Performance During Embedding Retrieval
    Embeddings were being recomputed repeatedly, slowing response times.
    To optimize this, we stored embeddings per user and reused them during RAG retrieval.
  • Safety Handling for Sensitive Content
    The AI responses needed to adjust for high-risk emotional messages.
    We developed a keyword-based detection system to escalate support messages and guide users toward real-world help.

Discussion

Builders also viewed

See more projects on Devfolio