DeepFellow DOCS

Updates

Keep DeepFellow CLI, Server, and Infra up to date.

DeepFellow CLI

To update the DeepFellow CLI, run:

deepfellow cli update

The command detects your package manager (uv tool or pipx) and runs the appropriate upgrade automatically. If it does not detect either, update manually by running pip install --upgrade deepfellow-cli.

New Version Notice

When a newer DeepFellow CLI version is available, the CLI prints a notice before it runs your command:

A new DeepFellow CLI version is available: 0.37.0 → 0.38.0. Run `deepfellow cli update` to upgrade the CLI (or `deepfellow update` to also update Infra and Server).

The CLI reads the latest version from pyproject.toml on the main branch of the DeepFellow CLI repository. It checks at most once a day and stores the result in the CLI config file (~/.deepfellow/config by default). Until you update, it shows the notice on every run. The notice goes to stderr, so the output that your scripts read stays the same. If the check fails, for example without network access, your command runs as usual. To see why the check failed, run the command with the global --debug option.

The CLI skips the check:

  • When you use the global --non-interactive option
  • When you run deepfellow update or deepfellow cli update
  • When you run the CLI from a Git checkout of its source code
  • When you set the DF_NO_UPDATE_CHECK environment variable to 1

The global --yes option doesn't skip the check. To turn off the check, for example in CI, set DF_NO_UPDATE_CHECK:

export DF_NO_UPDATE_CHECK=1

All Components

To update the DeepFellow CLI, DeepFellow Infra, and DeepFellow Server in one step, run:

deepfellow update

The command updates the CLI first. It then updates DeepFellow Infra and DeepFellow Server in a new deepfellow process, so these steps already run with the updated CLI. If the command doesn't find the updated deepfellow on your PATH, or can't start it, it prints a warning and runs these steps with the previous CLI version. The command skips a component that isn't installed or that you installed with --local-image. If one step fails, the command still runs the others and exits with an error.

To answer yes to every question, put the global --yes option before update:

deepfellow --yes update

On a DeepFellow Server still on MongoDB, deepfellow update offers to move the data to PostgreSQL as deepfellow server update does: it asks the same question, which the global --yes option does not answer. The default answer is no. With --non-interactive, the Server step migrates only with --migrate-database. The command also accepts --wipe-postgres, --allow-drift, --skip-unmappable, --snapshot-dir, and the --postgres-* options. See PostgreSQL Migration.

deepfellow update has no Nightshift options. With the global --non-interactive option and without --yes, it updates DeepFellow Server without adding a missing Nightshift worker and prints a warning that lists the features that don't work. See Nightshift Is Required.

DeepFellow CLI 0.34.x runs the Infra and Server steps with its own, old code. To update from 0.34.x, run deepfellow cli update first, and then deepfellow update.

DeepFellow Server

To update DeepFellow Server, run:

deepfellow server update [OPTIONS]

Nightshift Is Required

Starting with the release that removes DF_NIGHTSHIFT_ENABLED, DeepFellow Server processes background jobs only through the Nightshift worker. A server without a running worker still starts. However, vector store file processing, Metadata Expansion, Document Summarization, Knowledge Graph ingestion, ontology discovery, webhook delivery, and vector store migration never finish.

If you installed DeepFellow Server with the CLI, update the CLI first, and then run deepfellow server update. On an install without the Nightshift worker, the command asks whether to add the worker and RabbitMQ before it changes anything, and lists the features that don't work without them:

❓      This DeepFellow Server version processes background jobs through the Nightshift worker and RabbitMQ, which this install doesn't have. Without them these features don't work:
          - adding files to vector stores (indexing)
          - knowledge compression and vector store migrations (re-embedding)
          - document summarization and metadata expansion
          - the knowledge graph (ingestion, ontology discovery)
          - webhook delivery
          - fine-tuning pipelines (data preparation, pipeline steps)
        Add Nightshift and RabbitMQ? [y/n] (y):
❓      Install a local RabbitMQ for DeepFellow Server? [y/n] (y):

