Skip to content

Commit

Permalink
Synchronize documentation. (#152)
Browse files Browse the repository at this point in the history
Co-authored-by: RAGFlow Curator <[email protected]>
  • Loading branch information
infinityCurator and RAGFlow Curator authored Nov 19, 2024
1 parent 3d6a885 commit 0fc2596
Showing 1 changed file with 32 additions and 39 deletions.
71 changes: 32 additions & 39 deletions website/docs/guides/upgrade_ragflow.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,57 +7,50 @@ 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
2. Update **ragflow/docker/.env** as follows:

Update **ragflow/docker/.env** as follows:
```bash
RAGFLOW_IMAGE=infiniflow/ragflow:dev
```

<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">
3. Update RAGFlow image and restart RAGFlow:

:::danger IMPORTANT
The Dev version (Development version) is the latest, tested Docker image of RAGFlow.
:::
```bash
docker compose -f docker/docker-compose.yml pull
docker compose -f docker/docker-compose.yml up -d
```

```bash
RAGFLOW_IMAGE=infiniflow/ragflow:dev
```
## Upgrade RAGFlow to `latest`, the most recent, officially published release

</TabItem>
<TabItem value="latest">
1. Clone the repo

:::danger IMPORTANT
The latest version is the most recent, officially published release. For example, `v0.13.0`.
:::
```bash
git clone https://github.com/infiniflow/ragflow.git
```

```bash
RAGFLOW_IMAGE=infiniflow/ragflow:latest
```
2. Switch to the latest, officially published release, e.g., `v0.13.0`:

</TabItem>
</Tabs>
```bash
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
git pull
```
4. Update the 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
```
```bash
docker compose -f docker/docker-compose.yml pull
docker compose -f docker/docker-compose.yml up -d
```

0 comments on commit 0fc2596

Please sign in to comment.