HKUDS/LightRAG

[EMNLP2025] LightRAG: Simple and Fast Retrieval-Augmented Generation

What it solves

LightRAG is a lightweight, graph-based Retrieval-Augmented Generation (RAG) framework designed to be a more efficient alternative to Microsoft GraphRAG. It solves the problems of heavy computational overhead, slow response times, and high costs associated with incremental updates in large-scale graph indexing and retrieval, while overcoming the fragmented context limitations of traditional chunk-based vector RAG.

How it works

LightRAG uses a dual-layer architecture that manages both knowledge graphs (KGs) and vector embeddings. This allows the system to perform dual-level retrieval, integrating detailed facts and abstract concepts simultaneously. It avoids inefficient multi-hop reasoning or community reports for complex queries, which reduces the number of LLM calls and lowers latency. For data ingestion, it supports multiple parsing engines (MinerU, Docling, Native) and four chunking strategies (Fixed, Recursive, Vector, and Paragraph semantic) to maintain document structure.

Who it’s for

It is designed for developers and organizations needing high-quality RAG in vertical domains (such as legal or financial) that require global comprehension, logical reasoning, and the ability to handle complex, cross-document queries across large-scale datasets.

Highlights

  • Dual-Layer Architecture: Combines knowledge graphs and vector embeddings for comprehensive and diverse retrieval.
  • Efficient Updates: Supports incremental updates and selective document deletion with automatic KG regeneration.
  • Multimodal Support: Integrates multimodal processing for images, formulas, and tables, connecting them to the body text via the knowledge graph.
  • Flexible Storage: Supports various production-ready backends including PostgreSQL, MongoDB, Neo4J, and OpenSearch.
  • Advanced Parsing: Includes a native engine that corrects section headings in Word documents and aligns chunk boundaries with semantic boundaries.

Related

  • Project
  • Project
  • Project
  • Project
  • Project