2024-11-18 19:07:05 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								---
							 
						 
					
						
							
								
									
										
										
										
											2024-11-25 14:31:01 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								sidebar_position: 11
							 
						 
					
						
							
								
									
										
										
										
											2024-11-18 19:07:05 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								slug: /upgrade_ragflow
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# Upgrade RAGFlow
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								import Tabs from '@theme/Tabs';
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								import TabItem from '@theme/TabItem';
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-12-09 12:44:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Upgrade RAGFlow to `nightly-slim`/`nightly` or the latest, published release.
							 
						 
					
						
							
								
									
										
										
										
											2024-11-25 17:29:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-12-09 12:44:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## Upgrade RAGFlow to `nightly-slim`/`nightly`, the most recent, tested Docker image
							 
						 
					
						
							
								
									
										
										
										
											2024-11-25 17:29:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-12-09 12:44:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								`nightly-slim` refers to the RAGFlow Docker image *without* embedding models, while `nightly` refers to the RAGFlow Docker image with embedding models. For details on their differences, see [ragflow/docker/.env](https://github.com/infiniflow/ragflow/blob/main/docker/.env).
							 
						 
					
						
							
								
									
										
										
										
											2024-11-28 14:57:50 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								To upgrade RAGFlow, you must upgrade **both** your code **and** your 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-25 17:29:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								2. Update **ragflow/docker/.env**:
							 
						 
					
						
							
								
									
										
										
										
											2024-11-18 19:07:05 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-11-25 17:29:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								<Tabs
							 
						 
					
						
							
								
									
										
										
										
											2024-12-09 12:44:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  defaultValue="nightly-slim"
							 
						 
					
						
							
								
									
										
										
										
											2024-11-25 17:29:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  values={[
							 
						 
					
						
							
								
									
										
										
										
											2024-12-09 12:44:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    {label: 'nightly-slim', value: 'nightly-slim'},
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    {label: 'nightly', value: 'nightly'},
							 
						 
					
						
							
								
									
										
										
										
											2024-11-25 17:29:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  ]}>
							 
						 
					
						
							
								
									
										
										
										
											2024-12-09 12:44:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  <TabItem value="nightly-slim">
							 
						 
					
						
							
								
									
										
										
										
											2024-11-25 17:29:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```bash
							 
						 
					
						
							
								
									
										
										
										
											2024-12-09 12:44:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								RAGFLOW_IMAGE=infiniflow/ragflow:nightly-slim
							 
						 
					
						
							
								
									
										
										
										
											2024-11-25 17:29:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  </TabItem>
							 
						 
					
						
							
								
									
										
										
										
											2024-12-09 12:44:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  <TabItem value="nightly">
							 
						 
					
						
							
								
									
										
										
										
											2024-11-25 17:29:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```bash
							 
						 
					
						
							
								
									
										
										
										
											2024-12-09 12:44:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								RAGFLOW_IMAGE=infiniflow/ragflow:nightly
							 
						 
					
						
							
								
									
										
										
										
											2024-11-25 17:29:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  </TabItem>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								</Tabs>
							 
						 
					
						
							
								
									
										
										
										
											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-25 17:29:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## Upgrade RAGFlow to the most recent, officially published release
							 
						 
					
						
							
								
									
										
										
										
											2024-11-18 19:07:05 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-11-28 14:57:50 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								To upgrade RAGFlow, you must upgrade **both** your code **and** your Docker image:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											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-28 20:09:20 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								2. Switch to the latest, officially published release, e.g., `v0.14.1`:
							 
						 
					
						
							
								
									
										
										
										
											2024-11-18 19:07:05 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-11-19 14:59:21 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
									
										
										
										
											2024-12-09 12:44:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   git checkout -f v0.14.1
							 
						 
					
						
							
								
									
										
										
										
											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
							 
						 
					
						
							
								
									
										
										
										
											2024-11-28 20:09:20 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   RAGFLOW_IMAGE=infiniflow/ragflow:v0.14.1
							 
						 
					
						
							
								
									
										
										
										
											2024-11-19 14:59:21 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
									
										
										
										
											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
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```