CogniCare is a project designed to assist people with dementia by recording their daily conversations, processing them with a large language model (LLM) using Langflow, and providing a chatbot to answer questions and create to-do lists based on the conversations.
- Python 3.8+: Ensure you have Python installed. You can download it from python.org.
- Google Cloud Account: Set up a Google Cloud account and enable the Speech-to-Text API.
git clone https://github.com/SVyusti/CogniCare.git
cd CogniCare
Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
Install the required packages:
pip install -r requirements.txt
- Create a new project in the Google Cloud Console.
- Enable the Speech-to-Text API.
- Create a service account and download the JSON key file.
- Set the environment variable to authenticate with your service in the .env file
GOOGLE_APPLICATION_CREDENTIALS="path/to/your/service-account-file.json"
Start Langflow:
python -m langflow run
In a separate terminal, start the Streamlit app:
streamlit run 🏠_Dashboard.py
cognicare/
│
├── 🏠_Dashboard.py # Main Streamlit app
├── requirements.txt # Python dependencies
├── README.md # Project documentation
└── ...
Chatbot Workflow
DataStore Workflow
TaskFinder Workflow
- Record Conversations: Use any device to record the daily conversations of the person with dementia.
- Convert Voice to Text: Use Google Cloud Speech-to-Text API to transcribe the recordings.
- Analyze Text: Send the transcriptions to Langflow for analysis and based on that generate a To-Do list for the day.
- Chatbot Interaction: The chatbot, powered by the LLM, will answer questions regarding the day and create to-do lists based on the analyzed conversations.
- Fork the repository.
- Create a new branch (git checkout -b feature-branch).
- Commit your changes (git commit -am 'Add new feature').
- Push to the branch (git push origin feature-branch).
- Create a new Pull Request.
This project is licensed under the MIT License.
| Vyusti Singamsetti | | Shobhit Tomer |