### What problem does this PR solve?



### Type of change

- [x] Documentation Update
This commit is contained in:
writinwaters 2024-11-19 14:59:21 +08:00 committed by GitHub
parent d42362deb6
commit e4280be5e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,57 +7,50 @@ slug: /upgrade_ragflow
import Tabs from '@theme/Tabs'; import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem'; import TabItem from '@theme/TabItem';
You can upgrade RAGFlow to the dev version or the latest version: ## Upgrade RAGFlow to `dev`, the most recent, tested Docker image
- The Dev version (Development version) is the latest, tested Docker image of RAGFlow. 1. Clone the repo
- The latest version is the most recent, officially published release. For example, `v0.13.0`.
```bash
git clone https://github.com/infiniflow/ragflow.git
```
## 1. Update RAGFLOW_IMAGE 2. Update **ragflow/docker/.env** as follows:
Update **ragflow/docker/.env** as follows: ```bash
RAGFLOW_IMAGE=infiniflow/ragflow:dev
```
<Tabs 3. Update RAGFlow image and restart RAGFlow:
defaultValue="dev"
values={[
{label: 'Upgrade RAGFlow to the dev version', value: 'dev'},
{label: 'Upgrade RAGFlow to the latest version', value: 'latest'}
]}>
<TabItem value="dev">
:::danger IMPORTANT ```bash
The Dev version (Development version) is the latest, tested Docker image of RAGFlow. docker compose -f docker/docker-compose.yml pull
::: docker compose -f docker/docker-compose.yml up -d
```
```bash ## Upgrade RAGFlow to `latest`, the most recent, officially published release
RAGFLOW_IMAGE=infiniflow/ragflow:dev
```
</TabItem> 1. Clone the repo
<TabItem value="latest">
:::danger IMPORTANT ```bash
The latest version is the most recent, officially published release. For example, `v0.13.0`. git clone https://github.com/infiniflow/ragflow.git
::: ```
```bash 2. Switch to the latest, officially published release, e.g., `v0.13.0`:
RAGFLOW_IMAGE=infiniflow/ragflow:latest
```
</TabItem> ```bash
</Tabs> git checkout v0.13.0
```
## 2. Pull the latest code 3. Update **ragflow/docker/.env** as follows:
Pull the latest code from inside Docker: ```bash
RAGFLOW_IMAGE=infiniflow/ragflow:latest
```
```bash 4. Update the RAGFlow image and restart RAGFlow:
git pull
```
## 3. Update RAGFlow image and restart RAGFlow ```bash
docker compose -f docker/docker-compose.yml pull
```bash docker compose -f docker/docker-compose.yml up -d
docker compose -f docker/docker-compose.yml pull ```
docker compose -f docker/docker-compose.yml up -d
```