# LightRAG

[BASE product page](<https://base.akulich.dev/en/library/lightrag/>) · [Resource](<https://github.com/hkuds/LightRAG>)

ID: lightrag · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

A retrieval framework combining an entity graph and vector search: it adds relationships between documents to LLM context retrieval\.

## Type

AI / ML development tool

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/lightrag/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/lightrag/#resource-access>)

A local code pipeline under MIT; rights for the selected models are checked separately\.

## [Paid features and costs](<https://base.akulich.dev/en/library/lightrag/#resource-access>)

Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights\.

## [Access and limitations](<https://base.akulich.dev/en/library/lightrag/#resource-access>)

A local code pipeline under MIT; rights for the selected models are checked separately\. Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights\.

## [Use cases](<https://base.akulich.dev/en/library/lightrag/#resource-tasks>)

- Add entity relationships to retrieval
- Build relationships and compare retrieved context for reference questions

## Category IDs

- ai
- backend

## Subcategory IDs

- ai\.orchestration
- backend\.api
- ai\.retrieval

## Tags

- LightRAG
- ml
- Development

## Also known as

- hkuds/LightRAG
- lightrag
- light\-retrieval\-augmented\-generation

## [Selection purpose](<https://base.akulich.dev/en/library/lightrag/#resource-selection>)

Add entity relationships to retrieval

## [Choose this when](<https://base.akulich.dev/en/library/lightrag/#resource-selection>)

- Add entity relationships to retrieval
- Build relationships and compare retrieved context for reference questions

## [Requirements](<https://base.akulich.dev/en/library/lightrag/#resource-selection>)

- Configure LLM/embedding settings in \.env and authentication or a local\-only bind address before allowing network access\.

## [Limitations](<https://base.akulich.dev/en/library/lightrag/#resource-selection>)

- Costs and limits of free use: Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights\.
- Terms of use: MIT for the code; dependencies have separate licenses\.
- Auth configuration without checking the whitelist may leave Ollama\-compatible routes open\.

## [Questions before use](<https://base.akulich.dev/en/library/lightrag/#resource-faq>)

### What can you use for free in LightRAG?

A local code pipeline under MIT; rights for the selected models are checked separately\.

### What additional costs might arise with LightRAG?

Model APIs, managed services, and computing resources are paid for separately; the code license does not license all model weights\.

### What terms of use matter for LightRAG?

MIT for the code; dependencies have separate licenses\.

### How do you get started with LightRAG?

Prepare documents and choose a graph/vector retrieval pipeline\. Build relationships and compare retrieved context for reference questions\. Connect the workflow to the application and make errors observable\.

### How can I configure different LLM roles without exposing the LightRAG API without authentication?

LightRAG separates the LLM roles EXTRACT, QUERY, KEYWORDS, and VLM with independent settings; four chunking strategies are available: Fix, Recursive, Vector, and Paragraph\. The server listens on 0\.0\.0\.0 by default\. The README requires configuring API keys/accounts or restricting the bind address; Ollama\-compatible /api/\* routes are excluded from protection by default, and WHITELIST\_PATHS=/health is set for them\.

## Sources for the selection guide

- [https://github\.com/hkuds/LightRAG](<https://github.com/hkuds/LightRAG>)
- [https://raw\.githubusercontent\.com/hkuds/LightRAG/HEAD/README\.md](<https://raw.githubusercontent.com/hkuds/LightRAG/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/hkuds/LightRAG/HEAD/LICENSE](<https://raw.githubusercontent.com/hkuds/LightRAG/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)
- [https://raw\.githubusercontent\.com/HKUDS/LightRAG/HEAD/LICENSE](<https://raw.githubusercontent.com/HKUDS/LightRAG/HEAD/LICENSE>)

## [Possible workflow](<https://base.akulich.dev/en/library/lightrag/#resource-scenario>)

Add entity relationships to retrieval\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- Test documents or tasks, and a quality criterion\.
- Models, a runtime, and a computing budget\.

## Steps

1. Prepare documents and choose a graph/vector retrieval pipeline\.
2. Build relationships and compare retrieved context for reference questions\.
3. Connect the workflow to the application and make errors observable\.

## Check your result

- Check the result against reference examples and invalid inputs\.
- Inference costs, model rights, and data handling have been established\.

## [License](<https://base.akulich.dev/en/library/lightrag/#resource-license>)

MIT for the code; dependencies have separate licenses\.

## License explanations for the specified scope

### MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed\-source commercial product\. When sharing copies or substantial portions of the code, retain the license text and copyright notice\. You do not need to open\-source your entire project; the author provides no warranties\.

[License terms](<https://opensource.org/license/mit>)

## [Sources](<https://base.akulich.dev/en/library/lightrag/#resource-sources>)

- [Official source](<https://github.com/hkuds/LightRAG>)
- [Official source](<https://raw.githubusercontent.com/hkuds/LightRAG/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/hkuds/LightRAG/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)
- [Official source](<https://raw.githubusercontent.com/HKUDS/LightRAG/HEAD/LICENSE>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The purpose, current repository license, and separate terms for code, services, and models have been reviewed\. The product was not run, and no security audit was performed\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
