LibreAI / AI Agents / LightRAG
// agents · HKUDS/LightRAG

LightRAG

Simple, fast retrieval-augmented generation with graph smarts.

★ 40.0k stars⑂ 5.7k forksMITupdated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

LightRAG is an open-source ai agents project by HKUDS (HKUDS/LightRAG on GitHub). It has 40,014 GitHub stars and 5,668 forks, is released under the MIT license, and was last updated on GitHub on 3 October 2026.

Repository
HKUDS/LightRAG
GitHub stars
40,014
Forks
5,668
License
MIT
Last updated on GitHub
3 October 2026
Category
AI Agents
Listing
Full install guide
// how it works

How it works

  1. Start with a use case

    Pick one concrete task so you can judge whether the project fits.

  2. Fetch the source

    Clone the repo and check the prerequisites listed in the README.

  3. Set up the environment

    Install what it needs and configure credentials or model access.

  4. Try the sample workflow

    Run a minimal example end to end before wiring it into your stack.

// features

Why people love it

Graph-enhanced RAG

Uses knowledge-graph structure to organize retrieval.

Research-backed

Presented at EMNLP 2025 with an accompanying paper.

Simple and fast

Positioned as a lean alternative to heavyweight RAG stacks.

Python-native

Hackable Python codebase.

MIT licensed

Permissive licensing.

Large community

Over 5,600 forks.

Advertisement
// run it

Run it yourself

  1. Step 1 — Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/HKUDS/LightRAG.git
    cd LightRAG
  2. Step 2 — Install dependencies

    Set up a virtual environment and install requirements.

    python -m venv .venv && source .venv/bin/activate
    pip install -r requirements.txt
  3. Step 3 — Run an example

    Configure your LLM/embedding keys and run the quickstart.

    # see README for the exact example path
    python examples/quickstart.py
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains LightRAG?

It is maintained by HKUDS at HKUDS/LightRAG, with 5,668 forks. The project page links to the EMNLP 2025 paper for background.

Is LightRAG free to use?

Yes. It is released under the MIT license, which permits commercial use, modification, and redistribution. Read the LICENSE file for the exact terms.

Do I need a paid API to use it?

You will need an LLM and embedding provider for generation and embeddings; the framework itself is free.

How does it compare to other RAG frameworks?

Compare on retrieval quality and simplicity for your corpus — its selling point is lean, graph-enhanced retrieval.

How do I get started?

Clone the repo, install dependencies, add your provider keys, and follow the README quickstart alongside the paper.

// keep exploring

Similar tools

AI Agents

MemOS

Self-evolving memory OS for LLMs and agents: persistent graph memory, hybrid retrieval, skill reuse.

★ 11.8k starsApache-2.0
View guide →
AI Agents

firecracker

Secure, fast microVMs that make serverless possible.

★ 37.2k starsApache-2.0
View guide →
AI Agents

genesis-world

A Python simulation platform for robotics and embodied AI — fast physics, rendering and learning

★ 30.0k starsApache-2.0
View guide →
AI Agents

semantic-kernel

Microsoft's SDK for weaving LLMs into real applications, fast.

★ 28.6k starsMIT
View guide →
AI Agents

fastmcp

The fast, Pythonic way to build MCP servers and clients.

★ 28.0k starsApache-2.0
View guide →
AI Agents

bifrost

A blazing-fast enterprise AI gateway: 1000+ models, sub-100µs overhead.

★ 8.6k starsApache-2.0
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if LightRAG is not the right fit.

Get LightRAG

Free and open — grab the source, star the repo, and start creating.