Evidence Hub

RagForge: Evaluating Retrieval-Augmented Generation for Long-Document Literary Question Answering

Jonathan Lindahl

Zenodo (CERN European Organization for Nuclear Research), 2026

Abstract

RagForge is a retrieval-augmented generation (RAG) system built over the complete text of J.R.R. Tolkien's The Lord of the Rings trilogy to evaluate how RAG design choices affect grounded question answering on long narrative text. The system evaluates chunk size, retrieval depth, hybrid dense-BM25 weighting, generation parameters, query expansion, calibrated abstention, and generator model choice using a curated dataset of 1,000 factoid and multi-hop questions. Retrieval performance is evaluated using Hit@K, MRR, and nDCG, while generation quality is assessed using both keyword accuracy and LLM-as-a-judge scoring. The principal finding is that, once a strong retrieval baseline was established, generator capability represented a larger performance bottleneck than additional retrieval tuning. On identical retrieval with an 89.6% hit rate, Claude Opus 4.6 achieved 87.6% judge accuracy compared with 74.5% for Amazon Nova Pro, a 13.1 percentage-point difference. The study also finds that keyword-based evaluation can overstate RAG answer quality and that query expansion and score-based abstention did not improve performance on this domain-specific corpus.

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