mrkeyoor.comAsk

HKUDS/LightRAGtested 12 Oct 2026commit 4d0afc1

LightRAG review

Use LightRAG if you can operate its model services, inspect retrieved evidence and compare graph-assisted answers with a simpler baseline.

  • Deploy 91 s
  • Recipe failed
8,658/8,695passed, run exited non-zero
  • 0 MiB idle
  • Install 49 s
LLM Toolsevaluationupdated 24 Nov 2026
+93stars / 7d

LightRAG is a Python document-retrieval system that combines extracted entities and relationships with vector search. Its server provides a REST API and a web interface for document indexing, graph exploration and queries.

Verdict

Use LightRAG if you can operate its model services, inspect retrieved evidence and compare graph-assisted answers with a simpler baseline. Our November Compose deploy step completed in 91 seconds before the document-task recipe failed at API discovery; the October source run installed and built successfully, then exited 1 during tests. Skip it if you need a ready-made legal system for current and superseded provisions or require a passing source-test command before adoption.

LightRAG infographic: retrieve document text, entities and relationships, plus our test result and who it suits
Tested 24 November 2026: the deployment was running after 91 s. Before that: 12 Oct: source install 49 s, build 6 s; 12 Oct: 8,658 of 8,695 tests passed.

We ran it

Lab card: what happened when we ran LightRAG
Lab card from our sandbox run
Screenshot of LightRAG (arxiv.org/abs/2410.05779)
arxiv.org/abs/2410.05779
Install✓ · 49s169 packages · 573 MB
Build✓ · 6s
Tests✗ · 792s8658 passed · 4 failed · 260 skipped · 33 errors of 8695 (pytest)
Known vulns3(pip-audit)
Repo1329 files~452,101 lines of source · 27.5 MB · 11 CI workflows · Dockerfile · tests dir

Answers from our run

Does LightRAG build from source?

Dependencies installed in 49 seconds (169 packages), and the build succeeded in 6 seconds. We cloned commit 4d0afc1 into a clean Debian container with 3 CPUs and no project-specific setup.

Do LightRAG's tests pass?

No. The project's own test command finished in 792 seconds and reported 8658 passed, 4 failed, 260 skipped, 33 collection errors (pytest).

Does LightRAG have known vulnerabilities in its dependencies?

pip-audit flagged 3 known advisories in the dependency tree at the time of our run.

Who should not use LightRAG?

Teams buying a ready-made legal update workflow for current and superseded provisions.

What are the alternatives to LightRAG?

Microsoft GraphRAG, Graphiti, RAG-Anything. Use LightRAG if you can operate its model services, inspect retrieved evidence and compare graph-assisted answers with a simpler baseline.

Setup4/5In our 2026-11-24 run it deployed in 91 s and started healthy; the README gave no task we could run as written.Editor’s note: Installation and build succeeded, but the separate Compose document task stopped at API discovery before an end-to-end setup assessment.
Docs3/5The 11,823-character README has no usage instructions or examples of its own and points to separate documentation, which we did not assess.Editor’s note: The README and a version-specific guide copy explain configuration; the recorded runs do not assess the documented deployment routes comprehensively.
Community5/5Last push on 2026-11-24, 40,843 stars and maintainers answered or closed 10 of the 10 most-discussed issues we sampled.Editor’s note: Sampled issues contain concrete applications and troubleshooting, without measurements of support capacity, adoption or response times.
Maturity3/5Latest release v1.5.8 on 2026-11-23, repository created 2024-10-02 and its test suite did not pass in our sandbox (8,658 of 8,695 passed).Editor’s note: The test command failed and the later task stopped before answers; these observations do not provide a production-reliability assessment.

How we score

Discussed on

  1. hnShow HN: Query months of HN discussions and comments as a knowledge graph4 points

Who it’s for

Developers building document retrieval who can inspect chunks, entities and source attribution.
Teams comparing graph retrieval with a vector-and-reranker baseline on their own questions.
Builders who want a REST API and can operate model services and storage.

Who it’s NOT for

Teams buying a ready-made legal update workflow for current and superseded provisions.
Developers whose adoption requirements include a passing source-test command: our October command exited 1.
Users relying on filenames alone to carry document meaning: issue #3234 describes that assumption failing.

