Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

LightRAG: Simple and Fast Retrieval-Augmented Generation

About

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

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

Related benchmarks

TaskDatasetResultRank
Multi-hop Question Answering2WikiMultihopQA
EM17.78
278
Multi-hop Question AnsweringHotpotQA
F1 Score39.06
221
Multi-hop Question AnsweringHotpotQA (test)
F168.3
198
Multi-hop Question Answering2WikiMultiHopQA (test)
EM31.5
143
Question AnsweringHotpotQA
F120.2
114
Multi-hop Question AnsweringMuSiQue (test)
F143
111
Question AnsweringMuSiQue
EM2
84
Question AnsweringPopQA
EM1.9
80
Question Answering2Wiki
F114.44
75
Question Answering2WikiMultiHopQA (test)
F116.59
69
Showing 10 of 109 rows
...

Other info

Follow for update