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