Setup reality

Our October 12 run at commit 4d0afc1 installed in 49 s with 169 dependencies and 573 MB on disk, then built in 6 s. Tests exited 1 after 792 s: 8,658 passed, 4 failed, 260 skipped and 33 collection/setup errors. pip-audit reported 3 known vulnerabilities. The November Compose deploy step completed in 91 s; the document-task recipe then failed because it found no published API port.

The server requires a language model and an embedding model, including model names, endpoints and credentials where required. The documented server package is lightrag-hku[api]. The current README explains authentication and requires matching embedding semantics between indexing and querying.

The October sandbox configuration specified 3 CPUs, 8 GB RAM and image ghcr.io/astral-sh/uv:python3.12-bookworm. The November run used commit cf82ba9f1e51 and loopback port bindings. Measurement boundaries are collected in the final section.

Our LightRAG deployment completed its deploy step in 91 seconds, reached the health step, then stopped when the document-task recipe found no published API port. Use LightRAG if you can inspect document attribution, operate its model services and compare graph-assisted answers with a simpler retrieval baseline. Skip it if you need a ready-made system for distinguishing current law from superseded provisions. the legal-corpus discussion asks for temporal validity.

What people use LightRAG for

Users report retrieving information from PDFs, cleaning entities extracted from video transcripts and building documentation agents with LightRAG. These uses put document preparation and retrieval inspection alongside answer generation. The project architecture combines entities, relationships and vector representations: vector search finds similar text, while the graph represents extracted connections. A language model receives retrieved material and writes the answer.

The transcript-cleaning example gives a concrete reason to inspect the graph. johnshearing describes comparing biological terms side by side to decide whether they refer to the same subject. The application exposes entity descriptions and relationships so a person can make that decision. For a developer evaluating document search, this is a useful workflow: examine what extraction created before judging the final answer solely by its wording.

What happened when we ran it

Our November 24 run used commit cf82ba9f1e51 and completed the Compose deployment step in 91 seconds. Every port was bound to 127.0.0.1 in our lab configuration. The Ollama connection and health steps completed, but the document-task recipe returned the missing-port error below. The sequence separates container deployment from the task runner's ability to reach the API.

November step What came back Verdict Why
Deploy OK in 91 s Completed Compose deploy step returned OK
Ollama connection OK Completed Connection step returned OK
Model pull Repeated digest and manifest output, including 4.7 GB/4.7 GB and 74 MB/s Progress recorded The excerpt repeats layer-progress output
Healthy OK in 64.1 s Completed Health step returned OK
Document-task recipe FAILED: no API port published by the stack (container port 8080 or service app) Failed API discovery stopped the task
Idle memory Container and total both reported 0 MiB Zero recorded Both fields contain zero
Later memory sample Container and total again reported 0 MiB Zero recorded The record labels this sample "after the questions"
Teardown OK Completed Teardown returned OK

Our October 12 source run used commit 4d0afc1. Installation succeeded in 49 seconds and the build succeeded in 6 seconds. The configured sandbox had 3 CPUs, 8 GB RAM and image ghcr.io/astral-sh/uv:python3.12-bookworm. These source-installation and developer-check measurements belong to a different commit and workflow from the November Compose attempt, so the two tables describe separate runs.

October source check Our recorded result
Installation Succeeded in 49 s; 169 dependencies; 573 MB on disk
Build Succeeded in 6 s
Tests Exited 1 after 792 s; pytest reported 8,658 passed, 4 failed, 260 skipped and 33 collection/setup errors
Dependency audit pip-audit reported 3 known vulnerabilities
Repository signals 11 CI workflow files, Dockerfile, Compose file and tests directory

The test command exited 1 after 792 seconds. The pytest footer reports 748.08 seconds and 26 warnings. Two path-prefix tests expected HTTP 200 and received 307; the customization route audit missed /ui/customization; a Markdown cache test expected one warning and received two. The error tail repeatedly reports AttributeError: module 'lightrag.kg' has no attribute 'faiss_impl' in file-backed vector-space tests, including cases labelled nano. These named failures explain the command outcome without assigning an underlying cause.

Where people get stuck: aliases, document identity and local models

