
◆ A retrieval-augmented mental health companion
SafeSpace listens with empathy, detects emotion and intent, and grounds every response in evidence from professional counseling literature — so you always know where the help is coming from.
Not a replacement for therapy or crisis intervention. In emergencies dial 988 (US) or findahelpline.com
◆ What it does
Every reply is shaped by an NLP pipeline that understands you, then sourced from a vector index over 17k professional counseling pairs and a curated PDF library.
DistilBERT classifies emotional tone across fear, sadness, joy, anger and more — visible inline, never guessed.
Zero-shot intent classification routes greetings, questions, and crises through the right pathway.
Hybrid BM25 + semantic retrieval cites the actual passages behind each response.
Keyword and signal detection surface 988, Crisis Text Line and chat resources the moment they're needed.
TF-IDF language ID across 20 languages so we always meet you in the language you're typing.
Symptoms, triggers, severity and duration accumulate as you talk — never re-explain yourself.
◆ Under the hood
From your first sentence to the final answer, every step is visible.
TF-IDF + Logistic Regression across 20 languages.
DistilBERT fine-tuned on 6k labelled messages.
Zero-shot via Groq LLM — greeting, gratitude, mental-health, out-of-scope.
Extract symptoms, triggers; rewrite for retrieval.
BM25 keywords + semantic similarity over the Qdrant index.
LLM composes a response strictly from retrieved chunks, with citations.
◆ The team
ML & Backend
ML & Backend
Tech · Python · PyTorch · Hugging Face · Qdrant · FastAPI · Groq