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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Chen, Boyu, Guo, Zirui, Yang, Zidan, Chen, Yuluo, Chen, Junze, Liu, Zhenghao, Shi, Chuan, Yang, Cheng
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917085073899520
author Chen, Boyu
Guo, Zirui
Yang, Zidan
Chen, Yuluo
Chen, Junze
Liu, Zhenghao
Shi, Chuan
Yang, Cheng
author_facet Chen, Boyu
Guo, Zirui
Yang, Zidan
Chen, Yuluo
Chen, Junze
Liu, Zhenghao
Shi, Chuan
Yang, Cheng
contents 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 asgraph-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. The code is available at the following link: https://github.com/BUPT-GAMMA/PathRAG
format Preprint
id arxiv_https___arxiv_org_abs_2502_14902
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle PathRAG: Pruning Graph-based Retrieval Augmented Generation with Relational Paths
Chen, Boyu
Guo, Zirui
Yang, Zidan
Chen, Yuluo
Chen, Junze
Liu, Zhenghao
Shi, Chuan
Yang, Cheng
Computation and Language
Artificial Intelligence
Information Retrieval
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 asgraph-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. The code is available at the following link: https://github.com/BUPT-GAMMA/PathRAG
title PathRAG: Pruning Graph-based Retrieval Augmented Generation with Relational Paths
topic Computation and Language
Artificial Intelligence
Information Retrieval
url https://arxiv.org/abs/2502.14902