LightRAG
Lightweight RAG framework that combines knowledge graphs with vector retrieval for dual-level queries.
About
Combining a knowledge graph with vector embeddings, LightRAG answers queries through dual-level retrieval: a local mode that follows entity relationships for specific questions and a global mode that reasons over higher-level themes, with hybrid, naive, and mix strategies rounding out five query modes. The framework from HKU's data intelligence lab positions itself as a lighter, cheaper alternative to Microsoft's GraphRAG, and the approach is documented in an EMNLP 2025 paper. Documents index incrementally without rebuilding the graph, parse through MinerU, Docling, or a native pipeline, and persist across storage backends including PostgreSQL, Neo4j, MongoDB, Milvus, Qdrant, and OpenSearch, with multimodal support for tables, formulas, and images. The lightrag-hku package installs from PyPI on Python 3.10 or newer, and the repository ships a REST API server with a web UI plus Docker Compose deployment. It pairs with OpenAI-compatible APIs or local models through Ollama, carries an MIT license, and has passed 38,000 GitHub stars, making it one of the most adopted open RAG frameworks.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- AI Frameworks & Libraries
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Intermediate (3/5)
- License
- MIT
- Added
- Jul 29, 2026
Related Tools
Unified system for large-scale distributed training and inference.
Guidance language for controlling LLM generation with constraints, grammars, and JSON schemas.
Library for easily accessing and processing ML datasets.
JAX neural network library with PyTorch-like module system.
High-level deep learning API supporting JAX, TensorFlow, and PyTorch backends.
Gradient boosting library by Yandex with native categorical feature handling.