RAG & knowledgeVector & search

RAGFlow

infiniflow/ragflow

A production RAG engine with agentic retrieval — deep document understanding rather than naive chunking.

Repository
Stars
87.2k
Forks
10.2k
Open issues
1.9k
Language
Go
Licence
Apache-2.0
Created
2023-12-12
Last push
2026-08-10
Effort to adopt

Engineering project

Weeks, not days. Treat it as infrastructure with an owner and a budget.

01

What it actually does

Most RAG implementations fail in the same place: chunking. Split a document every 500 characters and you sever tables, orphan headings, and produce retrieval that returns fragments without the context that made them meaningful.

RAGFlow's differentiator is deep document understanding — it parses structure before chunking, so tables stay tables and sections stay coherent. On top of that sits agentic retrieval, where the system can reason about what to fetch and refetch rather than doing one similarity lookup and hoping.

The framing the maintainers use is a context layer for LLMs: the job is not just retrieval, it is compiling the right context for a given question. It is self-hostable via Docker, has a cloud option, and is Apache 2.0.

87,000 stars and maintained since 2023. If you tried RAG, got mediocre answers, and blamed the model, the problem was probably ingestion — and this is the category of tool that fixes it.

02

Who it's for

  • 01

    Teams whose first RAG attempt produced disappointing answers

  • 02

    Anyone doing retrieval over documents with tables, structure, or complex layout

  • 03

    Companies needing self-hosted retrieval for compliance reasons

  • 04

    Engineers who want agentic retrieval rather than single-shot similarity search

EngineeringSupportDataOperationsSaaSFintechHealthtechAny industry
03

Where it earns its keep

  • Building a support assistant over a large, structured documentation set
  • Retrieval over contracts, reports, or filings where tables carry the meaning
  • Replacing a naive chunking pipeline that returns fragments without context
  • Serving retrieval inside a VPC where documents cannot leave
  • Compiling context across many documents to answer a single hard question
04

Use it, or skip it

Reach for it when

  • Your documents have real structure that naive chunking destroys
  • Answer quality matters more than getting something running this afternoon
  • You need self-hosting
  • One retrieval pass is not enough for the questions people actually ask

Skip it when

  • Your corpus is small and simple — a basic vector store will do
  • You have no capacity to run and tune retrieval infrastructure
  • You need it working today; deep parsing pipelines take setup
  • A hosted retrieval service would meet your requirements more cheaply
05

10 automations

  1. 01Support

    Structured docs assistant

    Serve answers from documentation where tables and specifications survive retrieval intact.

  2. 02Finance

    Contract question answering

    Query a contract archive for specific clauses and get the surrounding context, not a fragment.

  3. 03Sales

    Sales enablement retrieval

    Let reps ask product questions mid-call and get answers grounded in current specs and pricing tables.

  4. 04Operations

    Internal policy lookup

    Answer HR and finance policy questions from source documents so people stop asking a human.

  5. 05Data

    Multi-document synthesis

    Use agentic retrieval to answer questions that require pulling from several documents at once.

  6. 06Engineering

    Retrieval quality benchmark

    Run your real questions against your old pipeline and this one, and measure which answers correctly.

  7. 07Sales

    VPC-hosted knowledge base

    Deploy inside a customer's environment for enterprise deals with strict data requirements.

  8. 08Operations

    Onboarding knowledge assistant

    Point it at internal documentation so new hires self-serve answers accurately.

  9. 09Finance

    Report data extraction

    Query financial or analytical reports where the answer lives inside a table.

  10. 10Operations

    Citation-backed answers

    Require every answer to cite its source document and section, so people can verify.

Want one of these running by Friday?

LimeDock builds these as real workflows inside your stack — deployed to your cloud, wired into your Slack and CRM, with the code in your repo. You pay a build fee and your own API keys, nothing else.

Book a workflow call
07

Source

Repository stats were read from the GitHub API and reflect the last time we refreshed this entry. The editorial breakdown above is LimeDock’s own analysis — we are not affiliated with infiniflow.

https://github.com/infiniflow/ragflow