package com.ankurm.rageval; import java.util.Map; import java.util.Set; /** * One row of the golden dataset: a question, the passages that answer it, and how well each one does. * *
{@code grades} maps passage id to a relevance grade: 2 = answers the question on its own,
* 1 = useful supporting context. Passages not listed are grade 0. Binary metrics (hit, recall,
* precision, MRR) treat every listed passage as relevant; nDCG uses the grades.
*/
public record GoldenQuestion(String id, String category, String query, Map