Loading KingLand…

RAGFlow: the sovereign RAG engine for complex PDFs

Discover how InfiniFlow’s open-source RAG engine cuts your token costs by 70% through surgical visual analysis of your complex PDFs.

Controlling enterprise data can mean taking tighter control of your RAG infrastructure. RAGFlow from InfiniFlow Inc. is an open-source engine designed to analyze complex documents while preserving more information about layout and semantic structure.

Explore RAGFlow’s capabilities Master your structured data precisely.

RAGFlow: controllable RAG orchestration for complex documents

Why it matters now: with the need to control inference costs and stricter governance requirements in 2026, exclusive reliance on cloud APIs can be a strategic risk for some companies. Local or hybrid architectures offer a complementary path to better control sensitive data.

The key takeaway

RAGFlow is among the open-source projects specialized in processing complex documents for RAG. It combines a layout-aware ingestion pipeline with a visual agent-orchestration platform. The development of a commercial cloud offering in 2026 confirms InfiniFlow’s intent to complement the community project with managed services.

Contents

Why this matters now

Summer 2026 tech news is marked by an acceleration of self-hosted and hybrid data orchestration solutions. The release of RAGFlow 0.26.4 on July 7, 2026 notably improves multilingual processing. By adding a language-aware Snowball stemmer compatible with 16 languages and propagating the dataset language parameter into the tokenization pipeline, InfiniFlow aims to improve indexing consistency for non-English corpora.

This technical change accompanies a broader commercial repositioning. In March 2026 the public demo service was moved to cloud.ragflow.io to prepare a SaaS offering. At the same time, RAGFlow added support for the Model Context Protocol, an open protocol initially launched by Anthropic. Its optional MCP server lets compatible clients and tools access certain RAGFlow functions in a standardized way. We have recently seen how the MCP protocol connects your AI agents to standardize context transfer, and RAGFlow fits into this interoperability trend.

By offering a visual ingestion pipeline that goes beyond simple linear text cutting, InfiniFlow’s tool is a credible alternative to centralized proprietary services, especially when documents include tables, images or complex layouts.

What it is

RAGFlow is a retrieval-augmented generation engine and an open-source distributed AI agent orchestration platform under the Apache 2.0 license. Unlike frameworks that mainly turn documents into streams of plain text, this technology uses an approach called Deep Document Understanding. It leverages layout analysis, OCR and structure recognition to extract content while retaining useful information about document organization.

Technology in brief

RAGFlow is a self-hostable RAG engine combining document processing, full-text indexing, vector search and agent orchestration. It lets you inspect extracted fragments, adjust their chunking and link generated answers to verifiable references.

The tool indexes extracted information in a document engine combining full-text and vector search. Elasticsearch is used by default, while Infinity can be configured as an alternative. RAGFlow then allows connecting language and embedding models available via API or deployed locally. For companies that require on-prem processing, pairing RAGFlow with Ollama and its local infrastructure can limit sending content to external providers, provided models, OCR, embeddings, storage and any diagnostics are also configured locally.

What you can use it for

A common bottleneck in RAG architectures is structure loss during ingestion. A complex financial table converted carelessly to plain text can become hard to interpret. RAGFlow aims to limit this issue by accounting for layout and offering multiple analysis methods for tables, figures, headers, paragraphs and other document elements.

Thanks to its visual low-code interface built around a nodal canvas, the tool lets you assemble ingestion workflows and agents. Users can connect data sources, retrieval components, models and execution tools. A Code component also lets you run Python or JavaScript, subject to properly configuring the sandbox and isolation mechanisms. The goal is to turn fragmented knowledge bases into applications that can search, process and return information according to a defined workflow.

The system also improves traceability for end users. Chunking results can be viewed as snapshots, edited manually and linked to citations used in answers. This makes it easier to verify the source passage, without eliminating retrieval, interpretation or model-generation errors.

Operational impact and ROI

For big data architects and IT directors

  • Benefit: Better control over data locality, access and technical components. A local deployment can ease certain compliance objectives, though it does not guarantee them on its own.
  • Use: Deploy the document pipeline on private infrastructure using Docker, Kubernetes or company-managed servers.

