{"id":{"repo_id":"alberta","oai_identifier":"oai:ualberta.scholaris.ca:123456789/104691"},"canonical_url":"https://search.ndltd.org/etd/alberta/oai:ualberta.scholaris.ca:123456789/104691","repository":{"repo_id":"alberta","name":"University of Alberta","base_url":"https://era.library.ualberta.ca/oai"},"display":{"title":"Understanding RAG Systems Performance by Profiling Key Factors","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.","abstract_html":"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.","abstract_has_math":false,"creators":["Zhao, Shengming"],"institution":"University of Alberta","degree_name":"Master of Science","degree_level":"Master's","degree_discipline":"Software Engineering and Intelligent Systems","degree_department":null,"school":null,"contributors":[],"advisors":["Ma, Lei (Electrical and Computer Engineering)"],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025-11","date_published":"2025-11","updated_at":"2026-11-26T21:03:16Z","subjects":["Large Language Models","Retrieval Augmented Generation","System Diagnostics","System Understanding","Best Practices"],"languages":["en"],"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."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.7939/83399","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.7939/83399","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aalberta%3Aoai%3Aualberta.scholaris.ca%3A123456789%2F104691","prefix":"oai_dc"},"source_record":{"url":"https://era.library.ualberta.ca/oai?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aualberta.scholaris.ca%3A123456789%2F104691","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Ma, Lei (Electrical and Computer Engineering)"]},{"key":"dc:creator","label":"Author","values":["Zhao, Shengming"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-11-17T16:27:35Z"]},{"key":"dc:date.issued","label":"Date","values":["2025-11"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Software Engineering and Intelligent Systems"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master's"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Alberta"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Large Language Models","Retrieval Augmented Generation","System Diagnostics","System Understanding","Best Practices"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["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."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.7939/83399"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["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."]},{"key":"dc:title","label":"Title","values":["Understanding RAG Systems Performance by Profiling Key Factors"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Ma, Lei (Electrical and Computer Engineering)"],"dc:creator":["Zhao, Shengming"],"dc:date.accessioned":["2025-11-17T16:27:35Z"],"dc:date.issued":["2025-11"],"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."],"dc:identifier.doi":["https://doi.org/10.7939/83399"],"dc:language.iso":["en"],"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."],"dc:subject":["Large Language Models","Retrieval Augmented Generation","System Diagnostics","System Understanding","Best Practices"],"dc:title":["Understanding RAG Systems Performance by Profiling Key Factors"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_discipline":["Software Engineering and Intelligent Systems"],"thesis:degree_level":["Master's"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["University of Alberta"]},"updated_at":"2026-11-26T21:03:16Z"}