Issue #1323 describes different names for one entity becoming disconnected nodes. Its author requests automatic merging of variant names, while contributors describe manual editing and synonym normalization. The entity-merging discussion connects this problem to isolated subgraphs: extraction can create several representations of the same subject, leaving a developer to decide which records belong together.

Reported problem What the discussion offers Recorded status
Different names split one entity Manual editing and proposed synonym normalization in issue #1323 Automatic variant-name merging is requested in the open discussion
City facts attach to the wrong document Meaningful identity in document text and P chunking in issue #3234 Reporter describes heading-context problems with 1.5.2
Local book indexing appears stalled Jaykumaran describes keeping Ollama loaded in issue #174 Reporter describes successful Gemma and Qwen runs
Bulk upload freezes the interface Restarting, rescanning and waiting in issue #852 Reporter says the interface eventually unfroze

In issue #3234, wangjiawen2013 created two city documents with similar headings and pronouns such as "this city." The reporter says LightRAG answered the first question correctly and misattributed information on the second. A basic Docling, vector-search and reranking pipeline reportedly answered the initial examples correctly with the same language model. In a later 1.5.2 PDF test, the reporter describes 40 questions and recall below one third.

The same thread contains competing diagnoses and practical inspection advice. Maintainer danielaskdd recommends placing city identity in the document body, selecting mix mode and inspecting the information sent to the model. The reporter later describes SDK and WebUI differences; the maintainer attributes those differences to query parameters. These exchanges make source identity, retained headings and actual query parameters concrete items for an evaluation, rather than treating every poor answer as the same failure.

What the historical backfill discussion tells you to measure

Repeated entities warrant separate measurement of database writes and model calls during ingestion. In issue #1363, alineberry describes a PostgreSQL proof of concept and questions repeated vector upserts for entities and relationships already encountered. Maintainer danielaskdd says version 1.3.2 moved node/edge merging and vector saving from chunk scope to document scope. The exchange concerns where ingestion work occurs and how often it repeats.

A useful backfill evaluation therefore records documents processed, extraction calls, merge calls and database writes separately. An archive that repeatedly names the same organizations presents a different ingestion pattern from unrelated files. alineberry also asks whether vector saving could become a separate job after graph construction. That question helps define the measurement: count repeated writes across documents as well as within each document, using the revision and storage configuration being evaluated.

Security depends on accounts, API access and the tools you expose

The current README says lightrag-server binds to all interfaces and ships with authentication off. It tells operators to bind privately or configure authentication before starting on a shared network. Our November deployment used loopback bindings. The upstream installation and authentication instructions distinguish server API keys from account-based WebUI access, including AUTH_ACCOUNTS and TOKEN_SECRET for protected browser access.

The README also explains that hiding administrative controls is a user-interface choice; authorization belongs on the server. The separate lalitsuryan/lightragmcp connector advertises document-deletion tools, adding a second access decision for assistant integrations. MCP is the protocol an assistant uses to call external tools. A query integration and an integration allowed to delete documents require different permissions because they expose different operations.

LightRAG vs GraphRAG, basic RAG and other alternatives

Microsoft GraphRAG is largely in maintenance mode. Its README says it will receive appropriate bug fixes and dependency updates but will not accept new pull requests or implement new features. For a retrieval-stack decision, that maintenance policy belongs beside the architecture comparison. LightRAG's current README also supplies an internal baseline: naive mode retrieves text chunks by vector similarity, while mix combines graph and text retrieval.

Choice Why consider it Evidence relevant to the decision
Microsoft GraphRAG Explore its graph-based research pipeline Its README describes structured-data extraction and maintenance mode
Basic vector RAG with reranking Compare document-specific answers with a simpler pipeline Issue #3234 reports correct initial city answers from that approach
Graphiti Build around changing facts and historical relationships Its README describes temporal context graphs and source provenance
RAG-Anything Investigate multimodal document processing The LightRAG README describes the related project and its integration

Graphiti's README describes a framework whose surrounding ingestion service, tenancy, access control and operations are the developer's responsibility. Neo4j fills a different role: the LightRAG implementation review identifies it as a graph-storage backend. Storing a graph and constructing a document-retrieval application are separate jobs. For a first comparison, use the same documents and questions with LightRAG mix, its naive mode and a vector-and-reranker pipeline.

