### What problem does this PR solve? ### Type of change - [x] Documentation Updatetags/v0.13.0
| --- | |||||
| sidebar_position: 7 | |||||
| slug: /upgrade_ragflow | |||||
| --- | |||||
| # Upgrade RAGFlow | |||||
| You can upgrade RAGFlow to dev version or the latest version: | |||||
| - Dev versions are for developers and contributors. They are published on a nightly basis and may crash because they are not fully tested. We cannot guarantee their validity and you are at your own risk trying out latest, untested features. | |||||
| - The latest version refers to the most recent, officially published release. It is stable and works best with regular users. | |||||
| To upgrade RAGFlow to the dev version: | |||||
| Update the RAGFlow image and restart RAGFlow: | |||||
| 1. Update **ragflow/docker/.env** as follows: | |||||
| ```bash | |||||
| RAGFLOW_IMAGE=infiniflow/ragflow:dev | |||||
| ``` | |||||
| 2. Update RAGFlow image and restart RAGFlow: | |||||
| ```bash | |||||
| docker compose -f docker/docker-compose.yml pull | |||||
| docker compose -f docker/docker-compose.yml up -d | |||||
| ``` | |||||
| To upgrade RAGFlow to the latest version: | |||||
| 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 | |||||
| ``` |
| 4. Update **Model Setting**. | 4. Update **Model Setting**. | ||||
| 5. RAGFlow also offers conversation APIs. Hover over your dialogue **>** **Chat Bot API** to integrate RAGFlow's chat capabilities into your applications: | |||||
|  | |||||
| 6. Now, let's start the show: | |||||
| 5. Now, let's start the show: | |||||
|  |  | ||||
|  |  | ||||
| :::tip NOTE | |||||
| RAGFlow also offers HTTP and Python APIs for you to integrate RAGFlow's capabilities into your applications. Read the following documents for more information: | |||||
| - [Acquire a RAGFlow API key](./guides/develop/acquire_ragflow_api_key.md) | |||||
| - [HTTP API reference](./references/http_api_reference.md) | |||||
| - [Python API reference](./references/python_api_reference.md) | |||||
| ::: |
| # HTTP API Reference | # HTTP API Reference | ||||
| This document provides a complete reference for RAGFlow's RESTful API. Before proceeding, please ensure you [have your RAGFlow API key ready for authentication](../guides/develop/acquire_ragflow_api_key.md). | |||||
| A complete reference for RAGFlow's RESTful API. Before proceeding, please ensure you [have your RAGFlow API key ready for authentication](../guides/develop/acquire_ragflow_api_key.md). | |||||
| --- | --- | ||||
| - `'Authorization: Bearer <YOUR_API_KEY>'` | - `'Authorization: Bearer <YOUR_API_KEY>'` | ||||
| - Body: | - Body: | ||||
| - `"content"`: `string` | - `"content"`: `string` | ||||
| - `"important_keywords"`: `string` | |||||
| - `"available"`: `integer` | |||||
| - `"important_keywords"`: `list[string]` | |||||
| - `"available"`: `boolean` | |||||
| #### Request example | #### Request example | ||||
| # Python API Reference | # Python API Reference | ||||
| This document offers a complete reference for RAGFlow's Python APIs. Before proceeding, please ensure you [have your RAGFlow API key ready for authentication](../guides/develop/acquire_ragflow_api_key.md). | |||||
| A complete reference for RAGFlow's Python APIs. Before proceeding, please ensure you [have your RAGFlow API key ready for authentication](../guides/develop/acquire_ragflow_api_key.md). | |||||
| --- | --- | ||||