For AI development teams

  • Benefit: Potential to reduce insufficiently supported answers and better control how much context is passed to the model, when retrieval strategy is properly evaluated.
  • Use: Design support chatbots, internal search tools or technical assistants using the visual canvas, APIs and MCP components.

By selecting the most relevant fragments instead of sending whole documents in the context window, a RAG architecture can reduce the number of tokens sent to the model. Actual savings depend on the corpus, embeddings, reranking, model used, query volume and infrastructure operating costs.

How to use it

Deploying and adopting RAGFlow centers on installation, ingestion and configuration processes.

  1. Infrastructure deployment: Clone the official repository, pick a stable release and start RAGFlow and its dependencies with Docker Compose.
  2. Model configuration: Connect a compatible model provider or link a local stack using Ollama, Xinference or LocalAI.
  3. Create a knowledge base: Create a dataset and upload supported documents like PDFs, office files, spreadsheets or images.
  4. Choose the semantic parser: Select the chunking method and parser suited to the file types, layout and available resources.
  5. Start indexing: Run ingestion, review the generated chunks and manually correct their content or metadata when needed.
  6. Create the agent: Use the orchestration canvas to connect the knowledge base to a conversational agent and evaluate its answers with a representative question set.

Once these steps are completed, the self-hosted version exposes HTTP APIs and a Python SDK for integrating document retrieval and assistants into existing business applications.

Pricing and business model

InfiniFlow follows a hybrid strategy combining a self-hostable open-source project, a subscription cloud offering and enterprise services.

OfferIndicative pricingKey features
Self-hosted (open-source)No RAGFlow license fees (Apache 2.0)Local deployment with no direct per-user pricing. Infrastructure, models, security, backups and maintenance are the organization’s responsibility.
RAGFlow Cloud (SaaS)From $29/month for StarterThe Starter plan includes 50 applications, five members, 5 GB of dataset storage, 5,000 monthly credits and access to an API key. Prices and limits should be rechecked at publication time.
EnterpriseContact for pricingBYOC or on-prem deployment, dedicated support and custom SLA based on a contract with InfiniFlow.

While the open-source offering has no direct RAGFlow license cost, it requires hosting resources and operational expertise. Documentation recommends at least four x86 cores, 16 GB RAM and 50 GB disk. OCR, layout analysis and table recognition can further increase CPU or GPU usage during ingestion.

Alternatives to consider

The RAG and agent-orchestration market is highly competitive in 2026. For needs that focus on execution graphs, persistent states and agent programming, LangGraph is an alternative for teams that want to build their architecture in code. If the main goal is collecting and normalizing content from dynamic websites, the Firecrawl API for web extraction can serve as a complementary upstream source in a RAG pipeline.

For organizations seeking a managed solution that needs less system administration, services like Chatbase or Glean can be faster to deploy. Their suitability depends on contract terms, integration capabilities, pricing and data hosting or residency options.

A practical example

To illustrate RAGFlow’s document-processing capabilities, here is a theoretical scenario inspired by features described in its official documentation. It is not a benchmark performed in a controlled environment.

The prompt / the action

Ingest a 120-page PDF containing financial audit reports, pivot tables, org charts and passages in French and English.

The outcome

With an appropriate visual parser and correct configuration, RAGFlow should try to recognize table structure, produce searchable chunks and index their content. A question about a department’s gross margin could then retrieve the relevant fragment and show a citation so the user can verify the source. Accuracy would still need to be measured on a question-and-answer set validated manually.

What can go wrong

Ingestion time strongly depends on hardware, parser choice, PDF quality, OCR use and the number of models involved. On a machine without GPU acceleration, visual analysis can be noticeably slower than simple text cutting and consume more CPU and memory.

Implementation guide

Here’s an operational roadmap to evaluate RAGFlow within a development infrastructure.

Phase 1: initial configuration

Clone RAGFlow’s official GitHub repo, then select the desired stable version. Configure the environment file .env, passwords, ports and the document engine. Start the infrastructure with the command docker compose -f docker-compose.yml up -d. Wait for initialization to finish before accessing the web interface on the configured port.

Phase 2: first results

