LightRAG is a knowledge-graph retrieval-augmented generation framework from HKUDS, tied to an EMNLP 2025 paper. It combines a knowledge graph with vector search and offers five query modes, supports incremental updates and document deletion, and parses documents with MinerU, Docling or a native engine.
Storage is pluggable. The defaults are for testing only, and PostgreSQL is recommended for production.
Install with uv tool install "lightrag-hku[api]", set API keys in .env, start lightrag-server and open localhost:9621/webui. Secure the server before exposing it on a network. MIT licensed.