whatisgithub

What is ragflow?

yongtenglei/ragflow — explained in plain English

Analysis updated 2026-08-08 · repo last pushed 2026-04-17

1PythonAudience · pm founderMaintainedSetup · hard

In one sentence

RAGFlow lets you build AI assistants that answer questions using your own documents, with visible citations showing exactly where each answer came from.

Mindmap

mindmap
  root((repo))
    What it does
      Grounds AI in your docs
      Shows source citations
      Smart document chunking
    Inputs
      PDFs and Word files
      Spreadsheets and slides
      Notion and Google Drive
    Tech stack
      Python
      Docker
      Elasticsearch
    Use cases
      Legal contract search
      Support knowledge base
      Product docs assistant
    Audience
      Founders and PMs
      Legal and support teams
      Enterprises with docs

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a legal assistant that searches contracts and cites exact clauses.

USE CASE 2

Create a support chatbot that answers from your internal knowledge base.

USE CASE 3

Make a product documentation assistant for your team.

USE CASE 4

Chain multi-step agent workflows that run code and follow processes.

What is it built with?

PythonDockerElasticsearchInfinity

How does it compare?

yongtenglei/ragflow0xallam/posthog0xustaz/streamgate
Stars111
LanguagePythonPythonPython
Last pushed2026-04-172026-03-26
MaintenanceMaintainedMaintained
Setup difficultyhardmoderatehard
Complexity3/54/5
Audiencepm founderpm founderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires Docker with at least 4 CPU cores, 16 GB RAM, and 50 GB disk, only x86 images are provided so ARM64 users must build from source.

So what is it?

RAGFlow helps you build AI assistants that actually know your business. Instead of a generic chatbot that makes things up, it connects an AI model to your own documents, PDFs, Word files, spreadsheets, presentations, scanned images, web pages, so it can answer questions grounded in real data you control. Think of it as giving a language model a curated library of your materials to reference before it responds. The way it works is straightforward conceptually. You upload your documents, and the system reads through them carefully, breaking them into intelligent chunks using template-based rules (not just blindly splitting text every N words). When someone asks a question, it searches those chunks for the most relevant pieces, shows you exactly which passages it found, and passes them to an AI model to generate an answer with traceable citations. You can see the chunks, adjust them, and verify where answers came from. It supports connecting to various AI model providers (like OpenAI's GPT series or Gemini), and can sync data from sources like Notion, Google Drive, Confluence, S3, and Discord. This is built for teams who need reliable, document-grounded AI, legal firms searching contracts, support teams answering from knowledge bases, or enterprises with large internal document collections. A founder could use it to build a product documentation assistant, a PM could create a tool that answers questions from specs and meeting notes. The agent workflow capabilities also let you chain steps together, like running code or following a multi-step process. The project runs via Docker (a packaging tool that bundles everything needed to run the software), and requires a reasonably capable machine, at least 4 CPU cores, 16 GB RAM, and 50 GB of disk space. Notably, it only ships x86 Docker images currently, so ARM64 users (like Apple Silicon Macs) need to build their own. It uses Elasticsearch for storage by default but can switch to an alternative engine called Infinity.

Copy-paste prompts

Prompt 1
Set up RAGFlow with Docker on a machine with 16GB RAM and connect it to my OpenAI API key so I can upload PDFs and start asking questions.
Prompt 2
Connect RAGFlow to my Google Drive and Notion so it automatically syncs documents and keeps my AI assistant up to date.
Prompt 3
Build a RAGFlow agent workflow that first searches my uploaded contracts for relevant clauses, then runs code to extract key dates, then summarizes the findings.
Prompt 4
Configure RAGFlow to use Infinity instead of Elasticsearch for storage and walk me through when I should switch.
Prompt 5
Upload a set of scanned PDFs to RAGFlow, adjust the template-based chunking rules, and verify the citations are pointing to the right passages.

Frequently asked questions

What is ragflow?

RAGFlow lets you build AI assistants that answer questions using your own documents, with visible citations showing exactly where each answer came from.

What language is ragflow written in?

Mainly Python. The stack also includes Python, Docker, Elasticsearch.

Is ragflow actively maintained?

Maintained — commit in last 6 months (last push 2026-04-17).

How hard is ragflow to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is ragflow for?

Mainly pm founder.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.