Compare retrieval configurations
compare_configsCompare 2–3 retrieval configurations on the same qrels, rank them by a primary metric, and use seeded paired-bootstrap confidence intervals to check whether the winner's lead is significant before switching.
Instructions
Compare 2-3 retrieval configurations on the same qrels. Ranks them on a primary metric, attaches seeded paired-bootstrap confidence intervals, and says whether the winner's lead over the runner-up is significant (interval of the gap excludes zero). Use it before switching retriever, chunking or reranker, so a small gap on a few queries is not mistaken for a win.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Cut-offs to evaluate. Defaults to [1, 3, 5, 10]. | |
| qrels | Yes | Relevance judgements: { queryId: { docId: grade } }. Grade 0 means not relevant; higher grades are more relevant (used by nDCG). Example: { "q1": { "d3": 2, "d7": 1 } } | |
| metric | No | Primary metric that decides the winner, e.g. ndcg@10, recall@5, mrr. | ndcg@10 |
| configs | Yes | Two or three runs over the same queries. | |
| bootstrap | No | Paired bootstrap over queries. Defaults: 1000 samples, seed 42, 95% confidence. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delta | Yes | Paired bootstrap interval of winner minus runner-up. | |
| metric | Yes | ||
| winner | Yes | ||
| configs | Yes | ||
| summary | Yes | ||
| runnerUp | Yes | ||
| bootstrap | Yes | ||
| significant | Yes | True when the delta interval excludes zero. |