If you add them, the command works as follows:

  • For a local RabbitMQ, the command takes the username and password from --rabbitmq-username and --rabbitmq-password or from .env, and generates the ones that are missing. It adds the rabbitmq and nightshift services to compose.yaml.
  • For an existing RabbitMQ, the command asks for its host:port, username, and password. It adds only the nightshift container.
  • If .env already sets DF_RABBITMQ_URL to an existing RabbitMQ, the command uses that RabbitMQ without asking which RabbitMQ to use and prints a warning with its address. It does so even with --nightshift or --yes. To use another RabbitMQ, pass --rabbitmq-url HOST:PORT. For a local one, pass --rabbitmq-url rabbitmq:5672.
  • If .env sets DF_NIGHTSHIFT_MODE, the command keeps that operating mode. Otherwise, the worker runs in always mode. The command also switches to always mode and prints a warning when the mode or schedule in .env isn't valid. It does the same for shift mode when the host doesn't run systemd or when your systemd user session isn't reachable, for example after su or sudo -u. To switch to shift mode later, log in as your user directly and run deepfellow server nightshift mode shift.

If you decline, the command updates the server without the worker and lists the features that don't work. The next deepfellow server update asks again. To add the worker without the question, run deepfellow server update --nightshift or deepfellow server install. For an existing RabbitMQ, run deepfellow server update --rabbitmq-url HOST:PORT --rabbitmq-username USERNAME --rabbitmq-password PASSWORD.

To decide without a question, for example in a script, use one of the following:

CommandResult
deepfellow server update --nightshiftAdds the worker with a local RabbitMQ, or with the RabbitMQ that .env sets
deepfellow server update --rabbitmq-url HOST:PORT --rabbitmq-username USERNAME --rabbitmq-password PASSWORDAdds the worker with an existing RabbitMQ
deepfellow server update --no-nightshiftUpdates the server without the worker
deepfellow --yes server updateAdds the worker with a local RabbitMQ, or with the RabbitMQ that .env sets, and restarts the server without questions

--rabbitmq-username and --rabbitmq-password also add the worker without the first question. Unless .env sets a RabbitMQ, the command then asks whether to install a local RabbitMQ. With --non-interactive, it installs a local one with these credentials.

With --non-interactive and without --yes or any Nightshift or RabbitMQ option, deepfellow server update stops before it changes anything and exits with an error. deepfellow update adds no worker in that case. See All Components.

Apart from adding the worker, switching the MongoDB account, binding the published ports, and the PostgreSQL migration if you accept it, deepfellow server update keeps the existing compose.yaml. To get the current Nightshift worker definition on an install that already has the worker, run deepfellow server install again. The worker then gets the same environment as the server, a health check, and no plugins mount. From then on, deepfellow server start waits until the worker is healthy.

If you run DeepFellow Server without the CLI, check the following before you update:

  • A Nightshift worker runs next to the server, with the same image, environment, and storage. See Run Nightshift.
  • RabbitMQ is reachable from both the server and the worker. Its consumer_timeout is above nightshift_jobs_timeout_seconds. See Job Timeouts.
  • The worker runs on the same host as the server or shares the server's storage directory through a shared file system.

DF_RABBITMQ_URL seeds the rabbitmq section of config.json. The server reads it on any boot where that section is not configured yet, so an install updated without the variable picks it up once you add it, for example with deepfellow server install. After the section is saved, change the RabbitMQ connection with the Server Configuration card or PUT /admin/config. See RabbitMQ Connection.

PostgreSQL Migration

DeepFellow Server moves from MongoDB to PostgreSQL. DeepFellow Server 0.42 runs on PostgreSQL or MongoDB, and a new install runs on PostgreSQL. On an install whose data is still in MongoDB, the server keeps running on MongoDB and warns that MongoDB is deprecated. See Prepare for PostgreSQL.

On such an install, deepfellow server update to 0.42 offers to move the data to PostgreSQL. The default answer is no, which updates the server and keeps MongoDB. The global --yes option does not answer this question. To migrate as part of an unattended update, pass --migrate-database. With --non-interactive and without --migrate-database, the command updates the server without the migration.

If you migrate, the command first updates the server and starts it on 0.42 with MongoDB, so the server brings the MongoDB data up to date. It then runs the migration. If the migration fails, the install stays on 0.42 with MongoDB.

