LightRAG vs RAGFlow
Two of the top projects in RAG, knowledge and search, side by side: who leads on each score part and who each one suits, then setup, license, activity and what each review found.
LightRAG
Graph-based RAG framework with a REST server and WebUI
RAGFlow
RAG engine with document parsing, agentic retrieval and citations
Verdict
LightRAG ranks higher, 93 to 90. Of the 4 score parts we measure for both, LightRAG leads on 1, RAGFlow on 2 and 1 is even.
- AdoptionRAGFlow leads by 4 points, 99 to 95: close to even.
- FreshnessEven at 100.
- MaintenanceRAGFlow leads by 1 point, 91 to 90: close to even.
- Agent-readyLightRAG leads by 40 points, 70 to 30: a wide gap.
Pick LightRAG if you are
Engineers building graph-based RAG over private documents with their own LLM
- Runs with local file storage by default; no database required
- Pluggable backends: PostgreSQL, Neo4j, MongoDB, OpenSearch, any OpenAI-compatible LLM
Pick RAGFlow if you are
Teams self-hosting document Q&A with citations over mixed-format files
- Template-based chunking with visualization so humans can inspect and edit chunks
- Citations trace answers back to source chunks
| What we compare | LightRAG | RAGFlow |
|---|---|---|
| Score parts, out of 100 | ||
| Adoption | 95, widely used | 99, widely used |
| Freshness | 100, active | 100, active |
| Maintenance | 90, healthy | 91, healthy |
| Agent-ready | 70, partly | 30, minimal |
| Facts from GitHub and the README | ||
| Stars | 40.9k | 94.7k |
| License | MIT (permissive) | Apache-2.0 (permissive) |
| Last commit | Nov 2026 | Nov 2026 |
| Last release | Nov 2026 | Nov 2026 |
| Language | Python | Go |
| Docker | Yes | Yes |
| GPU | Not needed | Not needed |
| arm64 or Apple Silicon | Mentioned | Not stated |
LightRAG
LightRAG indexes documents into both a knowledge graph and vector embeddings, then answers queries with dual-level retrieval over entities and concepts. It ships as a Python library and as lightrag-server, which provides a REST API and a WebUI for inserting, querying and visualizing the graph. Storage defaults to local files, with PostgreSQL, Neo4j, MongoDB and OpenSearch as options.
Who it is for: Engineers building graph-based RAG over private documents with their own LLM
Strengths
- Runs with local file storage by default; no database required
- Pluggable backends: PostgreSQL, Neo4j, MongoDB, OpenSearch, any OpenAI-compatible LLM
- Optional reranker, citations, document deletion with KG regeneration, RAGAS and Langfuse
- Separate LLM settings for extraction, query, keywords and VLM roles
Weaknesses
- Entity extraction makes one LLM call per chunk, raising indexing time and cost
- Server binds 0.0.0.0 with authentication off by default
- Changing the embedding model requires re-indexing every document
- Source install needs bun to build the WebUI; PyPI package avoids this
- no GPU
- Docker + Compose
- Needs OpenAI-compatible LLM and embedding API, Optional: PostgreSQL, Neo4j, MongoDB, OpenSearch, Milvus, Optional: MinerU or Docling for multimodal parsing
- Models: OpenAI-compatible APIs, Open-source LLMs such as Qwen3-30B-A3B
- port 9621
RAGFlow
RAGFlow ingests Word, PowerPoint, Excel, PDFs, scans, images and web pages, chunks them with selectable templates, and answers questions with traceable citations. It adds multi-step agentic retrieval with Low to Ultra thinking modes and knowledge compilation into wikis, graphs and mind maps. It runs as Go services (Admin, Ingestor, Syncer, API) with a React web UI, deployed through Docker Compose.
Who it is for: Teams self-hosting document Q&A with citations over mixed-format files
Strengths
- Template-based chunking with visualization so humans can inspect and edit chunks
- Citations trace answers back to source chunks
- Agentic retrieval with four thinking modes for multi-step questions
- Handles scanned files, Office formats and PDFs; DeepDoc runs on CPU
Weaknesses
- Many services to run: MySQL, MinIO, NATS, Kvrocks and a document engine
- Recommended start is 4 cores, 16 GB RAM and 50 GB disk
- macOS is not currently supported for the Docker image
- Source build needs Go 1.27, Clang 20, CMake 4 and native libraries
- RAM ≥ 16 GB
- no GPU
- Docker + Compose
- Needs Docker, MySQL, MinIO, NATS, Kvrocks, Elasticsearch or Infinity
- Models: Configurable LLM, embedding and reranker models via provider page
- port 80
More in RAG, knowledge and search
Building with these?
We help teams pick an open-source AI stack and run it in production. Client work never changes a rank.