Skip to content
FossShelf
Home / Categories / For AI Engineers

ragflow

Open-source RAG engine with document parsing and agent orchestration

Replaces Vectara, Azure Ai Search, Amazon Bedrock Knowledge Bases

94.27K starsApache-2.0reviewed 13 Aug 2026last commit 13 Nov 2026
Screenshot of ragflow

Who it's for

AI Engineers Building Production RAG Systems

RAGFlow provides a full ingestion-to-retrieval pipeline with configurable chunking, hybrid search, and re-ranking out of the box. Engineers can connect it to any LLM backend via API, expose results through the Python SDK, and build agents that combine RAG with external tool calls and MCP integrations.

If your documents are already in clean structured format (CSV, JSON, database exports) and do not require complex extraction, a lighter-weight vector store plus a simple embedding pipeline may be faster to operate than a full RAGFlow deployment.

Enterprise Teams with Document-Heavy Knowledge Bases

Organizations with large libraries of PDFs, scanned documents, legal filings, technical manuals, or financial reports benefit from RAGFlow's deep document parsing and citation tracking. The pipeline handles mixed layouts and image-heavy content that simpler tools drop. Data synchronization from Google Drive, Notion, Confluence, and S3 reduces manual ingestion work.

If your team lacks the infrastructure budget or technical staff to operate a multi-service Docker Compose stack (Elasticsearch, MinIO, Redis, MySQL), start with the managed cloud tier before committing to a self-hosted deployment.

Researchers and Analysts Building AI Workflows

The visual workflow builder lets analysts construct multi-step research pipelines that pull from RAG knowledge bases, call external APIs, and synthesize results. Pre-built workflow templates for equity research and legal precedent analysis provide starting points for domain-specific applications without writing agent code from scratch.

If the target use case is conversational chat over a small, stable document set of a few hundred pages or less, simpler RAG toolkits with less infrastructure overhead will likely be sufficient.

Platform Teams Adding AI Context to Internal Tools

RAGFlow's API exposes retrieval and agent execution endpoints that integrate into existing applications. Multi-channel chat deployment across Feishu, Discord, Telegram, and Line lets platform teams surface knowledge base answers inside the communication tools their organization already uses.

If the organization already runs a managed search service and is satisfied with answer quality, migrating to RAGFlow adds infrastructure burden without necessarily improving results for simpler workloads.

The problem

Building reliable AI applications on top of LLMs requires accurate, relevant context. Naive approaches, such as dumping raw document text into a prompt, produce hallucinated answers because the LLM receives poor-quality input with no way to trace which source generated a given claim. Enterprises face this challenge acutely when deploying AI over legal documents, financial reports, technical manuals, or internal knowledge bases where accuracy and citation matter. The deeper pain is document complexity. Most real-world enterprise documents contain tables, scanned images, mixed layouts, and multi-column text that standard text extractors misread or drop entirely. A broken ingestion step at the top of the RAG pipeline poisons every answer downstream, and fixing it requires either significant custom engineering or paying for proprietary services that process your documents on third-party servers.

How it works

Deep Document Understanding

Extracts knowledge from PDFs, Word files, Excel sheets, images, scanned copies, and web pages. Parsing goes beyond plain text extraction, identifying tables, figures, and structured sections within complex layouts. Multi-modal model integration handles image content embedded in PDFs and DOCX files.

Template-Based Chunking

Divides document content into semantically meaningful chunks using configurable templates rather than fixed-length splits. Chunking is inspectable: the UI visualizes each chunk so teams can review and intervene before content reaches the search index. Multiple template types cover different document formats and retrieval needs.

Hybrid Search with Multi-Stage Re-ranking

Combines vector similarity search, BM25 full-text search, and custom scoring functions in parallel. A multi-stage re-ranking step fuses results to surface the most relevant chunks. This combination outperforms single-method retrieval for queries that mix semantic intent and keyword signals.

Heterogeneous Data Source Support

Accepts Word, Excel, PowerPoint, TXT, images, scanned copies, structured data, and web pages in one pipeline. Syncs data from Confluence, S3, Notion, Discord, and Google Drive. An orchestrable ingestion pipeline configures how each source type is processed and indexed.

Agentic Workflow Orchestration

Provides a visual workflow builder for constructing multi-step AI agents that combine RAG retrieval, external tool calls, and MCP (Model Context Protocol) integrations. Pre-built agent templates cover equity investment research, legal precedent analysis, and manufacturing maintenance. Supports Python and JavaScript code executor components inside agent graphs.

Multi-Channel Chat and LLM Compatibility

Deploys chat interfaces across Feishu, Discord, Telegram, and Line from the same agent configuration. Supports multiple LLM backends including GPT-5, Gemini 3 Pro, and DeepSeek v4. Embedding models are also configurable to match the LLM choice.

