22nd of 101 in RAG, knowledge and search

LightRAG

Graph-based RAG framework with a REST server and WebUI

Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Releases and problems feed (RSS)

Stars
40.9k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 34 weeks+10,394
28 Mar 2026: 30,494 stars4 Apr 2026: 31,731 stars11 Apr 2026: 32,570 stars18 Apr 2026: 33,393 stars25 Apr 2026: 33,874 stars2 May 2026: 34,298 stars9 May 2026: 34,611 stars16 May 2026: 34,922 stars23 May 2026: 35,303 stars30 May 2026: 35,661 stars6 Jun 2026: 35,938 stars13 Jun 2026: 36,246 stars20 Jun 2026: 36,539 stars27 Jun 2026: 36,826 stars4 Jul 2026: 37,067 stars11 Jul 2026: 37,326 stars18 Jul 2026: 37,573 stars25 Jul 2026: 37,916 stars1 Aug 2026: 38,213 stars8 Aug 2026: 38,472 stars15 Aug 2026: 38,718 stars22 Aug 2026: 38,953 stars29 Aug 2026: 39,129 stars5 Sept 2026: 39,308 stars12 Sept 2026: 39,499 stars19 Sept 2026: 39,674 stars26 Sept 2026: 39,791 stars3 Oct 2026: 39,900 stars10 Oct 2026: 40,015 stars17 Oct 2026: 40,172 stars24 Oct 2026: 40,315 stars31 Oct 2026: 40,480 stars7 Nov 2026: 40,639 stars14 Nov 2026: 40,761 stars21 Nov 2026: 40,888 stars

30,494 on 28 Mar 202640,888 on 21 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

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

Ranked among open-source alternatives to Glean (#2 of 10) and NotebookLM (#2 of 10).

A company paying for Glean can compare the seat price with running this.

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

What it needs

  • 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

What changed

  1. v1.5.8 ↗ (opens in a new tab)BreakingSecurity fix

    “Python 3.11 or later is required. Python 3.10 is no longer supported.”

    “The Ollama-compatible /api/* routes are protected by LIGHTRAG_API_KEY (see Breaking Changes).”

  2. v1.5.8rc1 ↗ (opens in a new tab)BreakingSecurity fix

    “Python 3.11 or later is required. Python 3.10 is no longer supported. The Docker images (Python 3.12) are not affected.”

    “The Ollama-compatible /api/* routes are protected by LIGHTRAG_API_KEY (see Breaking Changes).”

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Known problems

Reported, then fixed by a linked change

Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.

Head to head

Also in RAG, knowledge and search

See all 101
Also in RAG, knowledge and search
RankProjectScore
1Open NotebookSelf-hosted NotebookLM alternative for research notebooks, chat, and podcasts42.2k starsMIT93 out of 100
3MaxKBEnterprise knowledge-base agent platform with RAG, workflows and MCP tools23.2k starsGPL-3.092 out of 100
#4SurfSenseDesktop NotebookLM-style agent that researches and edits local documents17k starsApache-2.091 out of 100
#5RAGFlowRAG engine with document parsing, agentic retrieval and citations Live demo ↗ (opens in a new tab)94.8k starsApache-2.090 out of 100
#6deeptutorTutoring workspace with knowledge bases, guided learning, memory and quizzes63.1k stars+18,719 (+42%) in 30 daysApache-2.089 out of 100