Evidence Hub

Hyperparameter Analysis in Retrieval-Augmented Generation Systems Applied to the Public Prosecutor’s Office of the State of Espírito Santo Corpus

Quartezani H, Berger P, Sarnaglia A, Guimarães M, Comarela G, Rocha L, Dias D

2026

Abstract

Abstract This research paper proposes a methodology based on Design of Experiments to analyze and opti-mize hyperparameters of a Retrieval-Augmented Generation system applied to the normative corpusof the Public Prosecutor’s Office of the State of Espírito Santo. The central objective is to identifywhich critical factors—such as document segmentation strategy (chunking), retrieved context volume(k), and Large Language Model choice—significantly impact generated response quality. Evaluationemploys the LLM-as-a-Judge paradigm supported by the Retrieval Augmented Generation Assess-ment framework. Due to the non-parametric nature of the data, statistical analysis is conducted viaAligned Rank Transform. Results reveal that hyperparameters significantly impact response quality.

Read the paper

Related studies

Go deeper in Evidence Hub

Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.

Open this study Sign up free