2024-11-18 19:07:05 +08:00
|
|
|
---
|
|
|
|
sidebar_position: 7
|
|
|
|
slug: /upgrade_ragflow
|
|
|
|
---
|
|
|
|
|
|
|
|
# Upgrade RAGFlow
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
## Upgrade RAGFlow to `dev`, the most recent, tested Docker image
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
1. Clone the repo
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
```bash
|
|
|
|
git clone https://github.com/infiniflow/ragflow.git
|
|
|
|
```
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
2. Update **ragflow/docker/.env** as follows:
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
```bash
|
|
|
|
RAGFLOW_IMAGE=infiniflow/ragflow:dev
|
|
|
|
```
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
3. Update RAGFlow image and restart RAGFlow:
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
```bash
|
|
|
|
docker compose -f docker/docker-compose.yml pull
|
|
|
|
docker compose -f docker/docker-compose.yml up -d
|
|
|
|
```
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
## Upgrade RAGFlow to `latest`, the most recent, officially published release
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
1. Clone the repo
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
```bash
|
|
|
|
git clone https://github.com/infiniflow/ragflow.git
|
|
|
|
```
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-23 17:06:22 +08:00
|
|
|
2. Switch to the latest, officially published release, e.g., `v0.13.0`:
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
```bash
|
2024-11-23 17:06:22 +08:00
|
|
|
git checkout v0.13.0
|
2024-11-19 14:59:21 +08:00
|
|
|
```
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
3. Update **ragflow/docker/.env** as follows:
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
```bash
|
|
|
|
RAGFLOW_IMAGE=infiniflow/ragflow:latest
|
|
|
|
```
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
4. Update the RAGFlow image and restart RAGFlow:
|
2024-11-18 19:07:05 +08:00
|
|
|
|
2024-11-19 14:59:21 +08:00
|
|
|
```bash
|
|
|
|
docker compose -f docker/docker-compose.yml pull
|
|
|
|
docker compose -f docker/docker-compose.yml up -d
|
|
|
|
```
|