NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Senior2 views

How would you create a chunking-agnostic eval benchmark (a benchmark that does not depend on how the text is split into chunks)?

Practice

Asked at

AI answer

Evaluation should be based on the original documents and the context budget, not on specific chunk IDs. For each test question, store the source document and the annotated source passages as character/token ranges or semantic facts. During evaluation, map the retrieved chunks back to ranges in the original text, merge overlaps, and measure coverage of relevant ranges, evidence precision, and completeness at the same token budget. Evaluate the answer separately for factual accuracy, citation correctness, and appropriate refusal when information is insufficient—for example, using reference claims and blind expert review. Compare different chunking strategies using the same corpus, queries, context limit, and generation settings; record the versions of the data and components. This keeps the metrics independent of chunk boundaries and chunk counts.