RAGFlow

Open-source RAG engine built on deep document understanding — layout-aware parsing, template chunking, grounded citations

RAGFlow is a RAG engine focused on document-processing quality, the step that most often decides whether answers are right. Its DeepDoc pipeline parses complex documents — tables, images, scanned PDFs, slides — with OCR and layout recognition, then chunks them by template with a visual preview so users can adjust the result. Every answer carries citations back to the source chunks, which makes hallucinations easier to spot. Beyond retrieval it offers an agent builder with tool calls, agentic retrieval with selectable reasoning depth, and knowledge compilation into wikis, graphs, mind maps and timelines. Documents are indexed in Elasticsearch by default, with Infinity as an alternative engine. Self-host it with Docker Compose (Apache 2.0) or use the official RAGFlow Cloud, which has a free plan and paid team plans. Real-world use cases: enterprise Q&A over contracts, technical reports and legal documents — documents where naive chunking gives poor answers. Works well with: Ollama (LLM backend) · Elasticsearch/Infinity (document engine) · Dify (as an external knowledge base) · Any LLM provider (OpenAI, Claude, Gemini)

When to use

  • You need a RAG engine that handles complex documents (PDFs, tables, scans)
  • You want deep document understanding that you can fully self-host
  • You need traceable citations for every answer

When not to use

  • You want a no-code builder for a non-technical team
  • You want a minimal setup — self-hosting runs Elasticsearch, MySQL, MinIO and other services and needs a well-provisioned server
  • You want to store vectors in a specific database such as Milvus or Qdrant (RAGFlow uses its own document engines)

At a glance

Pricing
Free
Deployment
Self-hosted
Difficulty
Intermediate
License
Apache-2.0
Languages
python, go, js
Use cases
rag pipeline, document qa, knowledge base, enterprise search
Last verified
2026-10-22 (official documentation)

Works well with

Alternatives in this category

See all 4 tools in RAG Systems — Retrieval-Augmented Generation →

⚖️ Compare RAG Systems

Sources

v7.0