Log in to the GUI. Declare a model provider or connect a compatible local server. Create a first dataset, upload a representative document and choose a chunking method and parser. Review the chunks, then test retrieval with several questions whose expected answers are known.

Phase 3: deployment

Expose RAGFlow’s APIs behind a secure reverse proxy, implement encryption, access controls, backups and secret rotation. Configure necessary connectors such as AWS S3 or Google BigQuery, accounting for their sync modes. Finally add observability tools to monitor latency, ingestion errors, model calls and resource consumption.

Risks and limitations

Using a self-hosted RAG infrastructure in production brings technical challenges and operational constraints.

Risk typeTechnical descriptionMitigation measures
DevOps burdenThe default Docker configuration pairs RAGFlow with Elasticsearch or Infinity, MySQL, Redis and MinIO. This stack must be secured, backed up, monitored and updated.Use the available Helm chart or a managed container platform, then complete the deployment with security, backup and observability policies.
Breaking changes between versionsThe project evolves quickly and some releases introduce compatibility changes, migrations or fixes affecting APIs and internal components.Check release notes, test upgrades in a preproduction environment and back up databases and document storage before any migration.
Compute consumptionOCR, layout analysis and table recognition are more costly than simple text extraction and can stress CPU, memory or GPU.Select the parser according to the document’s real complexity, use Naive mode for simple text PDFs and distribute heavy processing to dedicated workers when needed.

Ideal for: Companies handling complex, structured documents—especially in finance, legal, research or engineering—who want strong control over their document pipeline.Watchouts: The fast release cadence, hardware requirements and the need to evaluate retrieval quality on org-specific documents. Some features or third-party parsers are also described as experimental.

Avoid if: Your teams have no system administration, security or data engineering skills and need a solution ready to use without infrastructure configuration.

Questions to ask before you decide

[CTO] Is RAGFlow compatible with Kubernetes production deployments?

Yes. A Helm chart is available to deploy RAGFlow components on Kubernetes. Its existence alone does not guarantee a production-grade architecture: sizing, persistent volumes, backups, secrets, monitoring and scaling must be adapted to each environment.

[Ops / Product] Can RAGFlow run fully disconnected from the internet?

Running without external calls is possible after downloading images, models and necessary resources. You must use local language, embedding and OCR models, disable unused cloud providers and connectors, control diagnostics and verify outbound network flows. Initial installation may require access to container registries or Hugging Face.

[Decision-maker] How does RAGFlow lower our overall AI project costs?

RAGFlow can limit the context volume sent to the model by retrieving fragments deemed relevant. Any savings must be weighed against hosting, indexing, embedding, reranking, storage and infrastructure maintenance costs.

[Developer] Which programming languages are supported to extend agents in the canvas?

The Code component supports Python and JavaScript scripts. Their execution depends on the configured sandbox provider. For production, use appropriate isolation, limit allowed dependencies and avoid local mode for untrusted code.

The KingLand verdict

RAGFlow receives the editorial score of 4,2/5The project stands out for its document-processing approach, visibility into chunks and the combination of hybrid search with an agent platform. Its capacity to analyze PDFs, spreadsheets and other structured documents addresses a real problem in RAG architectures. MCP support also enhances interoperability options, though that component must be deployed and secured carefully.

This functional richness nevertheless implies a more complex infrastructure than a simple SaaS. Large-scale operation requires skills in containerization, storage, security, observability and RAG system evaluation. For organizations that have those skills and want control over their document pipeline, RAGFlow is a serious open-source base—provided they do not confuse self-hosting with automatic security or regulatory compliance.

An AI explorer’s perspective

Reducing RAG to simple text cut-and-vectorize ignores an essential part of the information. A company’s most valuable data often lives in PDFs, tables, industrial diagrams and reports whose layout contributes to meaning. By accounting for this documentary dimension, RAGFlow reminds us that an AI must first retrieve information correctly before it can produce a reliable answer.

Agent development in 2026 should not automatically pit cloud against local infrastructure. The issue is choosing where data are stored, which components can call external services and what risks the organization accepts. By combining open source, hybrid search, visual processing and MCP, InfiniFlow offers an interesting path toward hybrid RAG architectures that are more controllable and auditable.

Evaluate RAGFlow on your own documents Optimize the intelligence of your business processes.