Abstract Graph-based retrieval-augmented generation (RAG) enriches large language models (LLMs) with external knowledge for long-context understanding and multi-hop reasoning, but existing methods face a granularity dilemma: fine-grained entity-level graphs incur high token costs and lose context, while coarse document-level graphs fail to capture nuanced relations. We introduce QCG-RAG, a query-centric graph RAG framework that enables query-granular indexing and multi-hop chunk retrieval. Our query-centric approach leverages Doc2Query and Doc2Query-- to construct query-centric graphs with controllable granularity, improving graph quality and interpretability. A tailored multi-hop retrieval mechanism then selects relevant chunks via the generated queries. Experiments on LiHuaWorld and MultiHop-RAG show that QCG-RAG consistently outperforms prior chunk-based and graph-based RAG methods in question answering accuracy, establishing a new paradigm for multi-hop reasoning.
Introduction: The Granularity Dilemma
Retrieval-Augmented Generation (RAG) has become the standard for grounding AI in factual data. However, standard RAG systems often struggle with "multi-hop" questions—queries that require connecting evidence across different documents. Current solutions typically fall into two camps, creating a granularity dilemma:
- Chunk-based RAG: Simple and efficient but often misses the "connective tissue" between documents, leading to fragmented evidence.
- Entity-centric Graph RAG: Builds massive knowledge graphs of every person, place, and thing. While powerful, these are expensive to construct, can be noisy, and often lose the original textual context.
QCG-RAG identifies a missing middle ground: a way to capture relational knowledge without the overhead of a full-blown entity graph.
Methodology: QCG-RAG
The core innovation of QCG-RAG (Query-Centric Graph RAG) is indexing potential questions rather than raw text or abstract entities. By using synthetic queries as semantic bridges, the system can more effectively match user intent with document content.
1. Graph Construction
The construction process involves generating synthetic query-answer pairs for every text chunk using Doc2Query. To ensure quality, the system employs Doc2Query-- to filter out low-quality or hallucinated queries. The resulting graph consists of:
- Nodes: Text chunks and their associated synthetic query-answer pairs.
- Edges: "Membership" edges linking queries to their source chunks and "Similarity" edges linking semantically related queries via K-Nearest Neighbors (KNN).
2. Multi-Hop Retrieval and Generation
When a user submits a query, the system retrieves the most similar synthetic queries from the graph. It then "hops" to neighboring queries to find related context that might reside in different documents. Finally, all associated chunks are aggregated and ranked to provide the LLM with a comprehensive evidence set for answer generation.
Experimental Evaluation
The framework was evaluated on two distinct benchmarks:
- LiHuaWorld: A personal memory dataset containing a year's worth of chat records, testing long-term reasoning.
- MultiHop-RAG: A news-based dataset designed specifically for multi-hop reasoning across multiple articles.
Key Results
QCG-RAG consistently outperformed both Naive RAG and state-of-the-art graph models like GraphRAG and LightRAG:
- Overall Accuracy: It achieved 73.16% on LiHuaWorld and 79.60% on MultiHop-RAG, representing gains of +7.4% and +3.8% over Naive RAG, respectively.
- Multi-Hop Performance: On the most difficult multi-hop subsets of LiHuaWorld, QCG-RAG reached 62.12% accuracy, notably beating LightRAG's 57.58%.
- Ablation Insights: Including the answer in the node (Query+Answer) significantly outperformed using the query alone, as the answer provides necessary factual grounding.
Conclusion
QCG-RAG provides a scalable, interpretable, and cost-effective alternative to traditional graph-based RAG. By using queries as anchors for retrieval, it bridges the gap between document-level and entity-level indexing. While the system's quality depends on the underlying query generator, its ability to provide clear reasoning paths and maintain high accuracy on complex queries makes it a promising paradigm for future RAG development.
Summary updated