A retrieval-augmented generation (RAG) question-answering assistant built to help chocolate factory operators showed no configuration that beat the baseline on every evaluation metric, according to an exploratory study published in Frontiers in Artificial Intelligence. The researchers tested three modifications to the system—one changing how documents were split into chunks, one changing the vector index used for retrieval, and one changing the prompt that constrained the model’s answers—and found that all twelve statistical comparisons between modified configurations and the baseline produced confidence intervals that included zero.
The study, led by Alex V. S. Araújo of the State University of Santa Cruz in Brazil with colleagues at Senai Cimatec and the University of Alicante, addressed a gap in how industrial RAG systems are evaluated. The authors noted that existing industrial RAG studies tend to assess overall pipeline performance without isolating how individual component changes propagate across distinct evaluation dimensions. Their work used a controlled One-Factor-at-a-Time design, changing one component at a time while holding the rest of the system constant.
The knowledge source was deliberately narrow: a single 80-page PDF in Portuguese, compiled from five academic documents describing chocolate-processing stages and parameters reported in the literature. The document collection was frozen before the experiments to prevent changes during testing. From this corpus, the team constructed 30 operational questions, evenly divided among three categories—process parameters and control, operational procedures and guidance, and problems and diagnosis—with ten questions in each. The questions were drafted with the help of a large language model and then reviewed and validated by the first author, who linked each question to a reference answer and a supporting passage from the corpus.
Four configurations were compared. The baseline, ART-00, used chunks of 1,200 characters with a 200-character overlap, an exact FAISS FlatL2 index, and a reference prompt. ART-01 reduced the chunk size to 800 characters and the overlap to 150 characters. ART-02 replaced the FlatL2 index with a Hierarchical Navigable Small World (HNSW) approximate graph index, keeping everything else at baseline settings. ART-03 kept the baseline retrieval setup but used a more restrictive prompt requiring the model to ground its responses exclusively in the retrieved context and to abstain when that context was insufficient, irrelevant, or conflicting. Each configuration was run three times, generating 360 responses in total, which were evaluated with four RAGAS metrics—faithfulness, answer relevancy, context precision, and context recall—yielding 1,440 question-metric observations with no missing values.
The evaluation used a separate language model as an automated judge, with temperature set to zero, and embeddings generated by a model independent of the one used inside the RAG system. Comparisons between each modified configuration and the baseline used question-level averages across the three replicates, with uncertainty quantified by paired-bootstrap 95% confidence intervals based on 10,000 resamples. The authors emphasized that these intervals were individual and exploratory, without adjustment for the twelve comparisons made.
The largest mean difference appeared in the chunking comparison. The smaller-chunk configuration, ART-01, showed a mean context precision 0.0642 lower than the baseline, with a 95% confidence interval spanning from −0.1615 to +0.0331. It also showed a mean answer relevancy 0.0245 higher and a mean context recall 0.0111 higher, but a mean faithfulness 0.0221 lower. None of these differences was statistically detectable. The authors cautioned that the design does not allow them to determine whether differences in the specificity, fragmentation, or relevance of retrieved passages contributed to the pattern, because chunk size, relative overlap, and the volume of context delivered to the model all varied jointly. With the number of retrieved passages fixed at five, the smaller chunks delivered roughly 3,693 characters of context per question on average, compared with about 5,385 for the baseline—a reduction of 31.41%.
The indexing comparison produced remarkably stable retrieval. For 29 of the 30 questions, ART-02 and the baseline returned the same five contexts in the same order in every replicate; the only exception was question Q007. The mean Jaccard index between the retrieved context sets was 0.9889 in each replicate, indicating substantial overlap. ART-02 showed a mean answer relevancy 0.0297 above the baseline and small negative differences in faithfulness, context precision, and context recall, but all confidence intervals included zero. For the 29 questions with identical retrieval, any differences in the generated responses could not be explained by changes in the content retrieved by HNSW. The authors also noted that the study included no controlled evaluation of computational efficiency, memory use, latency, or scalability, so the results do not support conclusions about computational superiority of HNSW over FlatL2.
The prompt modification, ART-03, showed the highest mean faithfulness of any configuration, 0.8362, alongside the lowest mean answer relevancy, 0.7739. The mean difference in faithfulness relative to the baseline was +0.0252, with a confidence interval from −0.0394 to +0.0882, while the difference in answer relevancy was −0.0348, with an interval from −0.1134 to +0.0298. However, an audit of the results identified retrieval differences in two of the three ART-03 replicates—changes in context order for three questions and a change in the set of contexts for Q007—whose immediate numerical cause the preserved records could not identify. Because of this, the observed metric differences did not allow the prompt effect to be estimated in isolation.
One of the study’s most instructive findings came from examining individual responses rather than aggregate scores. In several cases, the restrictive prompt caused the model to refuse to answer even when the retrieved context contained supporting evidence. For question Q022, the retrieved context directly supported the requested guidance on filling the molds, making the refusals apparently unjustified—yet the refusal still received a nonzero faithfulness score. For question Q005, the contexts supported part of the requested procedure but not all of it, and in one replicate the model answered the supported portion while abstaining on the rest. The authors found that zero answer relevancy scores did not distinguish apparently justified caution from apparently unjustified refusal across the eight identified cases. Favorable metric scores, they concluded, could coexist with inadequate answers.
The study also documented variability that complicates interpretation. Although the baseline retrieved identical contexts in the same order across all three replicates for all 30 questions, no question produced textually identical responses across all three runs. Faithfulness had the highest within-question variability of any metric in every configuration. Context recall showed a median of 1.0000 in all configurations and reached the ceiling of the scale in 27 or 28 of the 30 question-level means per configuration, a ceiling effect the authors said limits the benchmark’s ability to discriminate between configurations. Several comparisons showed a median delta of zero despite positive or negative mean deltas, indicating that changes were concentrated in a subset of questions rather than spread across the dataset.
The authors were explicit about the limits of their conclusions. The evaluation used 30 questions, three replicates, a single technical corpus, a single generation model, and a single evaluation model, so generalization to other corpora and user profiles is limited. The OFAT design did not assess interactions between components. Despite setting the generation temperature to zero, variability persisted in both generated responses and evaluation scores, and the design could not separate the contributions of the generator and the evaluator to this variability. The questions were validated by the first author but the system was not tested by industrial specialists or operators, and the study measured no learning outcomes, operator performance, or operational safety.
Within these constraints, the authors argued that the findings illustrate the value of assessing retrieval and generation metrics separately and interpreting them alongside response behavior and the evidence actually retrieved. Mean scores alone, they showed, can obscure both question-level heterogeneity and qualitative failures such as unjustified refusals. The results do not establish training effectiveness or validated operational usefulness for the assistant, and the authors stated that broader evaluation with independent assessment by specialists and operators is required before any conclusions about industrial deployment can be drawn. Future work, they wrote, should expand the benchmark, control the interventions more closely, and incorporate expert, operator, and task-level evaluation.
The generation model was qwen/qwen3.7-flash, run at temperature zero to reduce response variability, with embeddings from qwen3-embedding:4b. The baseline and ART-02 indexes each held 251 vectors of 2,560 dimensions, and retrieval kept the top five passages. The HNSW index used M = 16, efConstruction = 40 and efSearch = 16 with L2 distance. Scoring was performed by RAGAS 0.4.3 using a separate evaluator model accessed through OpenRouter, also at temperature zero, with evaluation embeddings from the bge-m3 model, independent of the system’s own embeddings.
The four metrics captured distinct dimensions: faithfulness measured the consistency of the response with retrieved context, answer relevancy the directness of the response to the question, context precision the relevance and ranking of retrieved passages against the reference answer, and context recall how far the retrieved context supported the reference answer.
Replicate-level variability was substantial. Faithfulness showed the highest mean within-question standard deviation in every configuration, ranging from 0.1093 to 0.1377, and run-level mean faithfulness ranged from 0.7437 to 0.8255 in ART-01 and from 0.7895 to 0.8706 in ART-03. Baseline contrasts between replicates showed mean absolute faithfulness differences of 0.0978 to 0.1615 across questions, indicating that scores varied between runs even without any configuration change.
Subject of Research: Evaluation of retrieval-augmented generation configurations for an industrial operator question-answering assistant in chocolate manufacturing
Article Title: Exploratory evaluation of RAG configurations for a question-answering assistant in chocolate manufacturing
Article References: Araújo, A. V. S., Murari, T. B., Abreu Salas, J., & Ambrósio, P. E. (2026). Exploratory evaluation of RAG configurations for a question-answering assistant in chocolate manufacturing. Frontiers in Artificial Intelligence, 9, Article 1984659. https://doi.org/10.3389/frai.2026.1984659
Image Credits: AI Generated
DOI: 10.3389/frai.2026.1984659
Keywords: retrieval-augmented generation, RAG, generative artificial intelligence, large language models, chocolate manufacturing, industrial operator training, RAGAS evaluation, faithfulness, answer relevancy, context precision, context recall, document chunking, vector indexing, HNSW, FAISS, prompt engineering, question answering, Frontiers in Artificial Intelligence
News Source: Denise Maddox. (December 6, 2026). No RAG tweak wins across the board in chocolate factory assistant test. Scienmag.



