2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< div  align = "center" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< a  href = "https://demo.ragflow.io/" > 
							 
						 
					
						
							
								
									
										
										
										
											2025-10-15 11:46:24 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< img  src = "web/src/assets/logo-with-text.svg"  width = "520"  alt = "ragflow logo" > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< p  align = "center" > 
							 
						 
					
						
							
								
									
										
										
										
											2025-05-28 18:31:50 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < a  href = "./README.md" > < img  alt = "README in English"  src = "https://img.shields.io/badge/English-DBEDFA" > < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < a  href = "./README_zh.md" > < img  alt = "简体中文版自述文件"  src = "https://img.shields.io/badge/简体中文-DFE0E5" > < / a > 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-16 21:14:50 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < a  href = "./README_tzh.md" > < img  alt = "繁體版中文自述文件"  src = "https://img.shields.io/badge/繁體中文-DFE0E5" > < / a > 
							 
						 
					
						
							
								
									
										
										
										
											2025-05-28 18:31:50 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < a  href = "./README_ja.md" > < img  alt = "日本語のREADME"  src = "https://img.shields.io/badge/日本語-DFE0E5" > < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < a  href = "./README_ko.md" > < img  alt = "한국어"  src = "https://img.shields.io/badge/한국어-DFE0E5" > < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < a  href = "./README_id.md" > < img  alt = "Bahasa Indonesia"  src = "https://img.shields.io/badge/Bahasa Indonesia-DFE0E5" > < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < a  href = "./README_pt_br.md" > < img  alt = "Português(Brasil)"  src = "https://img.shields.io/badge/Português(Brasil)-DFE0E5" > < / a > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< / p > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< p  align = "center" > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < a  href = "https://x.com/intent/follow?screen_name=infiniflowai"  target = "_blank" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < img  src = "https://img.shields.io/twitter/follow/infiniflow?logo=X&color=%20%23f5f5f5"  alt = "follow on X(Twitter)" > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < a  href = "https://demo.ragflow.io"  target = "_blank" > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < img  alt = "Static Badge"  src = "https://img.shields.io/badge/Online-Demo-4e6b99" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / a > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < a  href = "https://hub.docker.com/r/infiniflow/ragflow"  target = "_blank" > 
							 
						 
					
						
							
								
									
										
										
										
											2025-10-23 18:55:41 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < img  src = "https://img.shields.io/docker/pulls/infiniflow/ragflow?label=Docker%20Pulls&color=0db7ed&logo=docker&logoColor=white&style=flat-square"  alt = "docker pull infiniflow/ragflow:v0.21.1" > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < a  href = "https://github.com/infiniflow/ragflow/releases/latest" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < img  src = "https://img.shields.io/github/v/release/infiniflow/ragflow?color=blue&label=Latest%20Release"  alt = "Latest Release" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / a > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < a  href = "https://github.com/infiniflow/ragflow/blob/main/LICENSE" > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < img  height = "21"  src = "https://img.shields.io/badge/License-Apache--2.0-ffffff?labelColor=d4eaf7&color=2e6cc4"  alt = "license" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / a > 
							 
						 
					
						
							
								
									
										
										
										
											2025-05-28 09:29:33 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < a  href = "https://deepwiki.com/infiniflow/ragflow" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < img  alt = "Ask DeepWiki"  src = "https://deepwiki.com/badge.svg" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / a > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< / p > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< h4  align = "center" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < a  href = "https://ragflow.io/docs/dev/" > Document< / a >  |
							 
						 
					
						
							
								
									
										
										
										
											2024-12-27 10:48:11 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < a  href = "https://github.com/infiniflow/ragflow/issues/4214" > Roadmap< / a >  |
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < a  href = "https://twitter.com/infiniflowai" > Twitter< / a >  |
							 
						 
					
						
							
								
									
										
										
										
											2025-04-07 12:18:43 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < a  href = "https://discord.gg/NjYzJD3GM3" > Discord< / a >  |
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < a  href = "https://demo.ragflow.io" > Demo< / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / h4 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-05-28 18:31:50 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								#
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  align = "center" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< a  href = "https://trendshift.io/repositories/9064"  target = "_blank" > < img  src = "https://trendshift.io/api/badge/repositories/9064"  alt = "infiniflow%2Fragflow | Trendshift"  style = "width: 250px; height: 55px;"  width = "250"  height = "55" / > < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< details  open > 
							 
						 
					
						
							
								
									
										
										
										
											2025-01-27 15:45:16 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< summary > < b > 📕 Table of Contents< / b > < / summary > 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  💡 [What is RAGFlow? ](#-what-is-ragflow )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  🎮 [Demo ](#-demo )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  📌 [Latest Updates ](#-latest-updates )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  🌟 [Key Features ](#-key-features )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  🔎 [System Architecture ](#-system-architecture )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  🎬 [Get Started ](#-get-started )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  🔧 [Configurations ](#-configurations )
							 
						 
					
						
							
								
									
										
										
										
											2024-10-11 14:34:31 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  🔧 [Build a docker image without embedding models ](#-build-a-docker-image-without-embedding-models )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  🔧 [Build a docker image including embedding models ](#-build-a-docker-image-including-embedding-models )
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  🔨 [Launch service from source for development ](#-launch-service-from-source-for-development )
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  📚 [Documentation ](#-documentation )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  📜 [Roadmap ](#-roadmap )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  🏄 [Community ](#-community )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  🙌 [Contributing ](#-contributing )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / details > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## 💡 What is RAGFlow?
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-09-04 11:16:42 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								[RAGFlow ](https://ragflow.io/ ) is a leading open-source Retrieval-Augmented Generation (RAG) engine that fuses cutting-edge RAG with Agent capabilities to create a superior context layer for LLMs. It offers a streamlined RAG workflow adaptable to enterprises of any scale. Powered by a converged context engine and pre-built agent templates, RAGFlow enables developers to transform complex data into high-fidelity, production-ready AI systems with exceptional efficiency and precision.
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## 🎮 Demo
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Try our demo at [https://demo.ragflow.io ](https://demo.ragflow.io ).
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< div  align = "center"  style = "margin-top:20px;margin-bottom:20px;" > 
							 
						 
					
						
							
								
									
										
										
										
											2025-08-01 20:42:12 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< img  src = "https://raw.githubusercontent.com/infiniflow/ragflow-docs/refs/heads/image/image/chunking.gif"  width = "1200" / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< img  src = "https://raw.githubusercontent.com/infiniflow/ragflow-docs/refs/heads/image/image/agentic-dark.gif"  width = "1200" / > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## 🔥 Latest Updates
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-15 09:58:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  2025-10-15 Supports orchestrable ingestion pipeline.
							 
						 
					
						
							
								
									
										
										
										
											2025-08-08 11:54:40 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  2025-08-08 Supports OpenAI's latest GPT-5 series models.
							 
						 
					
						
							
								
									
										
										
										
											2025-08-05 20:27:43 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  2025-08-01 Supports agentic workflow and MCP.
							 
						 
					
						
							
								
									
										
										
										
											2025-05-28 18:31:50 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  2025-05-23 Adds a Python/JavaScript code executor component to Agent.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  2025-05-05 Supports cross-language query.
							 
						 
					
						
							
								
									
										
										
										
											2025-04-14 14:45:37 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  2025-03-19 Supports using a multi-modal model to make sense of images within PDF or DOCX files.
							 
						 
					
						
							
								
									
										
										
										
											2025-03-05 17:54:34 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  2025-02-28 Combined with Internet search (Tavily), supports reasoning like Deep Research for any LLMs.
							 
						 
					
						
							
								
									
										
										
										
											2025-02-28 16:09:40 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  2024-12-18 Upgrades Document Layout Analysis model in DeepDoc.
							 
						 
					
						
							
								
									
										
										
										
											2024-08-23 16:32:17 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  2024-08-22 Support text to SQL statements through RAG.
							 
						 
					
						
							
								
									
										
										
										
											2024-09-09 16:36:52 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-30 16:21:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## 🎉 Stay Tuned
 
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								⭐️ Star our repository to stay up-to-date with exciting new features and improvements! Get instant notifications for new
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								releases! 🌟
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-30 16:21:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< div  align = "center"  style = "margin-top:20px;margin-bottom:20px;" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< img  src = "https://github.com/user-attachments/assets/18c9707e-b8aa-4caf-a154-037089c105ba"  width = "1200" / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## 🌟 Key Features
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### 🍭 **"Quality in, quality out"**
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  [Deep document understanding ](./deepdoc/README.md )-based knowledge extraction from unstructured data with complicated
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  formats.
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Finds "needle in a data haystack" of literally unlimited tokens.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### 🍱 **Template-based chunking**
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Intelligent and explainable.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Plenty of template options to choose from.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### 🌱 **Grounded citations with reduced hallucinations**
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Visualization of text chunking to allow human intervention.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Quick view of the key references and traceable citations to support grounded answers.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### 🍔 **Compatibility with heterogeneous data sources**
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Supports Word, slides, excel, txt, images, scanned copies, structured data, web pages, and more.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### 🛀 **Automated and effortless RAG workflow**
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Streamlined RAG orchestration catered to both personal and large businesses.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Configurable LLMs as well as embedding models.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Multiple recall paired with fused re-ranking.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Intuitive APIs for seamless integration with business.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## 🔎 System Architecture
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  align = "center"  style = "margin-top:20px;margin-bottom:20px;" > 
							 
						 
					
						
							
								
									
										
										
										
											2025-10-16 14:30:55 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< img  src = "https://github.com/user-attachments/assets/31b0dd6f-ca4f-445a-9457-70cb44a381b2"  width = "1000" / > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## 🎬 Get Started
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### 📝 Prerequisites
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  CPU >= 4 cores
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  RAM >= 16 GB
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Disk >= 50 GB
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Docker >= 24.0.0 &  Docker Compose >= v2.26.1
							 
						 
					
						
							
								
									
										
										
										
											2025-05-16 16:28:21 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  [gVisor ](https://gvisor.dev/docs/user_guide/install/ ): Required only if you intend to use the code executor (sandbox) feature of RAGFlow.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								>  [!TIP]
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								>  If you have not installed Docker on your local machine (Windows, Mac, or Linux), see [Install Docker Engine](https://docs.docker.com/engine/install/).
 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### 🚀 Start up the server
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								1.  Ensure `vm.max_map_count`  >= 262144:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  To check the value of `vm.max_map_count`:
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  ```bash
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  $ sysctl vm.max_map_count
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  ```
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  Reset `vm.max_map_count` to a value at least 262144 if it is not.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  ```bash
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  # In this case, we set it to 262144:
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  $ sudo sysctl -w vm.max_map_count=262144
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  ```
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   >  This change will be reset after a system reboot. To ensure your change remains permanent, add or update the
 
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   >  `vm.max_map_count` value in **/etc/sysctl.conf** accordingly:
 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   >
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  ```bash
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  vm.max_map_count=262144
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  ```
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								2.  Clone the repo:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   $ git clone https://github.com/infiniflow/ragflow.git
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-12-09 12:44:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								3.  Start up the server using the pre-built Docker images:
							 
						 
					
						
							
								
									
										
										
										
											2024-10-10 19:24:54 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-03-04 19:21:28 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								>  [!CAUTION]
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								>  All Docker images are built for x86 platforms. We don't currently offer Docker images for ARM64.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								>  If you are on an ARM64 platform, follow [this guide](https://ragflow.io/docs/dev/build_docker_image) to build a Docker image compatible with your system.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-23 23:02:27 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   >  The command below downloads the `v0.21.1-slim` edition of the RAGFlow Docker image. See the following table for descriptions of different RAGFlow editions. To download a RAGFlow edition different from `v0.21.1-slim`, update the `RAGFLOW_IMAGE` variable accordingly in **docker/.env** before using `docker compose` to start the server.
 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
									
										
										
										
											2025-02-19 13:19:36 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   $ cd ragflow/docker
							 
						 
					
						
							
								
									
										
										
										
											2025-03-17 09:51:13 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   # Use CPU for embedding and DeepDoc tasks:
							 
						 
					
						
							
								
									
										
										
										
											2025-02-19 13:19:36 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   $ docker compose -f docker-compose.yml up -d
							 
						 
					
						
							
								
									
										
										
										
											2025-03-17 09:51:13 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   # To use GPU to accelerate embedding and DeepDoc tasks:
							 
						 
					
						
							
								
									
										
										
										
											2025-10-23 23:02:27 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   # sed -i '1i DEVICE=gpu' .env
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   # docker compose -f docker-compose.yml up -d
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-12-12 09:57:52 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   | RAGFlow image tag | Image size (GB) | Has embedding models? | Stable?                  |
							 
						 
					
						
							
								
									
										
										
										
											2025-01-27 15:45:16 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   |-------------------|-----------------|-----------------------|--------------------------|
							 
						 
					
						
							
								
									
										
										
										
											2025-10-23 23:02:27 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   | v0.21.1           | ≈ 9       | ✔️                    | Stable release           |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   | v0.21.1-slim      | ≈ 2       | ❌                    | Stable release           |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   | nightly           | ≈ 2       | ❌                    | _Unstable_  nightly build |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  Note: Starting with `v0.22.0`, we ship only the slim edition and no longer append the **-slim** suffix to the image tag.
 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								4.  Check the server status after having the server up and running:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-23 23:02:27 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   $ docker logs -f docker-ragflow-cpu-1
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   _The following output confirms a successful launch of the system:_ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
									
										
										
										
											2024-09-30 16:21:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								         ____    ___    ______  ______  __ 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-30 16:21:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        / __  \ /   |  / ____ // ____ // /____  _      __ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       / /_/ // /| | / / __  / /_   / // __  \| | /| / /
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      / _, _ // ___ |/ /_/ // __ /  / // /_/ /| |/ |/ /
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     /_/ |_|/_/  |_|\____//_/    /_/ \____/ |__/|__/
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    *  Running on all addresses (0.0.0.0)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-11-14 00:08:55 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   >  If you skip this confirmation step and directly log in to RAGFlow, your browser may prompt a `network anormal`
 
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   >  error because, at that moment, your RAGFlow may not be fully initialized.
 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								5.  In your web browser, enter the IP address of your server and log in to RAGFlow.
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   >  With the default settings, you only need to enter `http://IP_OF_YOUR_MACHINE` (**sans** port number) as the default
 
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   >  HTTP serving port `80` can be omitted when using the default configurations.
 
							 
						 
					
						
							
								
									
										
										
										
											2024-11-12 15:56:53 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								6.  In [service_conf.yaml.template ](./docker/service_conf.yaml.template ), select the desired LLM factory in `user_default_llm`  and update
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   the `API_KEY`  field with the corresponding API key.
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   >  See [llm_api_key_setup](https://ragflow.io/docs/dev/llm_api_key_setup) for more information.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-26 16:15:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   _The show is on!_ 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## 🔧 Configurations
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								When it comes to system configurations, you will need to manage the following files:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  [.env ](./docker/.env ): Keeps the fundamental setups for the system, such as `SVR_HTTP_PORT` , `MYSQL_PASSWORD` , and
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  `MINIO_PASSWORD` .
							 
						 
					
						
							
								
									
										
										
										
											2024-11-12 15:56:53 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  [service_conf.yaml.template ](./docker/service_conf.yaml.template ): Configures the back-end services. The environment variables in this file will be automatically populated when the Docker container starts. Any environment variables set within the Docker container will be available for use, allowing you to customize service behavior based on the deployment environment.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [docker-compose.yml ](./docker/docker-compose.yml ): The system relies on [docker-compose.yml ](./docker/docker-compose.yml ) to start up.
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								>  The [./docker/README](./docker/README.md) file provides a detailed description of the environment settings and service
 
							 
						 
					
						
							
								
									
										
										
										
											2024-11-12 15:56:53 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								>  configurations which can be used as `${ENV_VARS}` in the [service_conf.yaml.template](./docker/service_conf.yaml.template) file.
 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								To update the default HTTP serving port (80), go to [docker-compose.yml ](./docker/docker-compose.yml ) and change `80:80` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								to `<YOUR_SERVING_PORT>:80` .
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-24 11:46:03 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Updates to the above configurations require a reboot of all containers to take effect:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								>  ```bash
 
							 
						 
					
						
							
								
									
										
										
										
											2025-02-19 13:19:36 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								>  $ docker compose -f docker-compose.yml up -d
 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								>  ```
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-11-14 00:08:55 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### Switch doc engine from Elasticsearch to Infinity
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								RAGFlow uses Elasticsearch by default for storing full text and vectors. To switch to [Infinity ](https://github.com/infiniflow/infinity/ ), follow these steps:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								1.  Stop all running containers:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   $ docker compose -f docker/docker-compose.yml down -v
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
									
										
										
										
											2025-02-26 19:03:50 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								>  [!WARNING]
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								>  `-v` will delete the docker container volumes, and the existing data will be cleared.
 
							 
						 
					
						
							
								
									
										
										
										
											2024-11-14 00:08:55 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								2.  Set `DOC_ENGINE`  in **docker/.env**  to `infinity` .
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								3.  Start the containers:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
									
										
										
										
											2025-02-19 13:19:36 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   $ docker compose -f docker-compose.yml up -d
							 
						 
					
						
							
								
									
										
										
										
											2024-11-14 00:08:55 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								>  [!WARNING]
 
							 
						 
					
						
							
								
									
										
										
										
											2024-11-14 00:08:55 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								>  Switching to Infinity on a Linux/arm64 machine is not yet officially supported.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-10-02 19:43:22 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## 🔧 Build a Docker image without embedding models
 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-12-09 12:44:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								This image is approximately 2 GB in size and relies on external LLM and embedding services.
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								git clone https://github.com/infiniflow/ragflow.git
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								cd ragflow/
							 
						 
					
						
							
								
									
										
										
										
											2025-04-13 23:07:39 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								docker build --platform linux/amd64 -f Dockerfile -t infiniflow/ragflow:nightly .
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## 🔨 Launch service from source for development
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-08-28 09:53:16 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								1.  Install `uv`  and `pre-commit` , or skip this step if they are already installed:
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
									
										
										
										
											2025-04-24 00:25:33 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   pipx install uv pre-commit
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								2.  Clone the source code and install Python dependencies:
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   git clone https://github.com/infiniflow/ragflow.git
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   cd ragflow/
							 
						 
					
						
							
								
									
										
										
										
											2025-10-23 23:02:27 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   uv sync --python 3.10 # install RAGFlow dependent python modules
							 
						 
					
						
							
								
									
										
										
										
											2025-05-06 14:39:05 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   uv run download_deps.py
							 
						 
					
						
							
								
									
										
										
										
											2025-04-24 00:25:33 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   pre-commit install
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								3.  Launch the dependent services (MinIO, Elasticsearch, Redis, and MySQL) using Docker Compose:
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   docker compose -f docker/docker-compose-base.yml up -d
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-11-12 15:56:53 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   Add the following line to `/etc/hosts`  to resolve all hosts specified in **docker/.env**  to `127.0.0.1` :
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
									
										
										
										
											2025-05-16 11:14:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   127.0.0.1       es01 infinity mysql minio redis sandbox-executor-manager
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								4.  If you cannot access HuggingFace, set the `HF_ENDPOINT`  environment variable to use a mirror site:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   export HF_ENDPOINT=https://hf-mirror.com
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-05-14 15:44:24 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								5.  If your operating system does not have jemalloc, please install it as follows:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-05-14 14:24:30 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
									
										
										
										
											2025-09-30 19:15:01 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   # Ubuntu
							 
						 
					
						
							
								
									
										
										
										
											2025-05-14 14:24:30 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   sudo apt-get install libjemalloc-dev
							 
						 
					
						
							
								
									
										
										
										
											2025-09-30 19:15:01 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   # CentOS
							 
						 
					
						
							
								
									
										
										
										
											2025-05-14 14:24:30 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   sudo yum install jemalloc
							 
						 
					
						
							
								
									
										
										
										
											2025-09-30 19:15:01 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   # OpenSUSE
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   sudo zypper install jemalloc
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   # macOS
							 
						 
					
						
							
								
									
										
										
										
											2025-09-03 10:50:39 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   sudo brew install jemalloc
							 
						 
					
						
							
								
									
										
										
										
											2025-05-14 14:24:30 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
									
										
										
										
											2025-09-04 11:16:42 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-05-14 14:24:30 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								6.  Launch backend service:
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   source .venv/bin/activate
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   export PYTHONPATH=$(pwd)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   bash docker/launch_backend_service.sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-05-14 14:24:30 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								7.  Install frontend dependencies:
							 
						 
					
						
							
								
									
										
										
										
											2025-05-14 15:44:24 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   cd web
							 
						 
					
						
							
								
									
										
										
										
											2024-12-30 18:19:58 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   npm install
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
									
										
										
										
											2025-05-14 15:44:24 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-05-14 14:24:30 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								8.  Launch frontend service:
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
									
										
										
										
											2025-01-21 00:22:29 -03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   npm run dev
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   _The following output confirms a successful launch of the system:_ 
							 
						 
					
						
							
								
									
										
										
										
											2024-09-29 16:28:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-05-14 15:44:24 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								9.  Stop RAGFlow front-end and back-end service after development is complete:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   pkill -f "ragflow_server.py|task_executor.py"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## 📚 Documentation
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [Quickstart ](https://ragflow.io/docs/dev/ )
							 
						 
					
						
							
								
									
										
										
										
											2025-03-18 19:49:06 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  [Configuration ](https://ragflow.io/docs/dev/configurations )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [Release notes ](https://ragflow.io/docs/dev/release_notes )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [User guides ](https://ragflow.io/docs/dev/category/guides )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [Developer guides ](https://ragflow.io/docs/dev/category/developers )
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  [References ](https://ragflow.io/docs/dev/category/references )
							 
						 
					
						
							
								
									
										
										
										
											2025-03-18 19:49:06 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  [FAQs ](https://ragflow.io/docs/dev/faq )
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## 📜 Roadmap
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-12-27 10:48:11 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								See the [RAGFlow Roadmap 2025 ](https://github.com/infiniflow/ragflow/issues/4214 )
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## 🏄 Community
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-04-07 12:18:43 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  [Discord ](https://discord.gg/NjYzJD3GM3 )
							 
						 
					
						
							
								
									
										
										
										
											2024-08-08 23:59:26 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  [Twitter ](https://twitter.com/infiniflowai )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [GitHub Discussions ](https://github.com/orgs/infiniflow/discussions )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## 🙌 Contributing
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-10-29 21:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								RAGFlow flourishes via open-source collaboration. In this spirit, we embrace diverse contributions from the community.
							 
						 
					
						
							
								
									
										
										
										
											2025-05-16 16:28:21 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								If you would like to be a part, review our [Contribution Guidelines ](https://ragflow.io/docs/dev/contributing ) first.