Features

  • Deep Document Understanding
  • Template-Based Chunking
  • Hybrid Search with Multi-Stage Re-ranking
  • Heterogeneous Data Source Support
  • Agentic Workflow Orchestration
  • Multi-Channel Chat and LLM Compatibility

How to install

Self-hosting uses Docker Compose with Elasticsearch and MinIO bundled in the stack.

git clone https://github.com/infiniflow/ragflow.git
cd ragflow/docker
docker compose -f docker-compose.yml up -d

Recommended for this setup

Strengths

  • Grounded Citations with Visualized Chunking: RAGFlow surfaces the exact text chunks that informed each answer and makes them traceable to the source document. The chunk visualization lets users inspect and correct ingestion before deployment, which matters for regulated industries where wrong citations carry real risk. This distinguishes it from black-box RAG pipelines where retrieval decisions are invisible.
  • Apache-2.0 License for Commercial Use: The Apache-2.0 license lets teams run RAGFlow commercially with no licensing fees and no copyleft obligations. Unlike AGPL-licensed alternatives that require publishing source modifications when running as a network service, Apache-2.0 imposes no such restriction, making it safe for proprietary internal deployments.
  • 87k Stars and Active Development: RAGFlow had 87,550 GitHub stars and 10,310 forks, placing it among the most-starred RAG projects on GitHub. The project received regular updates through August 2026, including MCP support, multi-channel chat deployment, DeepSeek v4 integration, and memory support for AI agents, signaling sustained investment.
  • Enterprise Deployment Flexibility: Supports self-hosted Docker Compose deployment and a managed cloud with a free tier and paid plans starting at $29/month. Enterprise customers get BYOC (Bring Your Own Cloud) deployment, on-premises installation, dedicated support, and custom SLAs. This range covers organizations that cannot send documents to third-party APIs.

Trade-offs

  • Heavy Infrastructure Requirements: Self-hosting requires at least 4 CPU cores, 16 GB RAM, and 50 GB disk, plus Docker 24+ and Docker Compose v2.26.1+. The bundled stack includes Elasticsearch, MinIO, Redis, and MySQL, which together consume significant memory even at idle. Teams with lightweight VPS deployments or limited infrastructure budget will find this prohibitive.
  • x86 Only: No ARM64 Docker Images: Docker images are built for x86 platforms only. ARM64 users (Apple Silicon Macs, ARM-based cloud instances) must build their own Docker image from source, which adds build time and maintenance overhead. This is documented as a current platform limitation with no stated timeline for official ARM64 support.
  • High Open Issue Count: The repository had 1,881 open issues. For a project created in December 2023, this indicates a fast-moving codebase where not all edge cases or user reports have been addressed. Production deployments should plan for active monitoring and budget time for debugging ingestion edge cases.

Tech stack

Languages
Go, TypeScript, C++, Python, Shell, C, Less, JavaScript, CSS, Dockerfile, Go Template, HTML, PowerShell, CMake, Makefile
Frameworks
React
Databases
—
Tooling
—

FAQ

Is RAGFlow free to use?

Yes. The self-hosted version is Apache-2.0 licensed and free to run on your own infrastructure. The managed cloud at cloud.ragflow.io has a free tier (5 apps, 500 credits/month) and paid plans starting at $29/month for more capacity. Most development use and many production deployments run on self-hosted infrastructure at no licensing cost.

What file types does RAGFlow support?

RAGFlow ingests Word documents, PowerPoint slides, Excel files, plain text, images, scanned copies, structured data, and web pages. It also syncs data from Confluence, S3, Notion, Discord, and Google Drive. Multi-modal model integration handles image content embedded in PDFs and DOCX files.

What are the hardware requirements for self-hosting RAGFlow?

Self-hosting requires at least 4 CPU cores, 16 GB RAM, 50 GB disk, Docker 24.0.0+, Docker Compose v2.26.1+, and Python 3.13+. The stack runs on x86 hardware only; ARM64 users must build from source. A separate gVisor installation is required only if you plan to use the code executor (sandbox) feature.

How does RAGFlow reduce LLM hallucinations?

RAGFlow grounds answers in specific document chunks and makes those chunks traceable to the source. The UI visualizes each chunk before indexing so teams can catch and correct bad extractions at ingestion time. Hybrid search with multi-stage re-ranking ensures the most relevant context reaches the LLM, reducing the chance that the model fills gaps with invented facts.

Does RAGFlow support AI agents and MCP?

Yes. RAGFlow includes a visual workflow builder for constructing multi-step AI agents that combine RAG retrieval, external tool calls, Python and JavaScript code execution, and MCP (Model Context Protocol) integrations. Agent memory, multi-channel deployment (Discord, Telegram, Feishu, Line), and pre-built industry workflow templates are available in current releases.

Similar tools

More in AI Engineers