Thank you very much for this new tool! I am very interested in experimenting with it in grampsweb - especially due to the reported issues of the ChatWithTree Addon in the windows AIO version of gramps desktop because the litellm Python module cannot be installed ( ChatWithTree gramplet addition by MelleKoning · Pull Request #762 · gramps-project/addons-source · GitHub ).
I am successfully running grampsweb on a RaspberryPi 4 8GB and now want to activate the new AI chat function but I am having difficulties following the instructions of the related help page ( Setting up AI chat - Gramps Web ).
From what I understood, I have to change the settings in the docker-compose.yml, but I cannot activate the chat function:
Gramps 6.0.6
Gramps Web API 3.6.0
Gramps Web Frontend 25.12.0
Gramps QL 0.4.0
Sifts 1.1.1
locale: en
multi-tree: false
task queue: true
OCR: true
chat: false
Here is how the docker-compose.yml looks like (in bold my changes):
services:
grampsweb: &grampsweb
image: Package grampsweb · GitHub
restart: always
ports:
- “80:5000” # host:docker
environment:
GRAMPSWEB_TREE: “Gramps Web” # will create a new tree if not exists
GRAMPSWEB_CELERY_CONFIG__broker_url: “redis://grampsweb_redis:6379/0”
GRAMPSWEB_CELERY_CONFIG__result_backend: “redis://grampsweb_redis:6379/0”
GRAMPSWEB_RATELIMIT_STORAGE_URI: redis://grampsweb_redis:6379/1
GUNICORN_NUM_WORKERS: 2
GRAMPSWEB_VECTOR_EMBEDDING_MODEL: sentence-transformers/distiluse-base-multilingual-cased-v2
GRAMPSWEB_LLM_BASE_URL: http://ollama:11434/v1
GRAMPSWEB_LLM_MODEL: tinyllama
OPENAI_API_KEY: ollama
depends_on:
- grampsweb_redis
volumes:
- gramps_users:/app/users # persist user database
- gramps_index:/app/indexdir # persist search index
- gramps_thumb_cache:/app/thumbnail_cache # persist thumbnails
- gramps_cache:/app/cache # persist export and report caches
- gramps_secret:/app/secret # persist flask secret
- gramps_db:/root/.gramps/grampsdb # persist Gramps database
- gramps_media:/app/media # persist media files
- gramps_tmp:/tmp
grampsweb_celery:
<<: *grampsweb # YAML merge key copying the entire grampsweb service config
ports: []
container_name: grampsweb_celery
depends_on:
- grampsweb_redis
command: celery -A gramps_webapi.celery worker --loglevel=INFO --concurrency=2
grampsweb_redis:
image: Docker Hub Container Image Library | App Containerization
container_name: grampsweb_redis
restart: always
ollama:
image: ollama/ollama
container_name: ollama
ports:
- “11434:11434”
volumes:- ollama_data:/root/.ollama**
volumes:
gramps_users:
gramps_index:
gramps_thumb_cache:
gramps_cache:
gramps_secret:
gramps_db:
gramps_media:
gramps_tmp:
ollama_data:
Can anyone please help me find the way to activate the AI chat? What am I doing wrong?
Thanks a lot!