Abstract
Retrieval-Augmented Generation (RAG) is a standard approach to improve Large Language Models (LLMs) by providing relevant information at query time. However, base
line RAG architectures frequently suffer from incompleteness, especially when necessary
information is distributed across multiple documents. This thesis investigates whether
integrating Knowledge Graphs (KGs) into the RAG pipeline can overcome these lim
itations, and systematically evaluates which KG-based retrieval techniques are most
effective.
To assess this, an evaluation pipeline was developed to ingest diverse data formats
(company website texts, synthetic medical records, and the SQuAD v2 benchmark
dataset) and transform them into domain-specific knowledge graphs. The study com
pares four retrieval strategies: baseline embedding-based RAG, graph-based semantic
parsing (Text2Cypher), heuristic hybrid retrieval (G-Retriever), and graph summariza
tion (RAPTOR). Performance was quantified using the RAGAS framework, measuring
answer correctness, answer relevancy, faithfulness, context recall, and end-to-end la
tency.
Experimental results demonstrate that the RAPTOR and RAPTOR flat retrieval strate
gies regularly outperform all other evaluated methods across all metrics, particularly in
answer correctness and context recall. By treating all nodes in a summarization tree as
basic retrieval units, it effectively bridges semantic similarity and structural topology.
In contrast, Text2Cypher severely underperformed, showing significantly lower perfor
mance across all metrics due to the difficulty of generating flexible queries. Furthermore,
while G-Retriever successfully captured graph topology, it introduced a severe latency
bottleneck with a median latency of 75.31 seconds, rendering it computationally expen
sive.
Ultimately, this research concludes that transforming document corpora into summa
rized, hierarchical knowledge networks proves to be a highly resilient strategy, suc
cessfully using knowledge graphs to improve the performance of a question answering
system.
| Date of Award | 2026 |
|---|---|
| Original language | English (American) |
| Awarding Institution |
|
| Supervisor | Stephan Dreiseitl (Supervisor) |
Studyprogram
- Data Science and Engineering
Cite this
- Standard