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.
- Stars
- 40.9k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Python
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
“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).”
“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
- fix(llm): retry transient OpenAI 400 'could not parse JSON body' + fix create_prefixed_exception for SDK errors ↗ (opens in a new tab)3 reactions · closed 29 May 2026Fixed by fix(llm): retry transient OpenAI 5xx and 'could not parse JSON body' 400s ↗ (opens in a new tab)
- [Bug]: bedrock_complete ignores LLM_TIMEOUT, so GPT-6 Astra extraction calls hit botocore's 60 s read timeout ↗ (opens in a new tab)1 reactions · closed 18 Nov 2026Fixed by fix(bedrock): honor LLM_TIMEOUT in bedrock_complete for library callers ↗ (opens in a new tab)
- [Bug]: Document Deletion Not Cleaning Up Associated Chunks and LLM Cache Leading to Re-ingestion Failures ↗ (opens in a new tab)1 reactions · closed 5 Mar 2026Fixed by fix: preserve failed-doc chunk metadata for reliable deletion cleanup ↗ (opens in a new tab)
- [Bug]: NanoVectorDBStorage.delete() silently swallows failures ↗ (opens in a new tab)0 reactions · closed 16 Nov 2026Fixed by fix(nano): stop delete() from swallowing queue failures ↗ (opens in a new tab)
- [Bug]: Gemini safety_settings as documented mapping crashes every call ↗ (opens in a new tab)0 reactions · closed 16 Nov 2026Fixed by fix(gemini): convert safety_settings mapping to SDK list shape ↗ (opens in a new tab)
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| Rank | Project | Score |
|---|---|---|
| 1 | Open NotebookSelf-hosted NotebookLM alternative for research notebooks, chat, and podcasts | 93 out of 100 |
| 3 | MaxKBEnterprise knowledge-base agent platform with RAG, workflows and MCP tools | 92 out of 100 |
| #4 | SurfSenseDesktop NotebookLM-style agent that researches and edits local documents | 91 out of 100 |
| #5 | RAGFlowRAG engine with document parsing, agentic retrieval and citations | 90 out of 100 |
| #6 | deeptutorTutoring workspace with knowledge bases, guided learning, memory and quizzes | 89 out of 100 |