Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

docs: add interpretation guide to BENCHMARKING.md (#3723)

Ishittacc98aa95f5f1
diff --git a/docs/BENCHMARKING.md b/docs/BENCHMARKING.md
index 8afa3efc15..266b2e39fd 100644
--- a/docs/BENCHMARKING.md
+++ b/docs/BENCHMARKING.md
@@ -49,6 +49,83 @@ The Local Deep Research benchmarking system evaluates search configurations, mod
- **Focused iteration with SimpleQA**: Around 95% potential with optimal setup
- **Source-based strategy**: Around 70% accuracy, more comprehensive results
+## Interpretation
+
+Benchmark numbers are estimates, not exact measurements. This section helps reason about how much to trust a result and when a difference between two runs is meaningful.
+
+### Confidence Intervals for a Single Run
+
+A reported accuracy of "91%" is a point estimate with uncertainty that depends on how many examples you tested. The **Wilson score interval** gives the true range at 95% confidence (it behaves correctly near 0% and 100%, unlike the simpler normal approximation):
+
+```
+center = (p̂ + z²/2n) / (1 + z²/n)
+half-width = z × sqrt(p̂(1−p̂)/n + z²/4n²) / (1 + z²/n)
+
+where p̂ = observed accuracy, n = examples run, z = 1.96 for 95% CI
+```
+
+**95% confidence margin of error by sample size:**
+
+| Examples (n) | ~70% accuracy | ~85% accuracy | ~91% accuracy | ~95% accuracy |
+|:---:|:---:|:---:|:---:|:---:|
+| 20 | ±21% | ±17% | ±14% | ±10% |
+| 50 | ±13% | ±10% | ±8% | ±6% |
+| 100 | ±9% | ±7% | ±6% | ±4% |
+| 200 | ±6% | ±5% | ±4% | ±3% |
+| 500 | ±4% | ±3% | ±3% | ±2% |
+
+> **Key takeaway:** A run of 20 examples has an uncertainty window of ±14–21%. A reported score of "91%" could plausibly be anywhere from 77% to 100%. Use at least 100 examples before drawing any conclusions, and 200+ before comparing configurations.
+
+### Comparing Two Configurations
+
+To tell whether config A is better than config B, you need enough examples that the observed difference is larger than the noise. The table below shows how many examples each configuration needs (run independently, same question set via the same seed) to reliably detect a given absolute accuracy difference at 80% statistical power (α = 0.05, two-sided):
+
+| Difference to detect | Examples needed per config |
+|:---|:---:|
+| 5 pp (e.g., 85% vs 90%) | ~680 |
+| 10 pp (e.g., 80% vs 90%) | ~200 |
+| 15 pp (e.g., 75% vs 90%) | ~90 |
+
+**Rule of thumb:** If the observed difference between two runs is smaller than the margin of error for either run (see the table above), treat the results as a tie.
+
+### When Two Runs Cannot Be Compared
+
+Even with large sample sizes, cross-run comparison is unreliable if any of the following differ between the runs:
+
+- **LDR version** — search logic, prompt templates, and result filtering may have changed between releases
+- **Strategy** — `focused_iteration` and `source_based` answer questions differently by design; their scores measure different things
+- **Grader model** — changing the evaluation LLM changes what "correct" means; the same system response may grade differently under different graders
+- **Random seed / question sample** — some subsets of SimpleQA are inherently easier than others; always use `--seed 42` (or any fixed seed) consistently across compared runs
+- **Search engine** — Tavily, SearXNG, and Brave retrieve different content; engine latency also affects what gets retrieved within per-query time limits
+
+Treat each combination of (LDR version, strategy, search engine, grader model, seed) as a distinct experimental condition. Comparisons are only valid within the same condition.
+
+### Evaluator LLM Error
+
+The grader LLM (default: Claude 3.7 Sonnet via OpenRouter) is not perfect. On SimpleQA-style questions it mis-grades approximately **1% of responses** — consistent with calibration results reported in the original SimpleQA paper for similarly capable graders.
+
+What this means in practice:
+
+- **100 examples:** ~1 question is graded wrong. A 1 percentage-point difference (e.g., 91% vs 92%) is indistinguishable from grader noise alone.
+- **500 examples:** ~5 questions are graded wrong. A 1% gap is still inside grader noise; differences of 3–4 pp start to be interpretable.
+- The grader tends to be **conservative** — it marks ambiguous or partially-correct matches as incorrect — so reported accuracy is a slight underestimate of true accuracy.
+
+**Don't optimize for differences smaller than ~2–3 pp on runs under 500 examples.** The signal is not there.
+
+### Decision Checklist
+
+Before acting on a benchmark result:
+
+```
+[ ] n ≥ 100 examples (use ≥ 200 when comparing two configurations)
+[ ] Same random seed used across all compared runs
+[ ] Same LDR version, strategy, search engine, and grader model
+[ ] Observed difference > margin of error for each run (see table above)
+[ ] Observed difference > ~2 pp (minimum meaningful above grader noise)
+```
+
+---
+
## Best Practices
### Testing Workflow