LightRAG

by HKUDS
Open

Builds a document question-answering system with a knowledge graph, vector search, and several retrieval modes.

Description

LightRAG is an open-source retrieval-augmented generation system for working with your own documents. It extracts entities and relationships to construct a knowledge graph alongside document indexes. Queries can use local, global, hybrid, naive, or mix retrieval. These modes combine graph relationships and text chunks in different ways before providing context for a language model's answer. The project can run as a Python application or a Docker service with an API and web interface. For example, a team can index project documentation and ask about specific facts or relationships across files. An LLM and embedding model must be configured for indexing and answers. Hosted providers may charge for model calls, and changing the embedding model after documents have been loaded requires reindexing.