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.

22nd of 101 in RAG, knowledge and search

LightRAG

Graph-based RAG framework with a REST server and WebUI

#55th of 101 in RAG, knowledge and search

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
LightRAG vs RAGFlow: score parts and facts
What we compareLightRAGRAGFlow
Score parts, out of 100
Adoption95, widely used99, widely used
Freshness100, active100, active
Maintenance90, healthy91, healthy
Agent-ready70, partly30, minimal
Facts from GitHub and the README
Stars40.9k94.7k
LicenseMIT (permissive)Apache-2.0 (permissive)
Last commitNov 2026Nov 2026
Last releaseNov 2026Nov 2026
LanguagePythonGo
DockerYesYes
GPUNot neededNot needed
arm64 or Apple SiliconMentionedNot 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.