LightRAG: Simple and Fast Retrieval-Augmented Generation

Zirui Guo, Lianghao Xia, Yanhua Yu, Tu Ao, Chao Huang

arXiv:2410.05779 · 2026-07-27 공개 · arXiv · PDF

llm retrieval-augmented information-retrieval knowledge-discovery graph-structures vector-representations incremental-update response-time

Abstract

Retrieval-Augmented Generation (RAG) systems enhance large language models (LLMs) by integrating external knowledge sources, enabling more accurate and contextually relevant responses tailored to user needs. However, existing RAG systems have significant limitations, including reliance on flat data representations and inadequate contextual awareness, which can lead to fragmented answers that fail to capture complex inter-dependencies. To address these challenges, we propose LightRAG, which incorporates graph structures into text indexing and retrieval processes. This innovative framework employs a dual-level retrieval system that enhances comprehensive information retrieval from both low-level and high-level knowledge discovery. Additionally, the integration of graph structures with vector representations facilitates efficient retrieval of related entities and their relationships, significantly improving response times while maintaining contextual relevance. This capability is further enhanced by an incremental update algorithm that ensures the timely integration of new data, allowing the system to remain effective and responsive in rapidly changing data environments. Extensive experimental validation demonstrates considerable improvements in retrieval accuracy and efficiency compared to existing approaches. We have made our LightRAG open-source and available at the link: https://github.com/HKUDS/LightRAG

한국어 요약

한 줄 요약

LightRAG는 그래프 기반 인덱싱과 이중 수준 검색을 결합하여 RAG 시스템의 정확도와 효율성을 향상시킨다.

핵심 기여도

핵심 아이디어

기존 RAG 시스템은 평탄한 데이터 표현과 부족한 맥락 인식으로 인해 복잡한 관계를 포괄적으로 검색하지 못한다. LightRAG는 이 문제를 해결하기 위해 그래프 구조를 텍스트 인덱싱과 검색에 통합하여, 관련된 엔티티와 관계를 효율적으로 검색할 수 있도록 했다. 이중 수준 검색(로우-레벨: 특정 엔티티, 하이-레벨: 주제/문맥)을 통해 정밀성과 포괄성을 동시에 달성한다. 또한, 인크리멘탈 업데이트 알고리즘을 통해 새로운 데이터를 기존 그래프에 통합함으로써, 전체 인덱스 재구성 없이도 시스템을 유지할 수 있다.

기술적 접근법

주요 결과

의의 및 한계

LightRAG는 RAG 시스템의 효율성과 정확도를 동시에 향상시켜, 복잡한 질의에 대한 일관되고 포괄적인 응답을 가능하게 한다. 특히, 인크리멘탈 업데이트 알고리즘은 실시간 데이터 환경에서의 유연성을 강화하며, 토큰 소비와 API 호출 수를 대폭 줄여 비용 효율성을 높인다. 그러나, 그래프 기반 인덱싱은 초기 데이터 전처리 과정에서 추가적인 계산 비용이 발생할 수 있으며, 모든 텍스트가 엔티티-관계 구조로 잘 매핑되지 않는 경우 성능 저하가 있을 수 있다.

실용적 활용

LightRAG는 법률, 의료, 금융 등 엔티티 간 복잡한 관계가 중요한 분야에서 효과적으로 활용될 수 있다. 특히, 실시간으로 업데이트되는 정보가 필요한 상황에서 인크리멘탈 업데이트 기능을 통해 지속적인 성능 유지가 가능하다. 또한, 대규모 텍스트 코퍼스를 처리해야 하는 RAG 기반 애플리케이션 개발에도 적합하다.