Ashray is an advanced mental health advisory chatbot designed to provide empathetic, contextually appropriate responses to mental health queries. It leverages cutting-edge machine learning technologies to process and retrieve mental health information effectively.
- Knowledge Base Integration: Automated processing of mental health resources to build a comprehensive knowledge base.
- Real-Time Support: Instant mental health guidance through a user-friendly conversational interface built with Streamlit.
- Empathetic Response Templating: Structured prompt format ensuring compassionate, detailed, and accurate responses to mental health concerns.
🚀 Discover peace of mind! Explore Ashray here. Start your journey to better mental health today! 🌈
Functionality | Description |
---|---|
Resource Loading | Imports mental health information from various sources. |
Text Processing | Breaks down resources into manageable, topic-specific segments. |
Embedding Creation | Uses advanced NLP models to generate text embeddings. |
Vector Database | Indexes embeddings for quick and efficient information retrieval. |
Feature | Description |
---|---|
Streamlit Interface | Offers a welcoming web interface for user interaction. |
Conversation Management | Handles chat flow and maintains conversation history. |
Information Retrieval | Utilizes the knowledge base to fetch relevant mental health information. |
- Python 3.8 or later
- langchain
- streamlit
- faiss-cpu
- transformers
-
Clone the repository:
git clone https://github.com/thegovindkrishna/Ashray.git cd Ashray
-
Install dependencies:
pip install -r requirements.txt
-
Set up the AI model API Key: Obtain an API key from your chosen AI model provider (e.g., OpenAI, Anthropic).
Set the API key as an environment variable:
- On macOS and Linux:
echo "export AI_MODEL_API_KEY='Your-API-Key-Here'" >> ~/.bash_profile source ~/.bash_profile
- On Windows (Command Prompt):
setx AI_MODEL_API_KEY "Your-API-Key-Here"
- On Windows (PowerShell):
[Environment]::SetEnvironmentVariable("AI_MODEL_API_KEY", "Your-API-Key-Here", "User")
- On macOS and Linux:
-
Build the knowledge base:
python build_knowledge.py
-
Launch the Streamlit application:
streamlit run ap.py
Navigate to the local URL provided by Streamlit to interact with Ashray. Share your mental health concerns or questions, and receive compassionate, informed responses based on the integrated mental health resources. Use the chat interface to engage in supportive conversations and gain valuable mental health insights.
Ashray is an AI assistant designed to provide general mental health information and support. It is not a substitute for professional medical advice, diagnosis, or treatment. Always seek the guidance of qualified health providers for any mental health concerns.
We welcome contributions to improve Ashray! Please see our CONTRIBUTING.md for guidelines on how to submit issues, feature requests, and code changes.
This project is licensed under the MIT License - see the LICENSE.md file for details.
Made with ❤️ for better mental health