What the other reviews get wrong

The LightRAG paper reports LLM-judged answer preferences, rather than a document-level factual-accuracy score. The official project page describes GPT-4o-mini ranking answers for comprehensiveness, diversity, empowerment and overall preference. Courtlin Holt-Nguyen's Medium review labels legal results "over 80% retrieval accuracy". Preference win rates and factual retrieval accuracy measure different things, so the latter label should not replace the paper's stated evaluation method.

Raj Mohan's LinkedIn comparison calls LightRAG text-only. The server-guide copy in render-examples/LightRAG describes multimodal analysis in its v1.5.0rc2 upgrade section, including parser sidecars and VLM_PROCESS_ENABLE=true. The current upstream README also describes multimodal processing starting with v1.5. The categorical text-only description therefore conflicts with both the version-specific guide copy and upstream's description.

AIQuinta's cost explanation associates LightRAG with a single API call and fewer than 100 tokens per query. The implementation review at commit 453dce8 describes a keyword-extraction call followed by answer generation. Its retrieval context includes entities, relationships and chunks. The dev.to tutorial's description of Global mode as considering the entire graph also exceeds that review's description of relation-centric retrieval, one-hop expansion and token budgets.

GeeksforGeeks claims consistent gains in comprehensiveness, diversity and contextual relevance. Those criteria do not establish factual correctness; issue #3234 reports document misattribution. The GeeksforGeeks description and the city-document report concern different evaluation criteria. A useful answer assessment records both the coverage of an answer and whether each statement belongs to the cited document.

AIQuinta's claim that incremental updates keep answers instantly current also needs correction: the 453dce8 review reports answers cached before document additions. Separately, the dev.to example pairs bge-m3 with 1,536 dimensions, while the render-examples server guide pairs bge-m3:latest with 1,024 dimensions. Upstream's README states the governing configuration rule: EMBEDDING_DIM must equal the embedding model's output dimension.

Questions people ask

Install lightrag-hku for HKUDS/LightRAG, use the API extra for its server, and configure both language and embedding models before indexing. The upstream README documents those setup choices, while the questions below cover retrieval modes, application connections and changing legal documents. The practical choice is between operating and evaluating that retrieval service yourself and selecting a workflow whose document handling already meets your requirements.

What is LightRAG, and how does graph-enhanced retrieval differ from basic vector RAG?

LightRAG retrieves extracted entities and relationships as well as document text. Basic vector retrieval finds text by similarity. The project architecture describes low-level entity retrieval and high-level theme retrieval, followed by answer generation using retrieved material. Upstream also documents naive mode for text-only vector retrieval and mix mode for combining the retrieval paths, giving a developer two configurations to compare within LightRAG.

Where are the HKUDS/LightRAG GitHub repository, paper and documentation?

The repository is HKUDS/LightRAG, and its README links the paper and documentation. Start with the HKUDS/LightRAG repository for installation and configuration, and the official LightRAG project page for the architecture and experiment description. The server-guide copy cited here lives in render-examples/LightRAG and describes a v1.5.0rc2 upgrade; the run records identify commits 4d0afc1 and cf82ba9f1e51 separately.

Which package should I install for HKUDS/LightRAG?

The package name is lightrag-hku; the documented server installation is uv tool install "lightrag-hku[api]". The current upstream README says the PyPI package includes a prebuilt WebUI. Its source-installation path instead includes a frontend build with Bun. Choose the installation route for the work you intend to do: running the packaged server or modifying and building the repository.

How do I install LightRAG locally, index documents and visualize the knowledge graph?

The server's WebUI supports document indexing, graph exploration and queries. Both a language model and an embedding model need configuration before indexing, according to the render-examples server-guide copy. Upstream documents the API package, env.example and server startup. It also says to select the embedding model before the first upload and use matching embedding semantics for later queries.

How do I connect LightRAG to an agent through its API?

