Data & ExtractionOpen source codeinfiniflow/ragflow

RAGFlow: Open Source AI Repository & Self-Hosting Guide

Infiniflow open-source RAG engine pairing deep document layout parsing (Infinity/DeepDoc) with hybrid vector/BM25 search and traceable chunk citations.

GitHub Stars
95,160 stars
Repository License
Apache-2.0
Last Push (UTC)
Dec 4, 2026
Check the repo's license. Model weights may have a different license.
git clone https://github.com/infiniflow/ragflow.git
View on GitHubOfficial Website
Installdocker compose -f docker/docker-compose.yml up -d

RAGFlow: Architecture & Practical Workflow

Rather than naive fixed-character chunking, RAGFlow detects tables, headings, and visual blocks across PDFs and Word files before indexing them in Elasticsearch/Infinity—exposing grounded citations and visual bounding-box highlights in its web workspace.

Recommended End-to-End Pipeline

Deploy RAGFlow with Docker, ingest compliance manuals using its table-aware chunk template, and inspect highlighted source PDF spans directly from chat answers.

Runtime Target
Self-Hosted Docker / Web Workspace (GitHub)
Primary Users
Analysts, Enterprise Teams, Knowledge Managers
Code License
Apache-2.0
Focus Topics
open-source, github, rag, document-qa

Quick Setup & Installation Steps

Platform target: Self-Hosted Docker / Web Workspace (GitHub). Always verify environment variables and dependencies in the upstream repository README.

  1. 1Clone the repository from GitHub: `git clone https://github.com/infiniflow/ragflow.git && cd ragflow`.
  2. 2Review the Apache-2.0 license (Check the repo's license. Model weights may have a different license.) and note any separate terms on external model weights.
  3. 3Install or launch the project directly: `docker compose -f docker/docker-compose.yml up -d` (use an isolated Python virtualenv, Node workspace, or Docker volume so dependencies remain clean).
  4. 4Validate end-to-end behavior with a small sample input (Deploy RAGFlow with Docker, ingest compliance manuals using its table-aware chunk template, and inspect highlighted source PDF spans directly from chat answers.)

Hardware & VRAM Notes

Full Docker deployment recommends 16GB+ RAM

CPU & Memory

Modern multi-core CPU with 8 GB–16 GB RAM for orchestration, CLI agents, OCR/document parsing, or UI workflows (32 GB+ if co-hosting large local LLMs).

GPU / VRAM

Full Docker deployment recommends 16GB+ RAM

Runtime Target

Self-Hosted Docker / Web Workspace (GitHub)

Strengths & Best For

  • Template-based deep chunking for invoices, resumes, manuals & tables
  • Visual citation highlighting pointing directly back to source PDF pages
  • Built-in agent workflow canvas and multi-tenant team workspace
  • Best suited for: Analysts, Enterprise Teams, Knowledge Managers

Limitations & Caveats

  • Full Docker deployment recommends 16GB+ RAM
  • Requires configuring an embedding/LLM backend (Ollama or cloud)
  • Check the repo's license. Model weights may have a different license.

3 Similar Tools on /tools (Data)

Prefer a hosted web app instead of managing local weights or Docker containers? Explore these cloud alternatives.

Browse all tools
Self-Hosted RAGFlow vs. Hosted Alternatives (ChatCSV & CSV Agent)
FactorRAGFlow (Self-Hosted)ChatCSVCSV Agent
Execution & PrivacyRuns locally via Self-Hosted Docker / Web Workspace (GitHub); data stays on your disk or private server.Hosted cloud web interface; zero local dependency setup required.Hosted cloud web interface; zero local dependency setup required.
Cost & QuotaApache-2.0 code; bound only by local CPU/GPU hardware.Freemium; subject to vendor free-tier limits or paid plans.Freemium; subject to vendor free-tier limits or paid plans.
Primary FitTemplate-based deep chunking for invoices, resumes, manuals & tables; Visual citation highlighting pointing directly back to source PDF pagesChat with your CSV files. Upload a spreadsheet and ask questions in natural language.Chat with any CSV using AI. Free to try with data visualization and export.
Key Trade-offFull Docker deployment recommends 16GB+ RAMRequires internet access and vendor account/quota limits.Requires internet access and vendor account/quota limits.

Matching Ready-Made Prompts

All Prompts →

Customize variables in Live Prompt Studio for RAGFlow workflows.

NotebookLM Multi-Source Deep Literature ReviewExtraction · Research, Literature Review, Synthesis, Academic
Open in Studio
Comprehensive Patent Claim & Prior Art Comparison MatrixExtraction · Patents, IP, Prior Art, Legal Research
Open in Studio
Competitor Pricing & Feature Teardown Grid from Multiple SourcesExtraction · Competitive Intelligence, Pricing, Market Research
Open in Studio

More Open Source Data & Extraction Repositories

Frequently Asked Questions

What does RAGFlow do and how does it work?

RAGFlow (infiniflow/ragflow) is an open-source data & extraction project with 95,160 stars on GitHub. Infiniflow open-source RAG engine pairing deep document layout parsing (Infinity/DeepDoc) with hybrid vector/BM25 search and traceable chunk citations. Rather than naive fixed-character chunking, RAGFlow detects tables, headings, and visual blocks across PDFs and Word files before indexing them in Elasticsearch/Infinity—exposing grounded citations and visual bounding-box highlights in its web workspace.

Is RAGFlow free to self-host and use commercially?

RAGFlow provides open source code licensed under Apache-2.0. Check the repo's license. Model weights may have a different license. Always verify both source code and model weight licenses in the GitHub repository before commercial deployment.

What hardware, runtime, or VRAM does RAGFlow require?

RAGFlow targets Self-Hosted Docker / Web Workspace (GitHub). Typical installation runs via `docker compose -f docker/docker-compose.yml up -d`. Full Docker deployment recommends 16GB+ RAM

How does self-hosting RAGFlow compare to hosted tools like ChatCSV?

Self-hosting RAGFlow gives you full local data control, zero per-usage vendor fees, and customizable Self-Hosted Docker / Web Workspace (GitHub) pipelines—at the cost of managing your own setup and compute. By contrast, ChatCSV (Freemium) runs in the browser with no local installation, though usage quotas and cloud privacy policies apply.

Is RAGFlow actively maintained and what workflow fits it best?

Repository metadata records 95,160 stars on GitHub with the latest recorded push on Dec 4, 2026. Deploy RAGFlow with Docker, ingest compliance manuals using its table-aware chunk template, and inspect highlighted source PDF spans directly from chat answers.