If you migrate, the command asks whether to add a local PostgreSQL or to use an existing external one, for example one that already has your monitoring and backups. To skip the question, pass --postgres-url with the host:port of the external PostgreSQL. DeepFellow doesn't create the role and the database on an external PostgreSQL: an administrator creates them before the migration. See Use an External PostgreSQL.

To migrate later, run deepfellow server database migrate. To check first whether the install is ready, run deepfellow server database check. See Migrate with DeepFellow CLI.

DeepFellow Server 0.43 runs on PostgreSQL only. On an install still on MongoDB, deepfellow server update to 0.43 requires the migration.

MongoDB Account

If .env has no DF_MONGO_INITDB_ROOT_USERNAME, the server connects to the bundled MongoDB container with the root account. On such an install, deepfellow server update moves the server to an account with read and write access to the server's database only. After the update:

  • DF_MONGO_USER and DF_MONGO_PASSWORD hold the new account.
  • DF_MONGO_INITDB_ROOT_USERNAME and DF_MONGO_INITDB_ROOT_PASSWORD hold the credentials of the previous account, which keeps root access.

The server switches to the new account when it restarts. If you decline the restart at the end of the update, run deepfellow server restart. For administrative tasks, such as a backup of all databases or user management, use the root account.

If the switch fails, the command prints a warning and leaves the install as it was. The next deepfellow server update tries again.

Published Ports

An install made with an earlier CLI version publishes its ports with no host address, so Docker publishes them on all network interfaces. This applies to the bundled MongoDB and, on older installs or installs made with --dev, to the other internal services. deepfellow server update changes compose.yaml as follows:

  • The server port gets the DF_SERVER_BIND_ADDRESS host address. While the variable is unset, the port stays on all interfaces. The change only lets you set a bind address later.
  • If an internal service publishes a port on all interfaces, the command asks whether to move the port to 127.0.0.1:
❓      MongoDB and other internal services are published on all network interfaces. Restrict them to 127.0.0.1? [y/n] (y):

If you confirm, the ports move to 127.0.0.1, and the command prints how to undo it:

deepfellow server env set INTERNAL_BIND_ADDRESS ""

If you decline, the command sets DF_INTERNAL_BIND_ADDRESS to an empty value. The ports stay on all interfaces, and the next update doesn't ask again. With --yes or --non-interactive, the command moves the ports without the question. If .env already sets DF_INTERNAL_BIND_ADDRESS, the command uses that address without the question.

The command changes only the services that the installer creates. A service you added to compose.yaml yourself, such as a reverse proxy, keeps its ports.

The ports move when the server restarts. If you decline the restart at the end of the update, the command prints a warning, and the ports stay on all interfaces until you run deepfellow server restart. When the command moves the ports, it updates the install even if the server already runs the newest image.

Vector Store Attributes

Starting with the release that makes attribute updates take effect in vector store search, the update changes how DeepFellow Server stores file attributes in the vector database:

  • Milvus 2.6.1 or later is required. Installs set up with an older DeepFellow CLI can still run Milvus 2.6.0. On Milvus 2.6.0, attribute updates fail, and the server can't copy the attributes of files added on an earlier version to the vector database.
  • The first start after the update takes a little longer, because the server checks once which vector stores have file attributes. Later starts take as long as before.
  • After the update, the server rewrites the vectors of existing vector stores in the background, so that every vector carries its file's attributes. It starts with the vector stores whose files have attributes right after the start, and updates every other vector store the first time someone searches it. Until the server finishes a vector store, search filters match the files whose attributes you changed on an earlier version by their previous values, and filters on Doc Chunker keys such as headings can still match the chunks of files added on an earlier version.
  • With Milvus, the rewrite takes about as many resources as indexing the same vectors again: while it runs, Milvus uses more CPU and memory, and search can respond more slowly. Update when the load is low, and expect a higher load again when users first search the other vector stores. The server logs Backfilled vector attributes for each vector store it finishes.
  • If you return to an earlier version, search filters don't match the files you added to vector stores on the new version. To make them match again, add these files to their vector stores again.

Qdrant for BM25

