aicoolies logo
LightRAG logo
LightRAG logo

LightRAG

Knowledge graph-powered RAG framework from HKU

open sourceupdated Aug 16, 2026

LightRAG is a research-backed RAG framework from Hong Kong University that combines knowledge graph structures with vector search for more contextual retrieval. Published at EMNLP 2025, it extracts entities and relationships from documents to build a structured knowledge graph, then uses dual-level retrieval across both graph and vector representations with five query modes: naive, local, global, hybrid, and mix.

Read our LightRAG review

A detailed review by the aicoolies team — click to read

LightRAG is a retrieval-augmented generation framework from HKU Data Science that combines knowledge-graph structures with vector retrieval. Published around the EMNLP 2025 paper with roughly 36K+ GitHub stars at write time, it addresses a core limitation of ordinary RAG systems: flat vector chunks often miss the relationships between entities, systems, people, and concepts.

The framework extracts entities and relationships from documents, stores them alongside vector representations, and supports multiple retrieval modes for local graph traversal, global graph context, hybrid retrieval, and broader mixed strategies. It also supports incremental updates so new documents can be added without rebuilding an entire knowledge graph, which is important for living knowledge bases.

LightRAG is MIT licensed and works with a broad set of storage backends including PostgreSQL, MongoDB, Neo4j, Milvus, Qdrant, ChromaDB, Faiss, and related options. The ecosystem includes RAG-Anything for multimodal documents, tables, formulas, and images. Extraction quality depends on the selected LLM and corpus complexity, so production teams should validate graph quality instead of assuming a fixed model-size rule.

Pricing

Free and open source (MIT). Bring your own LLM API key for entity extraction and queries.

Platforms

Python package via pip or uv. Docker and Kubernetes deployment. Web UI included. Works with any LLM provider.

Categories

Tags

Use Cases

LangChain logo

LangChain

Framework for LLM applications

The most widely-used framework for building LLM-powered applications, available in Python and JavaScript. Provides abstractions for chains, agents, RAG, memory, tool usage, and structured output. Integrates with 100+ LLM providers, vector stores, document loaders, and tools. LangSmith offers tracing and evaluation. LangGraph enables stateful, multi-agent workflows with cycles. 100K+ GitHub stars. The de facto standard for LLM application development despite growing alternatives like LlamaIndex.

Open Source
LlamaIndex logo

LlamaIndex

Data framework for LLM applications

Leading Python framework for building LLM-powered applications with focus on data-aware and agentic workflows. Provides tools for RAG (Retrieval-Augmented Generation), document indexing, vector store integrations, query engines, and multi-agent orchestration. 150+ data connectors for various sources. Works with OpenAI, Anthropic, local models, and more. Includes LlamaHub for community tools and LlamaCloud for managed RAG pipelines. 50K+ GitHub stars.

Open Source
RAGFlow logo

RAGFlow

Deep document understanding RAG engine

RAGFlow is an open-source RAG engine with 76K+ GitHub stars that provides deep document understanding for building knowledge-based AI applications. Optimizes chunking for 20+ document types including PDFs, Word docs, presentations, and images using layout-aware parsing. Features template-based chunking strategies, citation with source references, multi-recall retrieval combining keyword and semantic search, and a visual knowledge base management interface with drag-and-drop document upload.

Open Source

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

Agent Skills logo

Agent Skills

Open standard for portable skills across AI agents

Agent Skills is the open SKILL.md folder specification for packaging reusable instructions, scripts, references, and assets that compatible AI agents load through progressive disclosure. Originally developed by Anthropic and released as an open standard, it defines the portable format itself—not an example library, marketplace, or hosted agent product.

Open Source
hyperagent

HyperAgent

Open-source natural-language browser automation framework for AI agents

An AGPL-3.0 TypeScript framework that drives a real browser from natural-language tasks — the self-hostable OSS framework from Hyperbrowser, distinct from the vendor's paid cloud browser product.

freeOpen Source
KaibanJS logo

KaibanJS

JavaScript framework for building and visualizing multi-agent workflows on a Kanban board

KaibanJS is an MIT-licensed JavaScript framework for defining AI agents, tasks, tools, and teams, then orchestrating their work through a Kanban-inspired runtime and visual board. It can run inside Node.js, React, or Next.js projects, supports custom UIs and headless workflows, and provides real-time task-state visibility for multi-agent applications.

Open SourceTelemetry
Sakana Fugu logo

Sakana Fugu

Multi-agent model API that orchestrates frontier models behind one OpenAI-compatible endpoint

Sakana Fugu is a hosted model-provider API that exposes a learned multi-agent system as one OpenAI-compatible model. It dynamically routes coding, code review, research, and reasoning tasks across a frontier-model pool, with Fugu for lower-latency work and Fugu Ultra for harder workloads where answer quality matters more than cost or speed.

paidTelemetry
LangChain logo

OpenWiki

LangChain CLI for maintaining agent-friendly codebase documentation

OpenWiki is LangChain’s open-source CLI for generating and maintaining an agent-focused wiki inside a codebase. It can create an openwiki/ documentation folder, update it from repository changes, add guidance to AGENTS.md or CLAUDE.md, and run via an interactive CLI or daily GitHub Action so coding agents have durable context without stuffing every detail into prompts.

Open SourceTelemetry
Accomplish Coworker logo

Accomplish Coworker

Open-source desktop AI coworker for browsing and code execution.

Accomplish Coworker is an MIT-licensed open-source AI coworker that runs on the desktop, combining computer-use style browsing with code execution so agents can research, implement, run, and debug workflows in one local environment.

Open SourceTelemetry

Used in Stacks

Comparisons

LightRAG vs LangChain — Lightweight RAG Framework vs Comprehensive LLM Application Platform

LightRAG provides a focused graph-enhanced retrieval-augmented generation framework that combines knowledge graphs with vector search for improved context retrieval. LangChain offers a comprehensive platform for building LLM applications with chains, agents, memory, and extensive integrations. LightRAG wins for specialized RAG workflows while LangChain wins as a general-purpose LLM framework.

LightRAGLangChain

LightRAG vs RAGFlow — Knowledge Graph RAG vs Enterprise Document Intelligence

LightRAG and RAGFlow both enhance retrieval-augmented generation beyond basic vector search, but their approaches target different users. LightRAG builds knowledge graphs from documents for relationship-aware retrieval and is aimed at developers. RAGFlow focuses on enterprise document intelligence with visual chunking, template-based extraction, and a no-code interface for business teams.

LightRAGRAGFlow

FAQ

What is LightRAG?

LightRAG is a research-backed RAG framework from Hong Kong University that combines knowledge graph structures with vector search for more contextual retrieval. Published at EMNLP 2025, it extracts entities and relationships from documents to build a structured knowledge graph, then uses dual-level retrieval across both graph and vector representations with five query modes: naive, local, global, hybrid, and mix.

Is LightRAG free?

Yes — LightRAG is open source and free to use. Free and open source (MIT). Bring your own LLM API key for entity extraction and queries.

Is LightRAG open source?

Yes — LightRAG is open source.

What are the best LightRAG alternatives?

The top editor-verified LightRAG alternatives are LangChain, LlamaIndex, RAGFlow.

How does LightRAG score in our review?

Our hands-on review scores LightRAG 83/100 overall, based on speed, privacy, and developer-experience testing.