Skip to content

An AI Therapist built on Cohere, praised with an 87% user satisfaction rate.

License

Notifications You must be signed in to change notification settings

Adibvafa/CoDY

 
 

Repository files navigation

CoDY: The AI Therapist

Cohere Global Hackathon - Lablab.ai

image

About

CoDY, The AI Therapist, uses cutting-edge Large Language Models (LLMs) and Natural Language Processing (NLP) technologies from Cohere to simulate an empathic conversation between a user and a therapist. The goal of CoDY is to provide emotional support, help users work through their problems, and offer tailored advice in a confidential and convenient setting.

image

How It Works

There are three essential components in the model:

  1. Cohere Classify model that has been trained on almost 500,000 real training data ‎‎(sentence, emotion) and is capable of using NLP to truncate and classify large ‎prompts into a range of emotions.

  2. Cohere Embed + Sklearn model that transforms the user prompt to a list of ‎floats (embeds) and performs semantic search in a massive database of real, ‎labeled, embedded sentences to find the closest matching example.‎

  3. Cohere Generate model that receives user input, classified emotions, previous ‎calls, and some hard coded psychological information to generate an accurate ‎therapist response.

The model has memory of past inputs and thus can create a ‎coherent conversation.‎ These components work together in the back end, while the front end is a webpage ‎that user can access to send information and read model's responses.‎ Ultimately, the project aims to create an ongoing conversation with CoDY and user, ‎providing emotional support, helping users work through problems, and offering ‎tailored advice.‎

Run

To run this application install the requirements in a virtual environment, run python chat.py and visit http://localhost:5000 on one or more browser tabs.

$ python chat.py

About

An AI Therapist built on Cohere, praised with an 87% user satisfaction rate.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • PowerShell 44.5%
  • Python 22.1%
  • CSS 13.6%
  • C 9.2%
  • HTML 7.5%
  • Batchfile 3.1%