This repository contains the implementation for the Social Robotics System for Senior Care using LLMs and Raspberry Pi.
- Docker CLI (client version, not Desktop)
Build and start the containers (first time may take up to 5 minutes):
docker compose up --buildIf only code changes were made (no Dockerfile changes), you can just restart:
docker compose up🤖 Installing Models (Ollama) Once the project is running, you need to install the desired model inside the Ollama container:
docker exec -it ollama bash
ollama pull mistralTo list installed models:
ollama listor you can also browse available models at ollama.com/library
It is recommended to use a virtual environment for the client:
python3 -m venv client_env
source client_env/bin/activateInstall requirements:
pip install -r requirements.txtRun the client:
python wspi_client.pyChange the model in stt_server.py:
return Model("models/vosk-model-small-en-us-0.15")
Change the model in tts_server.py:
tts = TTS(model_name="tts_models/en/vctk/vits").to(device)
Enter the Postgres container:
docker exec -it elderly_care_db bash
Connect to Postgres:
psql -U supauser -d elderly_care_db
List tables:
\dt
Before starting up the client it is important to set correct server IP address:
hostname -IThe IP address needs to be then correctly set in .env file