Qdrant 1.19.2 or later is required for BM25. Starting with the release that adds hybrid search with BM25, DeepFellow Server creates a vector store with BM25 only on Qdrant 1.19.2 or later:

  • On an older Qdrant, a request that creates a BM25 vector store returns 400 Bad Request with a message that names the required version.
  • Vector stores without BM25 keep working on an older Qdrant, and DF_VECTOR_DATABASE__BM25 defaults to false.
  • Milvus needs no upgrade.

Tool Header Encryption

Starting with the release that encrypts Tool header values, the first start after the update works as follows:

  • The server adds an encryption_key field to config.json. See Encryption Key.
  • A database migration encrypts the header values of existing Tools.

Back up config.json before the update. If you return to an earlier version, the following happens:

  • Tools with encrypted headers stop working, because the earlier version sends the encrypted values as headers.
  • The next configuration change, for example with PUT /admin/config, removes encryption_key from config.json. Before you update again, restore config.json from the backup. Otherwise, the server generates a new key, and the stored headers stay unreadable.

DeepFellow Infra

To update DeepFellow Infra, run:

deepfellow infra update [OPTIONS]

DeepFellow Infra answers /health as soon as it starts. It loads the installed services in the background, so the update no longer waits for them. If a service needs a new Docker image, for example after a new default ollama image, the service shows as installing until the pull finishes. See Loading Services at Start.

On an install made with an earlier CLI version, the command gives the infra port in compose.yaml the DF_INFRA_BIND_ADDRESS host address. While the variable is unset, the port stays on all interfaces. The change only lets you set a bind address later, and it takes effect after a restart.

Both deepfellow infra update and deepfellow server update accept the following options:

  • --tag: updates to the given version, for example --tag 0.42.0. The CLI must support this version. See CLI and Component Versions
  • --image: updates to the given Docker image, for example --image hub.simplito.com/deepfellow/deepfellow-infra:0.42.0
  • --local-image: uses a locally built Docker image instead of pulling one from the registry. It requires --tag or --image with an explicit tag, because the CLI has no way to match a local build to a release
  • --skip-version-check: skips the checks described in CLI and Component Versions. Use it for development only

For DeepFellow Server, --local-image also applies to the Nightshift worker, which runs the server image. deepfellow server update also accepts the Nightshift options described in Nightshift Is Required.

CLI and Component Versions

A version of the DeepFellow CLI works only with the versions of DeepFellow Infra and DeepFellow Server that it supports. The CLI compares the major and minor numbers and ignores the patch number.

CLI versionWorks with Infra and ServerDoesn't work with
0.37.x0.37.x only0.36.x, 0.38.x, 1.x
1.4.x1.0–1.41.5, 2.0, 0.x

While the major version is 0, a minor release breaks compatibility, so the CLI works only with the same minor version. From major version 1 on, the CLI works with the same major version and any minor version up to its own.

  • Without --tag and --image, deepfellow infra install, deepfellow server install, deepfellow infra update, and deepfellow server update choose the newest release that the CLI supports. The commands ignore a release in the registry that the CLI doesn't support. If the CLI supports none of the releases, the command stops and tells you to run deepfellow cli update.
  • With --tag or --image, the commands check the version in the image tag before they ask, create, or change anything. A refused image leaves the installation untouched. For a release newer than the CLI supports, the command stops and tells you to run deepfellow cli update. For an older one, it tells you to use a release that matches the CLI. The check doesn't apply to --local-image.
  • The commands also refuse an image whose version they can't compare with the CLI: one without a tag, with a tag that isn't a version, or given by a digest only. Use an image with a version tag, or pass --skip-version-check.
  • If the registry is unreachable or has no releases, the commands stop instead of choosing an image on their own. Pass the version yourself with --image (--tag on update).
  • The DF_INFRA_IMAGE and DF_SERVER_IMAGE environment variables count as --image, so the commands check them the same way. The commands refuse an image without a version tag.
  • If an installation still runs an image without a version tag, which an earlier CLI version created, the update treats its version as unknown. The update skips the downgrade check and pins the installation to the newest release that the CLI supports.
  • Without --tag and --image, the update commands also stop when the installed version is newer than the newest release that the CLI supports, instead of downgrading silently. Run deepfellow cli update, or pass --tag to downgrade on purpose.
  • --skip-version-check skips these checks on install and update, and prints a warning. Use it for development only, because a release that the CLI doesn't support is not guaranteed to work. For example, deepfellow server update --tag 0.37.0 --skip-version-check installs a release that the CLI doesn't support. Without --tag, the update may downgrade an installed release that is newer than the CLI supports.

