Upgrade OpenRAG
Use these steps to upgrade your OpenRAG deployment to the latest version or a specific version.
Export customized flows before upgrading
If you modified the built-in flows or created custom flows in your OpenRAG Langflow instance, export your flows before upgrading. This ensure that you won't lose your flows after upgrading, and you can reference the exported flows if there are any breaking changes in the new version.
Upgrade TUI-managed installations
To upgrade OpenRAG, you need to upgrade the OpenRAG Python package, and then upgrade the OpenRAG containers.
Upgrading the Python package also upgrades Docling by bumping the dependency in pyproject.toml.
This is a two-part process because upgrading the OpenRAG Python package updates the Terminal User Interface (TUI) and Python code, but the container versions are controlled by environment variables in your OpenRAG .env file.
- If you modified the built-in flows or created custom flows in your OpenRAG Langflow instance, and you want to preserve those changes, then you must export your flows before starting this process. Afterwards, you can import your flows or reference the exported flow JSON as needed.
-
To check for updates, open the TUI's Status menu (3), and then click Upgrade.
-
If there is an update, stop all OpenRAG services. In the Status menu, click Stop Services.
-
Upgrade the OpenRAG Python package to the latest version from PyPI. The commands to upgrade the package depend on how you installed OpenRAG.
- Script or uvx
- uv add
- uv pip install
Use these steps to upgrade the Python package if you installed OpenRAG using the installer script or
uvx:-
Navigate to your OpenRAG workspace directory:
cd openrag-workspace -
Upgrade the OpenRAG package:
uvx --from openrag openragYou can invoke a specific version using any of the
uvxversion specifiers, such as--from:uvx --from openrag==0.1.30 openrag
Use these steps to upgrade the Python package if you installed OpenRAG with
uv add:-
Navigate to your project directory:
cd YOUR_PROJECT_NAME -
Update OpenRAG to the latest version:
uv add --upgrade openragTo upgrade to a specific version:
uv add --upgrade openrag==0.1.33 -
Start the OpenRAG TUI:
uv run openrag
Use these steps to upgrade the Python package if you installed OpenRAG with
uv pip install:-
Activate your virtual environment.
-
Upgrade OpenRAG:
uv pip install --upgrade openragTo upgrade to a specific version:
uv pip install --upgrade openrag==0.1.33 -
Start the OpenRAG TUI:
uv run openrag
-
In the OpenRAG TUI, click Start All Services, and then wait while the upgraded containers start.
When you start services after upgrading the Python package, OpenRAG runs
docker compose pullto get the appropriate container images matching the version specified in your OpenRAG.envfile. Then, it recreates the containers with the new images usingdocker compose up -d --force-recreate.Pin container versionsIn the OpenRAG
.envfile, theOPENRAG_VERSIONenvironment variable is set tolatestby default, which pulls thelatestavailable container images. To pin a specific container image version, you can setOPENRAG_VERSIONto the desired container image version, such asOPENRAG_VERSION=0.1.33.However, when you upgrade the Python package, OpenRAG automatically attempts to keep the
OPENRAG_VERSIONsynchronized with the Python package version. You might need to edit the.envfile after upgrading the Python package to enforce a different container version. The TUI warns you if it detects a version mismatch.If you get an error that
langflow container already existserror during upgrade, see Langflow container already exists during upgrade. -
Under Native Services, click Start to start the Docling service.
-
When the upgrade process is complete, you can close the Status window and continue using OpenRAG.
Upgrade self-managed containers
- If you modified the built-in flows or created custom flows in your OpenRAG Langflow instance, and you want to preserve those changes, then you must export your flows before starting this process. Afterwards, you can import your flows or reference the exported flow JSON as needed.
-
Fetch and apply the latest container images while preserving your OpenRAG data:
Dockerdocker compose pull
docker compose up -d --force-recreatePodmanpodman compose pull
podman compose up -d --force-recreateBy default, OpenRAG's
docker-composefiles pull the latest container images.