SoulDiaryConnect is an AI-powered system designed to support patients in their psychotherapeutic journey by enabling journaling with personalized AI feedback, while keeping the therapist connected and in control. The platform allows patients to log daily experiences, receive AI-generated motivational and clinical feedback, and stay in touch with their physician. The AI used is Llama 3.1:8B, running locally via Ollama.
- AI-Assisted Journaling – Patients can document their daily experiences and receive motivational feedback from an LLM.
- Personalized AI – Doctors can configure AI responses to provide clinical insights and tailor support to each patient.
- Intuitive User Interface – A web application with dedicated patient and doctor dashboards.
- Secure Data Management – Uses PostgreSQL for structured data storage.
- Advanced NLP Processing – Powered by Llama 3.1:8B, running locally with Ollama.
- Multi-User Access – Patients and doctors have separate roles and functionalities.
- Backend: Django
- Frontend: HTML, CSS, JavaScript
- NLP: Llama 3.1:8B via Ollama
- Database: PostgreSQL
git clone https://github.com/FLaTNNBio/SoulDiaryConnect2.0.git
cd SoulDiaryConnect2.0python3 -m venv venv
source venv/bin/activate # on Windows: venv\Scripts\activatepip install -r requirements.txtInstall PostgreSQL following the official guideline.
To exectute the queries:
python manage.py dbshellThen:
\i souldiaryconnect.sqlNow edit setting.py to configure PostgreSQL:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'souldiaryconnect',
'USER': 'your_user',
'PASSWORD': 'your_password',
'HOST': 'localhost',
'PORT': '5432',
}
}Make database migrations:
python manage.py makemigrationsRun database migrations:
python manage.py migrateDownload and install Ollama from the official website:
- Windows: Download the installer and follow the setup wizard
- macOS:
brew install ollamaor download from the website - Linux:
curl -fsSL https://ollama.com/install.sh | sh
Once Ollama is installed, open a terminal and run:
ollama pull llama3.1:8bThis will download the Llama 3.1:8B model (~4.7GB).
Start the Ollama service (it usually starts automatically after installation):
ollama serveVerify it's working:
ollama listYou should see llama3.1:8b in the list of available models.
Note: Ollama runs on
http://localhost:11434by default. The application is configured to connect to this endpoint automatically.
python manage.py runserver- Manage patients – Access and review patient journal entries.
- Customize AI responses – Configure the AI to tailor feedback generation.
- Monitor therapy progress – View clinical trends and intervene when necessary.
- Write personal journal entries – Document daily thoughts and emotions.
- Receive AI-generated feedback – Get motivational and therapeutic insights.
- View therapist's comments – See personalized feedback from the doctor.
