Year: 2026
Type: dissertation
Abstract: Retrieval-augmented generation (RAG) combines large language models with external knowledge retrieval, providing a practical approach for enterprise question-answering applications. However, a RAG pipeline involves multiple components, including retrieval strategies, embedding models, reranking, and query rewriting, and the impact of each component on overall system performance in regulated domains such as insurance and banking still lacks systematic quantitative investigation. This thesis designs and implements an evaluation framework for RAG pipelines, using English-language product documentation from an insurance company as the application scenario. The framework integrates both LLM-based automated evaluation (LLM-as-a-judge) and human evaluation. A test set of 66 questions was constructed, covering four retrieval-difficulty categories: keyword matching, paraphrase, crossdocument reasoning, and negative queries, and six RAG configurations were compared through ablation against a pure BM25 baseline, varying hybrid search, a larger embedding model, reranking, metadata filtering, and query rewriting. The results show that hybrid search yields a consistent improvement over pure BM25 in both retrieval recall and answer correctness. However, no single best configuration exists among the hybrid variants: reranking improves retrieval ranking quality but does not improve answer correctness; a larger embedding model raises answer quality without increasing recall; and query rewriting benefits paraphrase-type questions but hurts keyword-type questions. A cross-document confusion analysis further reveals that when retrieved results contain chunks from incorrect documents, the answer error rate rises to 47% compared to 0% for clean retrievals, indicating that retrieval precision is a critical bottleneck for generation quality. The main contribution of this thesis is a reusable RAG evaluation framework that reveals the practical effects and interactions of individual pipeline components, and highlights several key risks relevant to real-world deployment.
Source: Aaltodoc (Aalto University)
Author: He, Yingjia
Institution: Aalto University
Language: English
Subfield: Information Systems
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7225846191
