Files
ruflo/docs
ruv fc39e29f23 feat(intelligence): grid-search retrieval defaults vs labelled metric (ADR-082, 3.10.22)
Re-tuned hybrid retrieval defaults against the ADR-081 labelled corpus
(previous defaults were tuned against the now-known-misleading regex
proxy). New script scripts/grid-search-retrieval.mjs sweeps 32 configs
(27 hybrid + 5 rerank) and reports per-config labelled metrics.

Findings → new defaults:
  - alpha:         0.6 → 0.5 (α=0.7 was broken: 40-50% top-1)
  - subjectWeight: 3.0 → 2.0 (sw=2 dominates)
  - mmrLambda:     0.5 → 0.7 (less diversity / more relevance)
  - hybridWeight:  0.5 (kept; joint re-grid with new α/sw is next)
  - ceWeight:      0.5 (kept)

Measured (hybrid path, labelled metric, this checkout):

| Metric            | 3.10.21 | 3.10.22 |     Δ |
|-------------------|--------:|--------:|------:|
| Label top-1       |    90%  |    90%  |   tie |
| Label top-3       |    90%  |   100%  | +10pp |
| Label MRR@3       |  0.900  |  0.950  | +0.05 |
| Label precision@3 |  0.400  |  0.533  | +0.13 |
| Label nDCG@3      |  0.900  |  0.963  | +0.06 |
| Label nDCG@5      |  0.875  |  0.938  | +0.06 |
| Avg latency       |   42ms  |   55ms  | +13ms |

Cumulative labelled nDCG@3 (3.10.17 → 3.10.22): 0.000 → 0.963.

Rerank path also improved on top-1/MRR/P3 but lost slightly on top-3/nDCG@3
— the joint α/sw × hybridWeight/ceWeight re-grid is tracked for the next
release.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-30 14:46:09 -04:00
..