LightRAG provides a REST API and an Ollama-compatible interface. The server-guide copy describes clients such as Open WebUI using that compatibility interface. Configure the application's server address and authentication together. Upstream's README says setting LIGHTRAG_API_KEY also protects the Ollama-compatible /api/* routes, whose clients send the key as a bearer token; an account login and a programmatic API key serve different access paths.

Can I connect LightRAG to an MCP client such as Claude Desktop or Cline?

The separate lalitsuryan/lightragmcp project documents those client integrations and advertises document-management tools. Its delete_document description says it deletes a document by ID, while clear_documents advertises clearing all documents. This connector is a separate component from HKUDS/LightRAG. Decide which operations the assistant should receive, especially when a connection can change the collection rather than only retrieve material for an answer.

Should I choose LightRAG or GraphRAG for more than 5,000 frequently changing legal documents?

The legal-corpus question requires current-law lookups and historical synthesis across more than 5,000 documents. Its author explicitly asks for versioning and temporal validity in the r/Rag discussion. Evaluate those as separate requirements: identifying the currently effective text, preserving superseded text and answering historical questions. Incrementally adding graph records addresses a different operation from deciding when a legal provision applies.

How can I track amendments, overrulings and temporal validity without rebuilding the whole graph?

Temporal validity requires representing when a fact applies and what supersedes it. The legal-corpus discussion asks for those capabilities, while LightRAG's project page describes incremental insertion by extracting new graph data and merging nodes and edges. A legal application needs rules for effective dates and ended relationships alongside ingestion. Graphiti's README describes validity windows and historical facts, making temporal representation a concrete alternative design to examine.

What are better alternatives to LightRAG for a small local deployment?

Commenters suggest R2R, Agentset, Morphik and Graphiti in the small-deployment discussion. The thread also contains a user's tuned LightRAG workflow with topic-specific PDF instances. For a local evaluation, use the same documents and questions to compare resource use, answer attribution and operational steps. The suggestions identify candidates; the choice should follow the document workflow and model services you intend to operate.

What we have not tested yet

Our November run stopped before document ingestion and checked answers. It supplies no answer-accuracy, indexing-cost or answer-latency measurement. Both 0 MiB samples are unusable for sizing; the later sample's label is not evidence that questions ran. The model-pull excerpt identifies neither the model nor total transfer time or traffic. No screenshot or checked question-answer records accompany the attempt. The missing-port error does not identify whether the mismatch originated in Compose or the runner's expectations.

The October figures are stored command and parser results, rather than reconciled unique-test coverage. The sandbox image label does not establish actual runtime or operating-system versions. The failing tail leaves the causes of the route behavior and missing attribute unresolved. The audit count omits package identities, severity and reachability. No new execution occurred for this correction, and neither run establishes behavior at the v1.5.8 release tag.

Our runs did not assess multimodal parsing, LM Studio troubleshooting, cache freshness, automatic alias resolution, filename identity or heading inheritance across formats. The render-examples guide's synchronization with current upstream is unknown. Historical issue workarounds and the 453dce8 code review describe their own revisions. The video cost anecdote changes models between frameworks, the guide excerpt lacks a completed scored comparison, and the X recommendation supplies no demonstrated workload.

We also lack matched workflow comparisons with GraphRAG, RAGFlow, Graphify, Graphiti, Obsidian and LlamaIndex, a current storage-backend performance matrix, and a demonstrated legal-update workflow. The third-party MCP connector's authentication, workspace isolation and destructive operations need checks against pinned versions. A useful next evaluation records the correct source for each question, includes repeated names and conflicting facts, changes one document, then asks the same questions again.

Alternatives

ProjectWhat it isPick it when
Microsoft GraphRAGA research pipeline for extracting structured data from text and forming context for answers.Consider its graph-based research approach when its README's maintenance-mode policy fits your plans.
Graphiti gh↗A framework for building and querying temporal context graphs.Consider it when changing facts and historical relationships are central, and you can build and operate the surrounding service.
RAG-Anything gh↗A related multimodal RAG project described in LightRAG's README.Consider its document-processing approach alongside the multimodal pipeline documented for your chosen LightRAG revision.

Sources

  1. HKUDS/LightRAG README
  2. LightRAG project and paper
  3. LightRAG server-guide copy in render-examples/LightRAG
  4. Document identity discussion
  5. Entity merging discussion
  6. Local deployment discussion
  7. Microsoft GraphRAG README
  8. Graphiti README

More llm tools reviews