To see the versions, run:

deepfellow version

The command prints the version of the CLI and the versions of DeepFellow Infra and DeepFellow Server installed on this machine. Each component version carries its origin:

  • (running): the version of the running container
  • (from configuration, ...): the version from the configuration, when the component is stopped, Docker is unreachable, or the running image has no version

The command skips a component that isn't installed. It looks for DeepFellow Server in the default server directory, which you change with DF_DEFAULT_SERVER_DIR. To print the CLI version only, run deepfellow --version.

DeepFellow CLI 0.38.0
DeepFellow Infra 0.38.0 (running)
DeepFellow Server 0.38.0 (from configuration, stopped)

Models and Services

deepfellow infra update replaces the DeepFellow Infra image only. Models and services that run in their own containers, such as doc_chunker in the custom service, keep the image tag they were installed with. A model card shows that tag as image_version in its configuration. Update each model or service in the Infra Web Panel or with the DeepFellow CLI.

Update a Model: Doc Chunker Example

The examples below move Doc Chunker from v2.2.0 to v2.4.0. Other models with their own Docker image follow the same steps.

In the Infra Web Panel

Open the services view, click custom, and open the ⋮ menu on the doc_chunker card. Click Update.

Actions menu of the doc_chunker card with Update highlighted.

Check the versions in the confirmation window and click "Update". DeepFellow Infra picks the newest release for the hardware the model runs on, recreates the container with the new image, and keeps all other settings.

Confirmation window asking to update doc_chunker from v2.2.0 to v2.4.0.

Wait for the message "doc_chunker updated to v2.4.0." and the green "Installed" label. The image_version line in the card's configuration shows the new tag.

If the model already runs the newest release, Update says so and changes nothing. If the recreation fails, DeepFellow Infra restores the previous settings. See Editing a Service.

Update never picks a variant such as v2.3.0-volta. To choose a version yourself, click Edit Settings in the same menu, select a tag in Docker image version, and click "Save". See Selecting a Docker Image Version.

With the CLI

Update the CLI with deepfellow cli update first, so it has the update and versions commands.

List the versions available for the model. The newest release comes first, and the labels mark the installed, newest, and default versions.

deepfellow infra model versions custom doc_chunker
image: hub.simplito.com/deepfellow/doc-chunker-gpu
- v2.4.0 (newest, default)
- v2.3.0-volta
- v2.3.0
- v2.2.0 (installed)

Update the model. Without --image-version, the command picks the newest release and asks you to confirm.

deepfellow infra model update custom doc_chunker

To choose a version yourself, pass it with --image-version. Put the global --yes option before infra to skip the confirmation.

deepfellow --yes infra model update custom doc_chunker --image-version v2.3.0

Wait for the command to report Model doc_chunker updated., and run deepfellow infra model list custom --installed to confirm that the model is installed.

The command keeps all other settings of the model. To change other settings, pass --set key=value for each one, or --spec with a JSON object. A command with only --set or --spec leaves the image version as it is.

deepfellow infra model update custom doc_chunker --set max_concurrent=4

See deepfellow infra model for all options.

Doc Chunker keeps registered tokenizers and conversion job results under DATA_DIR. The Infra install form mounts no volume there, so an update that recreates the container removes them. Register your tokenizers again after the update, and download finished job results before you start. See Data Storage.

Update a Service

A service that runs in a container, such as ollama, vllm, llamacpp, or sglang, updates the same way.

In the Infra Web Panel, open the ⋮ menu of the service and click Update to move to the newest release. To choose a version yourself, open the service's Settings, click Edit, choose a tag in Docker image version, and click Save. DeepFellow Infra recreates the container with the new image and reloads the installed models. See Selecting a Docker Image Version.

With the CLI, list the versions and update the service. Name an instance of a service as SERVICE|INSTANCE.

deepfellow infra service versions ollama
deepfellow infra service update ollama --image-version 0.12.0

See deepfellow infra service for all options.

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.

On this page