Inspiration

The inspiration behind Harmonia came from the growing need for accessible mental health support. Many people struggle with stress, anxiety, and emotional challenges but may not have immediate access to professional help. Harmonia aims to bridge this gap by providing a safe, non-judgmental space for individuals, especially women, to express their feelings and receive both emotional validation and practical guidance.

What it does

  • Emotional Validation: Acknowledge and validate user emotions.
  • Practical Guidance: Offer actionable steps and coping strategies.
  • Crisis Support: Provide emergency contact information and grounding techniques.
  • Personalized Responses: Tailored responses based on user input and context.

How we built it

Harmonia was developed using LangChain and Llama 3.1 API to create empathetic, context-aware responses. We enhanced its knowledge base with a PDF (Harmonia.pdf) processed via PyPDF2 and ChromaDB. The user-friendly interface was built with Gradio, and the app was deployed on Hugging Face Spaces for accessibility, with secure management of environment variables like the NVIDIA API key.

Challenges we ran into

  • Balancing Empathy and Practicality: Ensuring the chatbot provided both emotional validation and actionable advice was challenging but rewarding.
  • Handling Crisis Situations: Implementing a protocol for crisis situations required careful consideration to ensure user safety.

Accomplishments that we're proud of

  • Empathetic Responses: Successfully implemented a chatbot that provides empathetic and context-aware responses. -Crisis Support: Developed a protocol for handling crisis situations, ensuring user safety. -User-Friendly Interface: Created an intuitive and user-friendly interface using Gradio. -Deployment: Successfully deployed the application on Hugging Face Spaces, making it accessible to a wider audience.

What we learned

Building Harmonia was a rewarding experience that taught me several valuable lessons:

-Natural Language Processing (NLP): I gained a deeper understanding of how to use large language models (LLMs) like Llama to generate empathetic and context-aware responses. -User Interface Design: Using Gradio, I explored how to create an intuitive and user-friendly interface for a chatbot.

What's next for Harmonia

Implement voice input and output capabilities to make Harmonia more accessible and user-friendly.

Built With

  • chromadb
  • gradio
  • langchain
  • llama
Share this project:

Updates