HopRAG: Multi-Hop Reasoning for Logic-Aware Retrieval-Augmented Generation

Hao Liu, Zhengren Wang, Xi Chen, Zhiyu Li, Feiyu Xiong +2 more
2/18/2025
cs.IRcs.CL
rag

No confident code implementation found for this paper.

Abstract

Retrieval-Augmented Generation (RAG) systems often struggle with imperfect retrieval, as traditional retrievers focus on lexical or semantic similarity rather than logical relevance. To address this, we propose \textbf{HopRAG}, a novel RAG framework that augments retrieval with logical reasoning through graph-structured knowledge exploration.

Show full abstract

During indexing, HopRAG constructs a passage graph, with text chunks as vertices and logical connections established via LLM-generated pseudo-queries as edges. During retrieval, it employs a \textit{retrieve-reason-prune} mechanism: starting with lexically or semantically similar passages, the system explores multi-hop neighbors guided by pseudo-queries and LLM reasoning to identify truly relevant ones. Experiments on multiple multi-hop benchmarks demonstrate that HopRAG's \textit{retrieve-reason-prune} mechanism can expand the retrieval scope based on logical connections and improve final answer quality.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025hoprag,
  title  = {HopRAG: Multi-Hop Reasoning for Logic-Aware Retrieval-Augmented Generation},
  author = {Hao Liu and Zhengren Wang and Xi Chen and Zhiyu Li and Feiyu Xiong and Qinhan Yu and Wentao Zhang},
  year   = {2025},
  eprint = {2502.12442},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12442v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.12442.svg)](https://codeofpaper.com/paper/2502.12442)

Discussion