ragflow

Open-source RAG engine with document understanding and agentic retrieval

Overview

RAGFlow is an open-source engine that pairs retrieval-augmented generation with agent capabilities, using deep understanding of documents to build a context layer for large language models. It targets both individual users and organizations of any size, offering a RAG workflow that scales from personal experiments to enterprise deployments. The project is developed in the open and provides cloud access as well as local installation options.

The product's main job is turning complex, inconsistently formatted material into answers the user can trace back to sources. Text is parsed and chunked so that citations are visible and hallucinations are reduced. A visualization of chunking lets people step in and adjust how content is divided, and answers surface the key references behind them.

What distinguishes RAGFlow is the mix of retrieval and agent behavior in one system. Agentic retrieval can break a hard question into parts, fetch evidence, and reason across several rounds, with thinking modes that let the user dial reasoning depth. Knowledge Compilation turns content into structured artifacts such as Wikis, Graphs, Trees, PageIndex, Mind Maps, Timelines, and Skills, and pre-built agent templates shorten the path from raw data to a working AI system.

Best for

  • AI developers
  • RAG engineers
  • Data engineers
  • Knowledge managers
  • Platform engineers
  • Enterprise software
  • Information technology services

How to use

  1. Confirm your host meets the recommended starting resources and that Docker and Docker Compose are installed.
  2. If the default Elasticsearch engine is used, raise the vm.max_map_count kernel setting on the Docker host.
  3. Clone the RAGFlow repository and move into its docker directory.
  4. Check out a release tag and launch the services and dependencies with Docker Compose.
  5. Verify the deployment by confirming containers are running and the health check endpoint returns success.
  6. Open the web interface in a browser and log in to continue setting up models and data.

What it can do

Deep document understanding and extraction

Knowledge is pulled from unstructured files in many formats. The supported set covers Office-style documents, text files, images, PDFs, scans, structured data, and web pages, so heterogeneous content can feed the same retrieval workflow instead of being converted by hand first.

Template-based chunking

Content is split using selectable templates, and the process is designed to be intelligible to the operator. A visual view of the resulting chunks lets a person inspect and intervene, which supports quality at the input stage rather than relying on output checks alone.

Knowledge Compilation

At the document and dataset levels, content can be compiled into structured artifacts: Wikis, Graphs, Trees, PageIndex, Mind Maps, Timelines, and Skills. Compilation models and processing rules are configurable, and artifacts can be viewed, updated, or regenerated to suit different organization and reuse needs.

Agentic retrieval

For complicated questions, retrieval works in multiple steps: the model examines the question, decomposes it when needed, gathers evidence, and checks it. Repeated rounds of retrieval and reasoning collect fuller context so answers rest on stronger grounding.

Thinking modes

Low, Medium, High, and Ultra settings let users control how much retrieval and reasoning depth is applied, matched to how complex the question is. This keeps simple queries efficient while reserving heavier processing for harder ones.

Grounded citations

Answers point to the references behind them through traceable citations, and the chunking view shows how source text was divided. Together these make it easier to confirm that a response came from the supplied material.

Automated RAG workflow

The workflow covers orchestration, configurable LLMs and embedding models, multiple recall combined with fused re-ranking, and APIs for connecting to business systems. It is presented as suitable for both personal use and large organizations.

Web and warehouse ingestion

Website content can be ingested through sitemaps, and Google BigQuery sources can be ingested with incremental synchronization. These additions extend the range of data the engine can draw on beyond uploaded files.

How it works

Setup starts with a Docker-based deployment. The repository is cloned, a release tag is checked out, and Docker Compose brings up the RAGFlow services along with their dependencies. One container runs the API server, ingestion workers, and data synchronization, and its startup script applies database migrations before services begin. Default passwords in the environment file should be changed before exposing the service to a network. A health check endpoint confirms readiness before the web interface is used.

After signing in, the operator connects a Chat model and an Embedding model through the model provider settings, then creates a dataset, uploads a document, and starts a chat. Third-party components in the default profile include Elasticsearch, MySQL, MinIO, Kvrocks, NATS, and ClickHouse, and document engine choices are configured through environment variables. People remain in the loop at several points: they review and adjust chunking, choose thinking depth, configure compilation models and rules, and decide what to publish or connect through the APIs.

Supervised

