It is an intelligent, context-aware mental health chatbot that leverages Retrieval-Augmented Generation (RAG) built on a data-driven vector database. PsyAssist uses a custom mental health knowledge base in PDF format to provide personalized, empathetic support through tonality-aware dialogue. Built using Flask, it features a smooth and accessible web interface.
Uses a vector database created from mental health documents to retrieve contextually relevant answers tailored to user questions in a data-driven manner.
Dynamically adjusts responses based on the emotional tone detected in user input, enhancing empathy and relevance.
Engineered to support diverse inputs (text and easily extendable to voice/image) for a richer conversational experience.
Built using HTML/CSS/JS to provide a seamless and user-friendly environment focused on wellness and support.
| Chat Interface | Help/FAQ Page |
|---|---|
![]() |
![]() |
├── index.html # Main chatbot interface
├── help_fnq.html # Help / FAQ page
├── style.css # Frontend styling
├── script.js # Client-side interactivity
├── app.py # Flask backend logic
├── rag_embeddings.py # PDF embedding and vector store
├── resources/ # Static assets
└── rag_database/ # (Create this) Add mental health PDFs here
git clone https://github.com/your-username/PsyAssist.git
cd PsyAssist
mkdir rag_database
pip install -r requirements.txtAdd any necessary API keys (e.g., for embedding models) in your environment or directly in the embedding script.
Place relevant mental health PDF documents in the rag_database/ directory. These documents will be processed into vector embeddings for retrieval.
python app.pyVisit http://localhost:5000 in your browser to start chatting.
You're welcome to contribute by improving features, UI, or expanding the knowledge base:
- Fork the repository
- Create a feature branch
- Submit a pull request with a clear explanation
Soumya Sourav Das

