Evaluating Long-Context Question & Answer Systems

Eugene Yan22 Jun 2025

Problem

Teams building Q&A over long documents (contracts, technical documentation, novels, several reports) cannot judge answers by factual accuracy alone. Evidence is buried in irrelevant text, may sit anywhere, may need several distant passages, and hallucinations grow with context length. Word-overlap metrics such as ROUGE reward the wrong answers, and hand-written questions do not scale to book-length texts.

Example from the article: asked "What happens if the tenant misses a payment?", the reply "Clause 4.2 of the lease agreement addresses missed payments" is faithful but does not say what happens.

Solution in brief

Score every answer on two independent axes: faithfulness (stays inside the document, says "I don't know" when the answer is absent) and helpfulness (relevant, complete, concise). Draft questions with an LLM and let annotators accept or edit them, cover five question types and all evidence positions, then calibrate an LLM-evaluator against human labels before using it at scale.

Questions this case answers
  • How to measure the quality of generated answers to free-form questions when no single reference answer exists and word-overlap metrics disagree with human judgment
  • How to build a labeled evaluation set for long, evidence-scattered documents when manual question writing does not scale
  • How to evaluate a question-answering system over long documents for faithfulness and helpfulness?
  • How to build an evaluation dataset for long-context Q&A when human annotators cannot write every question?

Tools and methods

  • Claim-level faithfulness check — split an answer into claims, verify each, score the supported share
  • No-info questions — unanswerable questions that expose hallucination and incorrect refusal
  • Pairwise helpfulness comparison — pick the more helpful of two faithful answers
  • LLM-evaluator (LLM-as-Judge) — grades answers using the annotation guidelines as rubric
  • Cohen's Kappa — agreement between annotators, and between evaluator and humans
  • Public benchmarks — NarrativeQA, NovelQA, QASPER, L-Eval, HELMET, Loong as design references
Continue reading — it's free

Google or a one-time email code. No password.