Retrieval and reasoning run across multiple steps on their own, but users configure models and rules, inspect chunking, choose thinking depth, and review cited answers, so human oversight remains part of the workflow.

Where it fits

  • Ask questions over a set of mixed-format business documents and inspect the citations returned.
  • Break a difficult question into sub-questions and retrieve supporting evidence across several rounds.
  • Compile a dataset into a graph or timeline to organize knowledge for reuse.
  • Ingest website pages through a sitemap and keep BigQuery data synchronized incrementally.

Good fit

  • Teams that need a retrieval-augmented generation layer to answer questions over mixed document types with citations.
  • Developers building multi-step retrieval and reasoning agents for complex questions using configurable thinking depth.
  • Organizations reconciling content from many formats and sources, including web pages gathered through sitemaps.
  • Evaluators who want to run the open-source engine locally with Docker before committing.

Not a fit

  • Users who require a native macOS Go backend, which the documentation says is not currently supported.
  • Deployments on very modest hardware: the docs list a suggested initial resource footprint of 4 CPU cores, 16 GB RAM, and 50 GB disk, with heavier needs depending on engine and workload.
  • Anyone expecting hosted cloud pricing details in these materials; the docs point to the cloud service but list no plans or prices.

How to evaluate

  1. Confirm the host meets the documented starting resources and has Docker and Docker Compose at the stated minimum versions.
  2. Check which document engine you plan to use and whether engine-specific host settings, such as the Elasticsearch map count, apply.
  3. Verify access to the dependency image and to a chat model and embedding model before setup.
  4. Decide whether CPU-only DeepDoc inference in the open-source 1.0 release suits your parsing workload.
  5. Review the deployment environment file for default passwords and ports before exposing the service to a network.

Our take

RAGFlow is an open-source retrieval-augmented generation engine that pairs document understanding with agent-style retrieval. It emphasizes traceable citations and lets you choose how deeply a question is analyzed and re-retrieved. Setup runs through Docker Compose, with database migrations handled at startup, and it needs external chat and embedding models to operate. The materials provide detailed operational guidance but no public pricing, so cost planning depends on the cloud service or your own infrastructure.

Alternatives

AgentPricingAutonomyBest for
deer-flow—SupervisedSoftware developers, AI and agent engineers, Research engineers, Technical teams building agent workflows, Data pipeline builders
anything-llm—SupervisedIT administrators managing private AI instances, Developers building custom integrations, Teams evaluating local versus cloud model providers, Knowledge workers querying internal documents, Operations staff scheduling recurring agent tasks
Vane—AssistantPrivacy-conscious researchers, AI developers testing local models, Technical writers and documentation specialists, Students doing academic research, Data analysts comparing model outputs
FrontierAgent—SupervisedResearch analysts, Developers building agent workflows, Benchmark and evaluation engineers, Data and file-processing specialists, Technical operations staff
Sidekick—SupervisedResearchers, Students, Writers and editors, Software developers, Knowledge workers, Analysts
claude-scientific-writer—SupervisedResearch scientists, Academic writers, Principal investigators drafting grant proposals, Clinical researchers, Graduate students and postdoctoral researchers, Data scientists preparing publications, Medical writers

FAQ

What is RAGFlow in one sentence?
It is an open-source RAG engine that adds agent capabilities to build a context layer for large language models, answering questions with citations from your documents.
Which file types can I bring in?
The documentation lists common office documents, text and image files, PDFs, scans, structured data, and web pages among supported inputs, along with sitemap-based website ingestion.
How do I get started?
Use Docker Compose with the release tag, then follow the short tutorial to configure a chat model and an embedding model, create a dataset, upload a document, and start chatting.
What hardware should I plan for?
The docs suggest beginning with roughly 4 CPU cores, 16 GB of memory, and 50 GB of free disk, noting that real needs vary with the engine, volume of data, and concurrent work.
Does it run on macOS?
The Go backend documentation states that macOS is currently unsupported, so the documented path is a Linux host matching your target architecture.
Do I need separate language and embedding models?
Yes. A chat model generates answers and an embedding model makes content searchable; you configure providers and select defaults in user settings.
How is pricing structured?
These materials do not publish a pricing model or plan details, though they mention a cloud service. Check the cloud site directly for current terms.
How does agentic retrieval work?
For complex questions the model can break the question down, retrieve in several rounds, and verify evidence, with Low through Ultra thinking modes controlling depth.

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/agents/ragflow"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options