2024-10-31 16:35:13 +08:00
|
|
|
---
|
|
|
|
sidebar_position: 7
|
|
|
|
slug: /upgrade_ragflow
|
|
|
|
---
|
|
|
|
|
|
|
|
# Upgrade RAGFlow
|
|
|
|
|
|
|
|
You can upgrade RAGFlow to dev version or the latest version:
|
|
|
|
|
2024-10-31 17:09:52 +08:00
|
|
|
- A Dev version (Development version) is the latest, tested image.
|
|
|
|
- The latest version is the most recent, officially published release.
|
2024-10-31 16:35:13 +08:00
|
|
|
|
2024-10-31 17:09:52 +08:00
|
|
|
## Upgrade RAGFlow to the dev version
|
2024-10-31 16:35:13 +08:00
|
|
|
|
|
|
|
1. Update **ragflow/docker/.env** as follows:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
RAGFLOW_IMAGE=infiniflow/ragflow:dev
|
|
|
|
```
|
|
|
|
|
2024-11-04 13:21:29 +08:00
|
|
|
2. Pull the latest code from inside Docker:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git pull
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Update RAGFlow image and restart RAGFlow:
|
2024-10-31 16:35:13 +08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
docker compose -f docker/docker-compose.yml pull
|
|
|
|
docker compose -f docker/docker-compose.yml up -d
|
|
|
|
```
|
|
|
|
|
2024-10-31 17:09:52 +08:00
|
|
|
## Upgrade RAGFlow to the latest version
|
2024-10-31 16:35:13 +08:00
|
|
|
|
|
|
|
1. Update **ragflow/docker/.env** as follows:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
RAGFLOW_IMAGE=infiniflow/ragflow:latest
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Update the RAGFlow image and restart RAGFlow:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker compose -f docker/docker-compose.yml pull
|
|
|
|
docker compose -f docker/docker-compose.yml up -d
|
|
|
|
```
|