PathRAG: Pruning Graph-based Retrieval Augmented Generation with Relational Paths

Authors

  • Boyu Chen Beijing University of Posts and Telecommunications, China
  • Zirui Guo University of Hong Kong, China
  • Zidan Yang Beijing University of Posts and Telecommunications, China
  • Yuluo Chen Beijing University of Posts and Telecommunications, China
  • Junze Chen Tianyi E-Commerce Co., Ltd.
  • Zhenghao Liu Northeastern University, China
  • Chuan Shi Beijing University of Post and Telecommunication, China
  • Cheng Yang Beijing University of Posts and Telecommunications, China

DOI:

https://doi.org/10.1609/aaai.v40i36.40268

Abstract

Retrieval-augmented generation (RAG) improves the response quality of large language models (LLMs) by retrieving knowledge from external databases. Typical RAG approaches split the text database into chunks, organizing them in a flat structure for efficient searches. To better capture the inherent dependencies and structured relationships across the text database, researchers propose to organize textual information into an indexing graph, known as graph-based RAG. However, we argue that the limitation of current graph-based RAG methods lies in the redundancy of the retrieved information, rather than its insufficiency. Moreover, previous methods use a flat structure to organize retrieved information within the prompts, leading to suboptimal performance. To overcome these limitations, we propose PathRAG, which retrieves key relational paths from the indexing graph, and converts these paths into textual form for prompting LLMs. Specifically, PathRAG effectively reduces redundant information with flow-based pruning, while guiding LLMs to generate more logical and coherent responses with path-based prompting. Experimental results show that PathRAG consistently outperforms state-of-the-art baselines across six datasets and five evaluation dimensions.

Downloads

Published

2026-03-14

How to Cite

Chen, B., Guo, Z., Yang, Z., Chen, Y., Chen, J., Liu, Z., … Yang, C. (2026). PathRAG: Pruning Graph-based Retrieval Augmented Generation with Relational Paths. Proceedings of the AAAI Conference on Artificial Intelligence, 40(36), 30183–30191. https://doi.org/10.1609/aaai.v40i36.40268

Issue

Section

AAAI Technical Track on Natural Language Processing I