Changesets · Branches · Tags · Compare
| Changeset | f25b8a5d72bf52c7f095180a9d395e111e59d2acbea6085b2fb677219a4f1e49 |
|---|---|
| Author | KikoCis <kikocisneros@gmail.com> · 2026-08-09 16:58 +02:00 |
| Committer | KikoCis <kikocisneros@gmail.com> · 2026-08-09 16:58 +02:00 |
| Parents | 7668ad741842 |
2 files changed
modified core/context.js +5 −1
| @@ -614,13 +614,17 @@ | ||
| 614 | 614 | // is the only thing that measures above plain BM25 — and not by much: |
| 615 | 615 | // +2.4 points at full scale. A 3-seed smoke test said +8.9 and that was |
| 616 | 616 | // seed noise; the header carries the honest figure. |
| 617 | + // MMR is off: measured at zero contribution on both benchmarks (94.9% with | |
| 618 | + // and without at a 3,000 budget, 100.0% and 100.0% at 16,000). It earned its | |
| 619 | + // +2.4 before the elastic window and the splitter fix; those removed its job. | |
| 620 | + const MMR_ON = false; | |
| 617 | 621 | const lambda = Math.max(0.15, Math.min(0.8, 2 * measureRedundancy(pool))); |
| 618 | 622 | const nCand = Math.max(400, Math.min(8000, Math.round(budgetTokens / 6))); |
| 619 | 623 | const cand = pool.slice(0, nCand); |
| 620 | 624 | const tok = new Map(cand.map(it => [idOf(it), simTokens(it.line)])); |
| 621 | 625 | const maxSim = new Map(cand.map(it => [idOf(it), 0])); |
| 622 | 626 | const byId = new Map(cand.map(it => [idOf(it), it])); |
| 623 | - const remaining = new Set(cand.map(idOf)); | |
| 627 | + const remaining = new Set(MMR_ON ? cand.map(idOf) : []); | |
| 624 | 628 | while (remaining.size && used < budgetTokens) { |
| 625 | 629 | let best = null, bestVal = -Infinity; |
| 626 | 630 | for (const id of remaining) { |
added max +0 −0