Back to search

University of Alberta

Understanding RAG Systems Performance by Profiling Key Factors

Abstract

dc:description.abstract

The launch of ChatGPT in 2022 brought Large Language Models (LLMs) into the spotlight, establishing them as powerful tools across various fields. To further augment and enhance the performance of LLM in knowledge-instense tasks, RetrievalAugmented Generation (RAG) has emerged as a key technique, significantly enhancing LLM performance across diverse applications. While RAG systems powered by LLMs achieve remarkable results, they face persistent challenges in stability and reliability due to their intricate design. Developing a RAG system involves numerous design decisions, such as retriever selection, query optimization, retrieved material curation, and prompt configurations, creating a vast design space that is impractical to explore exhaustively. These complexities pose substantial challenges for developers in constructing, maintaining, and optimizing effective RAG systems. In this work, we introduce a novel system factor analysis framework for understanding RAG system behavior. Rather than evaluating every design decision combination, we abstract them into observable system factors that provide a structured and interpretable lens for analysis. Through extensive experiments on three code datasets, three QA datasets, and two LLMs, we examine three critical factors: retrieval recall, document type, and prompt techniques. Furthermore, we explore the possibility of utilizing perplexity as a proxy metric for monitoring system factors in RAG systems, providing a real-time and low-cost way to interpret RAG system behavior and identify optimization directions. Our study provide a new framework to understand RAG system behavior. By analyzing how these system factors influence RAG systems, we provide key insights into their characteristic and derive multiple implications for building more reliable and effective designs. Our exploration of perplexity points to a promising approach for monitoring RAG systems in certain contexts. We hope this foundational work inspires further advancements in developing and sustaining intelligent, LLM-driven systems with greater efficiency and reliability.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Master's
Discipline thesis:degree_discipline
Software Engineering and Intelligent Systems
Grantor
University of Alberta
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Zhao, Shengming
Advisor dc:contributor.advisor
  • Ma, Lei (Electrical and Computer Engineering)

Subjects

dc:subject × 5

Rights

dc:rights
Statement dc:rights
  • This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/83399

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Zhao, Shengming. Understanding RAG Systems Performance by Profiling Key Factors. Master's thesis, University of Alberta, 2025. https://doi.org/10.7939/83399