Maintenance¶
How to upgrade¶
There are different things that can be upgraded:
- The python package dependencies (normal dependencies and dev dependencies)
- Check outdated Python packages:
uv run cli show-outdated(check Python section in output) uv lock --upgradewill update packages according to their version range inpyproject.toml- Other upgrades (e.g. major versions) must be upgraded by modifying the version range in
pyproject.tomlbefore callinguv lock --upgrade - Javascript dependencies
- Check outdated Javascript packages:
uv run cli show-outdated(check Javascript section in output) npm updatewill update packages according to their version range inpackage.json- Other upgrades (e.g. major versions) must be upgraded by modifying the version range in
packages.jsonbefore callingnpm update - After an upgrade make sure the files in
static/vendorstill link to the correct files innode_modules1 - Python and uv in
Dockerfilethat builds the container where RADIS runs in - Dependent services in
docker-compose.base.yml, like PostgreSQL - Github Codespaces development container dependencies in
.devcontainer/devcontainer.jsonand.devcontainer/Dockerfile - Github actions
.github/workflows/ci.ymldependencies
Stray inference containers¶
RADIS sends all inference to the endpoint in LLM_BASE_URL and runs no inference server of its own. Docker keeps containers and Swarm services that the compose files do not define, so a deployment that still runs one needs it cleaned up by hand.
Development: pass --remove-orphans, which removes containers of this project that the compose files no longer define:
A model cache volume outlives them and can be reclaimed with docker volume rm radis_dev_models_data.
Production (Docker Swarm): pass --prune, which removes services the deployment no longer declares. Only do so when deploying the complete set of compose files, since Swarm removes every service the deployment does not mention:
To look first, or to clean up without redeploying:
docker service ls | grep llm # e.g. radis_llm_gpu
docker service rm radis_llm_gpu # use your stack name if it is not 'radis'
docker volume rm radis_models_data # on each node that holds model files
Search language configs¶
RADIS reads available text search configs from Postgres (pg_ts_config) and auto-maps language codes to matching configs (falling back to simple). If new dictionaries/configs are installed in Postgres, restart RADIS to refresh the config cache, and reindex reports to apply the new config to existing data.