ArchRAG: Enhanced Graph-Based RAG
ArchRAG: Enhanced Graph-Based RAG
Retrieval-Augmented Generation
Shu Wang1 , Yixiang Fang1 , Yingli Zhou1 , Xilin Liu2 , Yuchi Ma2 ,
1
The Chinese University of Hong Kong, Shenzhen
2
Huawei Cloud Computing Technologies CO., LTD.
{shuwang3, yinglizhou}@[Link], fangyixiang@[Link], {liuxilin3, mayuchi1}@[Link]
Abstract
arXiv:2502.09891v3 [[Link]] 8 Aug 2025
1) Each AC group densely connected entities with shared and SCAN (2007)). Specifically, we propose to augment the
themes and a high-quality summary. 2) The hierarchical KG by linking entities if their attribute similarities are larger
structure captures multiple levels of abstraction: lower-level than a threshold, and then associate each pair of linked en-
entities and communities encode detailed KG knowledge, tities with a weight denoting their attribute similarity value.
while higher-level communities provide global context, en- Next, we generate the ACs using any given graph clustering
abling ArchRAG to address questions at varying granular- algorithm. In this way, both node attributes and structural
ity. and 3) The C-HNSW index efficiently retrieves relevant links are jointly considered during community detection.
information across levels, supporting fast and accurate re- Algorithm 1 shows the above iterative clustering process.
sponses to both abstract and specific questions. Given a graph augmentation method Aug, clustering algo-
rithm GCluster and stopping condition T , we perform the
Offline Indexing following steps in each iteration: (1) augmenting the graph
KG construction. ArchRAG builds a KG by prompting (line 3); (2) computing the edge weights (lines 4-5); (3) clus-
the LLM to extract entities and relations from each chunk tering the augmented graph (line 6); (4) generating a sum-
of the text corpus D. Specifically, all text contexts are seg- mary for each community using LLM (line 7); and (5) build-
mented into chunks based on specified chunk length, en- ing a new attributed graph where each node denotes an AC
abling the LLM to extract entities and relations from each and two nodes are linked if their community members are
chunk using in-context learning (2020), thus forming sub- connected (line 9). We repeat the iterations until the stop-
graphs. These subgraphs are then merged, with entities and ping condition T (such as insufficient nodes or reaching the
relations that appear repeatedly across multiple subgraphs specified level limit) is met. Since each iteration corresponds
being consolidated by the LLM to generate a complete de- to one layer, all the ACs HC can be organized into a multi-
scription. Finally, we get a KG, denoted by G(V, E), where layer hierarchical tree structure, denoted by ∆, where each
V and E are sets of vertices and edges, respectively, and community in one layer includes multiple communities in
each vertex and edge is associated with textual attributes. the next layer. Appendix also provides more details.
LLM-based hierarchical clustering. We propose an it- C-HNSW index. Given a query, to efficiently identify the
erative LLM-based hierarchical clustering framework that most relevant information from each layer of the hierarchical
supports arbitrary graph augmentation (e.g., KNN connec- tree ∆, a naive method is to build a vector database for the
tions and CODICIL (2013)) and graph clustering algorithms ACs in each layer, which is costly in both time and space.
(e.g., weighted Leiden (2019), weighted spectral clustering, To tackle this issue, we propose to build a single hierar-
Algorithm 1: LLM-based hierarchical clustering Intuitively, since the two types of links above are es-
tablished based on nearest neighbors, C-HNSW allows us
input : G(V, E), Aug, GCluster, T
1 T ← False, HC ← ∅; to quickly search the relevant information for a query by
2 repeat traversing along with these links. Note that C-HNSW is dif-
3 G′ (V, E ′ ) ← Aug(G(V, E)); ferent from HNSW since it has intra-layer links and each
4 for each e′ = (u, v) ∈ E ′ do node exists in only one layer.
5 update the weight of e′ as 1 − cos(zu , zv ); • The construction of C-HNSW. We propose a top-down
6 C ← GCluster(G′ (V, E ′ )); approach to build a C-HNSW. Specifically, by leveraging the
7 for each c ∈ C do generate summary of c by LLM ; query process of C-HNSW, which will be introduced in on-
8 HC ← HC ∪ C; line retrieval, nodes are progressively inserted into the in-
9 G(V, E) ← build a new graph using C and E ′ ; dex starting from the top layer, connecting intra-layer links
// update T according to G(V, E); within the same layer and updating the inter-layer links. For
10 until T =True; lack of space, we give the details of the construction algo-
11 return HC; rithm in the appendix.
Online retrieval
chical index for all the communities. Recall that the ACs In the online retrieval phase, after obtaining the query vector
in ∆ form a tree structure, and the number of nodes de- for a given question, ArchRAG generates the final answer by
creases as the layer level increases. Since this tree struc- first conducting a hierarchical search on the C-HNSW index
ture is similar to the HNSW (Hierarchical Navigable Small and then analyzing and filtering the retrieved information.
World) index which is the most well-known index for ef-
ficient ANN search (2018), we propose to map entities and Hierarchical search. We propose an efficient and fast re-
ACs of ∆ into high-dimensional nodes, and then build a uni- trieval algorithm, hierarchical search, to retrieve nodes from
fied Community-based HNSW (C-HNSW) index for them. each layer of the C-HNSW structure. Intuitively, retrieving
nodes from a given layer in C-HNSW requires starting from
• The structure of C-HNSW. Conceptually, the C-
the top layer and searching downward through two types
HNSW index is a list of simple graphs with links between
of links (i.e., intra-layer and inter-layer links) to locate the
them, denoted by H = (G, Linter ) with G = {G0 =
nearest neighbors at the given layer. In contrast, our hierar-
(V0 , E0 ), G1 = (V1 , E1 ), · · · , GL = (VL , EL )}, where Gi
chical search algorithm accelerates this process by reusing
is a simple graph and each node of the simple graph cor-
intermediate results, the nearest neighbors found in higher
responds to an attributed community or entity. The number
layers, as the starting node for lower layers. This approach
L of layers in H is the same as that of ∆. Specifically, for
avoids redundant computations that would otherwise arise
each attributed community or entity in the i-th layer of ∆,
from repeatedly searching from the top layer, thereby en-
we map it to a high-dimensional node in the i-th layer of H
abling efficient multi-layer retrieval.
by using a language model (e.g., nomic-embed-text (2024)).
Algorithm 2 illustrates hierarchical search. Given the C-
We next establish two types of links between these high-
HNSW H, query point q, and the number k of nearest neigh-
dimensional nodes, i.e., intra-layer and inter-layer links:
bors to retrieve at each layer, the hierarchical search algo-
• Intra-layer links: These links exist between nodes in the rithm can be implemented by the following iterative process:
same layers. Specifically, for each node in each layer, we
1. Start from a random node at the highest layer L, which
link it to at least M nearest neighbors within the same
serves as the starting node for layer L (line 1).
layer, where M is a predefined value, and the nearest
neighbors are determined according to a given distance 2. For each layer i from the top layer L down to layer 0,
metric d. Thus, all the intra-layer links are edges in all the algorithm begins at the starting node and performs a
SL
the simple graphs: Lintra = i=0 Ei . greedy traversal (i.e., the SearchLayer procedure) to
find the set Ri of the k nearest neighbors of q. The set Ri
• Inter-layer links: These links cross two adjacent lay- is then merged into the final result set R (lines 4–5).
ers. Specifically, we link each node in each layer to
its nearest neighbor in the next layer. As a result, all 3. The closest neighbor c of q is then obtained from Ri , and
the inter-layer links can be represented as Linter = the algorithm proceeds to the next layer by traversing the
SL inter-layer link of c, using it as the starting node for the
i=1 {(v, ψ(v))|v ∈ Vi , ψ(v) ∈ Vi−1 }, where ψ(·) : subsequent search (lines 6–7).
Vi → Vi−1 is the injective function that identifies the
nearest neighbor of each node in the lower layer. Specifically, the greedy traversal strategy compares the
distance between the query point and the visited nodes dur-
For example, in Figure 2, the C-HNSW index has three
ing the search process. It maintains a candidate expansion
layers (simple graphs), incorporating all the ACs. Within
queue Q and a dynamic nearest neighbor set K containing
each layer, each node is connected to its two nearest neigh-
k elements, along with a stopping condition:
bors via intra-layer links, denoted by undirected edges. The
inter-layer links are represented by arrows, e.g., the green • Expansion Queue Q: For each neighbor x of a visited
community at layer L1 is connected to the green entity (its node, if d(x, q) < d(f, q), where f is the furthest node
nearest neighbor at layer L0 ). from R to q, then x is added to the expansion queue.
Algorithm 2: Hierarchical search limit being truncated. This process can be represented as:
input : H = (G, Linter ), q, k. Ai = LLM (Pf ilter ||Ri ) (1)
1 s ← a random node in the highest layer L; Output = LLM (Pmerge ||Sort({A0 , A1 , · · · , An })) (2)
2 R ← ∅;
3 for i ← L, · · · , 0 do where Pf ilter and Pmerge represent the prompts for extract-
4 Ri ← SearchLayer (Gl = (Vl , El ), q, s, k); ing relevant information and summarizing, respectively, Ai ,
5 R ← R ∪ Ri ; i ∈ 0 · · · n denotes the filtered analysis report. The sort func-
6 c ← get the nearest node from Ri ; tion orders the content based on the relevance scores from
7 s ← find the node in layer i − 1 via the inter-layer the analysis report.
links of c;
8 return R; Experiments
9 Procedure SearchLayer(Gi = (Vi , Ei ), q, s, k):
10 V ← {s}, K ← {s}, Q ← initialize a queue In this section, we conduct a comprehensive evaluation of
containing s; our ArchRAG, focusing on both efficiency and performance.
11 while |K| > 0 do
12 c ← nearest node in Q; Setup
13 f ← furthest node in K;
14 if d(c, q) > d(f, q) then break ; Table 1: Datasets used in our experiments. Acc, Rec, Blue,
15 for each neighbor x ∈ N (c) in Gi do Met, and Rou denote Accuracy, Recall, BLEU-1, METEOR,
16 if x ∈ V then continue; and ROUGE-L F1.
17 V ← V ∪ {x};
18 f ← furthest node in K;
19 if d(x, q) < d(f, q) or |K| < k then Dataset Multihop-RAG HotpotQA NarrativeQA
20 Q ← Q ∪ {x}, K ← K ∪ {x}; Passages 609 9,221 1,572
21 if |K| > k then remove f from K; Tokens 1,426,396 1,284,956 121,152,448
22 return K; Nodes 23,353 37,436 650,571
Edges 30,716 30,758 679,426
Questions 2,556 1,000 43,304
Metrics Acc, Rec Acc, Rec Blue, Met, Rou
• Dynamic Nearest Neighbor Set K: Nodes added to C are
used to update K, ensuring that it maintains no more than
Datasets. We evaluate ArchRAG on both specific and
k elements, where k is the number of query results.
abstract QA tasks. For specific QA, we use Multihop-
• Stopping Condition: The traversal terminates if a node x RAG (2024), HotpotQA (2018), and NarrativeQA (2018),
expanded from Q satisfies d(n, q) > d(n, f ), where f is all of which are extensively utilized within the QA and
the furthest node in K from the query point q. Graph-based RAG research communities (2022; 2024;
2022; 2024; 2024; 2023). For abstract QA, we follow the
After completing the hierarchical search and obtaining the GraphRAG (2024) method and reuse the Multihop-RAG
ACs and entities from each layer, we further extract their corpus, prompting LLM to generate questions that convey
associated textual information. In particular, at the bottom a high-level understanding of dataset contents. The statistics
layer, we also extract the relationships between the retrieved of these datasets are reported in Table 1.
entities, resulting in the textual subgraph representation de-
Baselines. Our experiments consider three configurations:
noted as R0 . We denote all the retrieved textual information
from each layer as Ri , where i ∈ 0, 1, . . . , L, which will be • Inference-only: Using an LLM to answer questions with-
used in the adaptive filtering-based generation process. out retrieval, i.e., Zero-Shot and CoT (2022).
• Retrieval-only: Retrieval models extract relevant chunks
Adaptive filtering-based generation. While some opti- from all documents and use them as prompts for LLMs.
mized LLMs support longer text inputs, they may still en- We select strong and widely used retrieval models: BM25
counter issues such as the “lost in the middle” dilemma (Liu (1994) and Vanilla RAG.
et al. 2024b). Thus, direct utilization of retrieved informa- • Graph-based RAG: These methods leverage graph data
tion comprising multiple text segments for LLM-based an- during retrieval. We select RAPTOR (2024), HippoRAG
swer generation risks compromising output accuracy. (2024), GraphRAG (2024), and LightRAG (2024). Partic-
To mitigate this limitation, we propose an adaptive ularly, GraphRAG has two versions, i.e., GGraphRAG and
filtering-based method that harnesses the LLM’s inherent LGraphRAG, which use global and local search methods,
reasoning capabilities. We first prompt the LLM to extract respectively. Similarly, LightRAG integrates local search,
and generate an analysis report from the retrieved informa- global search, and hybrid search, denoted by LLightRAG,
tion, identifying the parts that are most relevant to answer- HLightRAG, and HyLightRAG, respectively.
ing the query and assigning relevance scores to these reports. In GGraphRAG, all communities below the selected level
Then, all analysis reports are integrated and sorted, ensuring are first retrieved, and then the LLM is used to filter out ir-
that the most relevant content is used to summarize the final relevant communities. This process can be viewed as uti-
response to the query, with any content exceeding the text lizing the LLM as a retriever to find relevant communities
VR LR C1 C2 AR VR LR C1 C2 AR VR LR C1 C2 AR VR LR C1 C2 AR
VR 50 46 18 18 1 VR 50 64 3 12 8 VR 50 39 15 21 8 VR 50 46 14 18 4
LR 54 50 21 29 16 LR 36 50 52 63 33 LR 61 50 59 30 35 LR 54 50 48 31 22
C1 82 79 50 86 18 C1 97 48 50 52 46 C1 85 41 50 60 42 C1 86 52 50 70 31
C2 82 71 14 50 16 C2 88 37 48 50 42 C2 79 70 40 50 38 C2 82 69 30 50 30
AR 99 84 82 84 50 AR 92 67 54 58 50 AR 92 65 58 62 50 AR 96 78 69 70 50
(a) Comprehensiveness (b) Diversity (c) Empowerment (d) Overall
Figure 3: Head-to-head win rates for abstract QA, comparing each row method against each column (higher is better). VR, LR,
and AR denote Vanilla RAG, HyLightRAG, and ArchRAG, respectively.
within the corpus. According to the selected level of commu- stantial performance advantage over other baseline meth-
nities (2024), GGraphRAG can be further categorized into ods on these datasets. The experimental results suggest that
C1 and C2, representing high-level and intermediate-level not all communities are suitable for specific QA tasks, as
communities, respectively, with C2 as the default. the GGraphRAG performs poorly. Furthermore, GraphRAG
does not consider node attributes during clustering, which
Metrics & Implementation. For the specific QA tasks, causes the community’s summary to become dispersed,
we use Accuracy and Recall to evaluate performance on making it difficult for the LLM to extract relevant informa-
the first two datasets based on whether gold answers are in- tion from a large number of communities. Thus, we gain an
cluded in the generations instead of strictly requiring exact interesting insight: LLM may not be a good retriever, but is a
matching, following (2024; 2022; 2023). We also use the good analyzer. We further analyze the reasons behind the un-
official metrics of BLEU, METEOR, and ROUGE-l F1 in derperformance of each graph-based RAG method and sup-
the NarrativeQA dataset. For the abstract QA task, we fol- port our claims with empirical evidence in the appendix.
low prior work (2024) and adopt a head-to-head compari-
son approach using an LLM evaluator (GPT-4o). Overall,
we utilize four evaluation dimensions: Comprehensiveness,
Zero-Shot CoT BM25 Vanilla RAG
Diversity, Empowerment, and Overall. For implementation,
RAPTOR HippoRAG LLightRAG HLightRAG
we mainly use Llama 3.1-8B (2024) as the default LLM and
use nomic-embed-text (2024) as the text embedding model. HyLightRAG LGraphRAG GGraphRAG ArchRAG
We use KNN for graph augmentation and the weighted Lei-
105
time (s)
N/A
k = 5 as the default. All methods are required to complete 103
index construction and query execution within 3 days, re- 102 Multihop-RAG HotpotQA
spectively. Additional details are provided in the appendix, (a) Time cost
and our codes are provided in the supplementary material.
1032
token (M)
101
Overall results 100
N/A
10
We compare our method with baseline methods in solving
Multihop-RAG HotpotQA
both abstract and specific QA tasks.
• Results of abstract QA tasks. We compare ArchRAG (b) Token cost
against baselines across four dimensions on the Multihop-
RAG dataset. For the LightRAG, we only compare the Hy- Figure 4: Comparison of query efficiency.
LightRAG method, as it represents the best version (2024).
As shown in Figure 3, GGraphRAG outperforms other base-
line methods, while our method achieves comparable perfor- • Efficiency of ArchRAG. We compare the time cost and
mance on the diversity and empowerment dimensions and token usage of ArchRAG with those of other baseline meth-
significantly surpasses it on the comprehensive dimension. ods. As shown in Figure 4, ArchRAG demonstrates signifi-
Overall, by leveraging ACs, ArchRAG demonstrates supe- cant time and cost efficiency for online queries. For example,
rior performance in addressing abstract QA tasks. token usage on the HotpotQA dataset is cut by 250× with
• Results of specific QA tasks. Table 2 reports the ArchRAG compared to GraphRAG-Global, from 1,394M
performance of each method on three datasets. Note that tokens down to 5.1M tokens.
GGraphRAG fails to complete querying on the NarrativeQA To further evaluate ArchRAG, we test the efficiency of
dataset within the 3-day time limit. RAPTOR is unable hierarchical search, indexing performance, and effective-
to build the index on datasets like HotpotQA, which con- ness on an additional dataset, RAG-QA Arena (2024). Re-
tains a large number of text chunks. Its Gaussian Mix- sults show that ArchRAG achieves up to 5.4× faster retrieval
ture Model (GMM) clustering algorithm requires prohibitive than basic HNSW, maintains efficient indexing, and achieves
computational time and suffers from non-termination issues state-of-the-art performance on the RAG-QA Arena dataset.
during clustering. Clearly, ArchRAG demonstrates a sub- Additional details are provided in the appendix.
Table 2: Performance comparison of different methods across various datasets for solving specific QA tasks. The best and
second-best results are marked in bold and underlined. OOT: Not finished within 3 days.
time (s)
10
We implement our ArchRAG in Python, while C-HNSW
5
is implemented in C++ and provides a Python interface
for integration. We implement C-HNSW using the FAISS 0
0 1 2 3 4 5 6 7 8 9 10 Avg.
framework and employ the inner product metric to mea- Level
sure the proximity between two vectors. All the experi-
ments were conducted on a Linux operating system run- Figure 5: C-HNSW and Base-HNSW query efficiency.
ning on a machine with an Intel Xeon 2.0 GHz CPU,
1024GB of memory, and 8 NVIDIA GeForce RTX A5000 We also conducted experiments on a synthetic dataset of
GPUs, each with 24 GB of memory. All methods uti- 1024-dimensional vectors, keeping all other parameters un-
lize 10 concurrent LLM calls, and to maintain consis- changed. The results are shown in Figure 6. As 1024 di-
tency, other parallel computations in the method, such as mensions are more representative of commonly used high-
embedding calculations, also use 10 concurrent threads. dimensional embeddings, our method still achieves over 5×
Figure 15 demonstrates the prompt used in Adaptive speedup in the best case and an average speedup of 3× com-
filtering-based generation. Please refer to our repository pared to the baseline.
([Link] to
view the detailed prompts. Base-HNSW C-HNSW
• Details of clustering methods. The graph augmen-
tation methods we choose are the KNN algorithm, which 15
time (s)
10
each layer, we generate 200 random queries and compute
the top-5 nearest neighbors for each query. Both C-HNSW 103Multihop-RAGHotpotQA 1Multihop-RAGHotpotQA
and Base-HNSW are configured with identical parameters: (a) Time cost (b) Token cost
M = 32, ef Search = 100, and ef Construction = 100.
Importantly, our method maintains comparable retrieval ac-
curacy to Base-HNSW, with recall of 0.5537 and 0.6058, Figure 7: Comparison of indexing efficiency.
respectively.
Table 5: Comparing ArchRAG with other RAG methods on the specific QA tasks under different LLM backbone models.
Multihop-RAG HotpotQA
LLM backbone Methods
(Accuracy) (Recall) (Accuracy) (Recall)
Vanilla RAG 58.6 31.4 50.6 56.1
HippoRAG 38.9 19.1 51.3 56.8
Llama3.1-8B
RAPTOR 59.1 34.1 N/A N/A
ArchRAG 68.8 37.2 65.4 69.2
Vanilla RAG 65.9 32.8 60.7 65.9
HippoRAG 68.9 31.4 58.0 62.3
GPT-3.5-turbo
RAPTOR 64.4 34.6 N/A N/A
ArchRAG 67.2 31.5 62.8 65.0
Vanilla RAG 71.4 32.8 68.2 70.1
HippoRAG 70.5 31.6 65.0 68.5
GPT-4o-mini
RAPTOR 70.1 32.6 N/A N/A
ArchRAG 77.3 33.8 69.9 73.8
CHI
CHI
budget, we restrict our evaluation to GPT-4o-mini and GPT-
2 2
3.5-turbo as the LLM backbones, and compare a representa-
tive subset of strong RAG methods on the HotpotQA and 0 Leiden Spectral SCAN Node2Vec
0 Leiden Spectral SCAN Node2Vec
Multihop-RAG datasets. As strong LLMs with hundreds (a) Multihop-RAG (b) HotpotQA
of billions of parameters (e.g., GPT-3.5-turbo) possess en-
hanced capabilities, our proposed ArchRAG may also ben- Figure 8: Community quality evaluated by CH Index.
efit from performance improvement. As shown in Table 5,
the results of Llama 3.1-8B are similar to those of GPT-3.5-
turbo, as Llama3.1’s capabilities are comparable to those of KNN CODICIL
GPT-3.5-turbo (Dubey et al. 2024). GPT-4o-mini performs
better than other LLM backbones because of its exceptional 1 1
0.8
Sim
Sim
reasoning capabilities. 0.8
Besides, we have compared several strong RAG baselines 0.6
under different LLM backbones. As LLMs’ parameters and 0.4 Leiden Spectral SCAN Node2Vec
0.6 Leiden Spectral SCAN Node2Vec
reasoning capabilities increase, all RAG approaches benefit
(a) Multihop-RAG (b) HotpotQA
from performance gains, especially HippoRAG. ArchRAG
consistently achieves state-of-the-art performance across
most settings. Figure 9: Community quality evaluated by Cosine Similar-
• Community quality of different clustering meth- ity.
ods. We evaluate the community quality of our proposed
LLM-based hierarchical clustering framework using four
clustering algorithms (weighted Leiden, Spectral Cluster- clustering algorithm, we evaluate the quality of communities
ing (Von Luxburg 2007), SCAN (Xu et al. 2007), and (i.e., CHI and Cosine Similarity) generated by our attributed
node2vec (Grover and Leskovec 2016) with KMeans), com- clustering algorithm compared to those produced by the Lei-
bined with two graph augmentation techniques (the KNN den algorithm, which is used in GraphRAG for structural
algorithm and CODICIL (Ruan, Fuhry, and Parthasarathy clustering. As shown in Table 7, our attribute-based cluster-
2013)). The resulting communities are assessed using the ing consistently yields higher-quality communities.
Calinski-Harabasz Index (CHI) (Caliński and Harabasz • More experiments on the additional dataset. We
1974) and Cosine Similarity (Sim) (Charikar 2002), where further conduct experiments on the RAG-QA Arena
higher values indicate better quality. Further details on the dataset (Han et al. 2024), a high-quality, multi-domain
clustering implementation and evaluation metrics can be benchmark featuring human-annotated, coherent long-form
found in the appendix. Figures 8 and 9 show that combin- answers. To the best of our capability, we use publicly avail-
ing KNN or CODICIL with the weighted Leiden algorithm able data from five domains (including lifestyle, recreation,
significantly enhances community detection quality. science, technology, and writing), selecting 200 questions
• Effectiveness of our attributed clustering algorithm. per domain. Following prior work, we employ LLMs as
To further demonstrate the effectiveness of our attributed evaluators to compare the RAG-generated responses with
Table 6: Comparing ArchRAG with other RAG methods on the RAG-QA Area dataset. Each entry denotes the win ratio and
win + tie ratio of the corresponding method against the ground-truth annotations, based on LLM evaluation.
Table 7: Comparison of Community Quality between Our Table 8: Distribution of HippoRAG’s ER Errors
Attributed Clustering Method and Leiden
Low-Quality
Datasets Null Entity Rate
Multihop-RAG HotpotQA Entity Rate
Method
(CHI) (Sim) (CHI) (Sim) Multihop-RAG 1.3% 11.9%
Leiden 3.02 0.71 3.42 0.71 HotpotQA 5.0% 15.8%
Ours 4.68 0.89 4.82 0.88
Metrics
Question: Who is the individual associated with generative AI technology that was reportedly ousted from a leading AI
organization, but is recognized for brilliance and generosity in the industry, and is currently planning to launch a new
venture according to reports from TechCrunch and Fortune?
Ground-truth: Sam Altman
Zero-shot
Jesse Schell.
He is the CTO of Calm and was the lead designer on the “Star Wars” theme park ride at Disney.
Vanilla RAG
It seems like there are multiple articles and topics discussed in this text. Here’s a brief summary of each section:
[Link] predictions. The article discusses the future of robotics, with predictions made by Brian Heater. · · ·
[Link]’s Week in Review. This section summarizes various tech industry happenings. · · ·
[Link] gets a new CEO. Bumble announces a change in leadership. · · ·
HippoRAG
There is no question in the provided text. It appears to be a collection of news articles and updates related to OpenAI’s
ChatGPT. · · ·
GraphRAG-Global
Key Points and Implications
The individual associated with generative AI technology who was reportedly ousted is Andrew Ng. · · ·
According to multiple analysts, Andrew Ng [Data: Reports (5, 6)] · · ·
Implications of the New Venture · · ·
ArchRAG
Sam Altman.
This information is supported by multiple analysts’ reports, which highlight Sam Altman’s involvement in various AI-
related projects. The direct answer is simply “Sam Altman”. · · ·
Note: I have not included any information from Analyst 2, 3, or 7 as their reports are not relevant. · · ·
Figure 11: Case study of responses by different RAG methods on a question from the Multihop-RAG dataset. RED TEXT
indicates incorrect content, CYAN TEXT denotes correct content, and · · · marks omitted irrelevant parts.
Figure 12: ArchRAG Retrieval & Filtering Output. ... marks omitted irrelevant parts.
Prompt for generating abstract questions
Prompt:
Given the following description of a dataset:
{description}
Please identify 5 potential users who would engage with this dataset. For each user, list 5 tasks they would
perform with this dataset. Then, for each (user, task) combination, generate 5 questions that require a high-level
understanding of the entire dataset.
Output the results in the following structure:
- User 1: [user description]
- Task 1: [task description]
- Question 1:
- Question 2:
- Question 3:
- Question 4:
- Question 5:
- Task 2: [task description]
...
- Task 5: [task description]
- User 2: [user description]
...
- User 5: [user description]
...
Note that there are 5 users and 5 tasks for each user, resulting in 25 tasks in total. Each task should have 5
questions, resulting in 125 questions in total. The Output should present the whole tasks and questions for each
user.
Output:
Merge Prompt:
# Role
You are a helpful assistant responding to questions and may use the provided data as a reference.
# Goal
You should incorporate insights from all the reports from multiple analysts who focused on different parts of
the dataset to support your answer. Please note that the provided information may contain inaccuracies or be
unrelated. If the provided information does not address the question, please respond using what you know:
• A response that utilizes the provided information, ensuring that all irrelevant details from the analysts’
reports are removed.
• A response to the user’s query based on your existing knowledge when ¡Analyst Reports¿ is empty.
The final response should merge the relevant information into a comprehensive answer that clearly explains
all key points and implications, tailored to the appropriate response length and format. Note that the analysts’
reports provided below are ranked in the descending order of importance. Do not include information where
the supporting evidence for it is not provided.
# Target response length and format
{response_format}
# User Question
{user_query}
# Analyst Reports
{report_data}
Output: