An open source, non-profit web search engine
Add the Combined Search LTR, Jev and holistic-judge write-ups
Claude64b506f3854d
diff --git a/mwmbl/rankeval/combined-holistic-eval.md b/mwmbl/rankeval/combined-holistic-eval.mdnew file mode 100644index 0000000..13bac50--- /dev/null+++ b/mwmbl/rankeval/combined-holistic-eval.md@@ -0,0 +1,296 @@+# Combined Search: a holistic side-by-side judge++2026-09-29 · follows `combined-ltr-objective.md` · `scripts/combined_ltr_labels/holistic_eval.py`,+judgments in `devdata/combined_ltr_labels/holistic_judgments.jsonl`++> **Where things are:** the scripts and data behind this write-up are on the archived+> branch `claude/blissful-maxwell-dq1ddl` (mwmbl/mwmbl#462), not in main. The ordering+> these experiments chose, Jev composite + Staan rank, is what Combined Search serves+> (`mwmbl/tinysearchengine/jev_rank.py`). To compare two rankings holistically, use+> `mwmbl/rankeval/evaluation/holistic_judge.py`; to build a Jev composite arm offline,+> `mwmbl/rankeval/evaluation/jev_order.py`.++**Question:** pass-3 NDCG grades each page alone, so it can't see a list's redundancy, which+intents it covers, its extracts, or whether its #1 answers the query. That is what MMR is for,+so NDCG can't evaluate it. Can a Haiku judge that compares two whole top-ten lists stand in,+and does it agree with what NDCG already tells us?++## Method++- **Side by side:** each comparison shows one query and two top-ten lists (title, URL,+ extract), and the judge says A, B or tie, how strongly (slight/clear/strong), and the main+ reason (top_result, relevance, junk, redundancy, coverage, extracts, ethos). It lists the+ best result and the weak results by position, with a reason each, first.+- **Ethos:** pass 3's ethos rubric word for word, with its rule that relevance comes first+ and the destination a navigational or transactional query wants wins even when commercial.+- **Extracts are judged, not hidden.** Each list shows the text it served: Brave's own+ descriptions, our extracts for index pages, Staan's snippets for Staan's results. Poor+ extracts count against a list, but after the result itself. Brave's `<strong>` markup is+ stripped.+- **Both orders:** each comparison is judged twice, A/B and B/A, by different Haiku 4.5+ subagents (878 judgments, 36 batches of 25). A verdict scores −3..3; the two are averaged.++Two validation sets on the en-gb queries, against `engb_staan_arms.json`:++- **brave:** Brave against `shipped`, every query where they differ (289).+- **ndcg:** per query, the two of our arms whose NDCG@10 differs most, where that's ≥ 0.05+ (150).++## Results++| | brave vs shipped | ndcg (widest arm pair) |+|---|---|---|+| Comparisons | 289 | 150 |+| Preference for NDCG's winner (−3..3) | +0.78 [+0.64, +0.92] | +0.67 [+0.46, +0.87] |+| NDCG's winner preferred / other / tie | 66% / 19% / 15% | 61% / 24% / 15% |+| Agrees with NDCG's sign, where it decides | 82% of 246 | 85% of 128 |+| Spearman (NDCG gap, preference) | 0.55 | 0.57 |+| Both orders agree on the direction | 65% | 67% |++Agreement with NDCG's sign by the size of its gap (brave set): 63% below 0.05, 81% at+0.05–0.10, 88% at 0.10–0.20, 98% above 0.20.++- **It passes both checks.** Brave wins clearly, and where NDCG sees a real gap the judge+ agrees 80–98% of the time, rising with the gap.+- **Position bias is small:** A is chosen in 53% of non-tie verdicts.+- **A single verdict is noisy.** 25% of comparisons get opposite verdicts in the two orders+ (73 of 289 and 30 of 150), almost all slight or clear, and 11% have one tie. Averaged over+ hundreds of queries the signal is strong, but a gap the size of the recent arm differences+ (NDCG ±0.004) needs many more queries or more judgments per comparison.+- **Main reasons:** junk, relevance and top result dominate (about 85%). Redundancy and+ coverage account for about 12% of the Brave verdicts and 17% of the arm-pair ones. The+ judge rarely gives extracts (8) or ethos (1) as the main reason, though it flags poor+ extracts on individual results.+- **Where it disagrees with NDCG, it often has a case:** a Facebook error page at #1 ("facebook+ uk"), login/cart utility pages ("pokemon center"), a scam site at #9 ("sign in hotmail"),+ the same BBC article from several years ("world book day"), and UK over US local results+ ("fish and chips near me"). Some are judgment calls, such as Wikipedia vs the official site+ at #1 for a brand query.++## MMR (2026-09-29)++The best learned arm served with MMR, `ndcg+new (en-gb Staan)`, and the same model without+MMR, each against the reference `staan-first, fill ndcg+new, no MMR`. Both are compared on every en-gb+query with complete grades (289 each), in both orders: 1,156 judgments, 48 batches+(`holistic_eval.py batches mmr`, judgments in `holistic_mmr_judgments.jsonl`). One judge+wrote `"better": "slight A"` for 12 verdicts that also gave strength `slight`; these were+normalised to `A`/`B`.++| | with MMR vs reference | without MMR vs reference |+|---|---|---|+| NDCG@10 gap (for reference) | −0.015 | +0.001 |+| Preference for the arm (−3..3) | −0.29 [−0.40, −0.17] | −0.22 [−0.35, −0.10] |+| Arm preferred / reference / tie | 29% / 53% / 18% | 32% / 46% / 21% |+| Both orders agree on the direction | 50% | 59% |+| Agrees with NDCG's sign, where it decides | 69% of 237 | 64% of 227 |+| Duplicate flags per judged list | 0.026 (reference 0.065) | 0.067 |++- **The reference wins both comparisons.** Staan-first, filled by `ndcg+new` without+ MMR, is preferred to the best MMR model by 0.29 on the −3..3 scale. NDCG put the gap at+ −0.015.+- **Without MMR the learned ordering still loses, by 0.22.** NDCG called it a tie+ (+0.001). The judge sees something NDCG doesn't in Staan's own order, mostly at the top:+ relevance and top result are the main reasons for about 60% of verdicts.+- **MMR itself makes little difference to the overall verdict.** Paired per query, with+ MMR minus without MMR (both against the reference) is −0.06 [−0.19, +0.06]. The small+ NDCG cost of MMR shows up with the same sign, but it isn't significant here.+- **MMR does what it's for.** Judges flag duplicates in 2.6% of the MMR lists' results,+ against 6.5–6.7% for the two lists without it. Redundancy is the main reason in 25+ verdicts with MMR and 51 without. But fewer duplicates don't outweigh what MMR demotes.+- **These are small differences.** The two orders agree on the direction only 50–59% of+ the time, less than in validation (65–67%), because the lists are close. The two+ headline gaps are clear of zero; the MMR-vs-no-MMR difference isn't.++## Next++- **MMR.** Done above: the reference beats both the MMR and the no-MMR learned ordering.+ A lighter or Staan-exempt kernel is only worth testing on top of Staan-first, where MMR+ would apply to the fill alone.+- **Noise.** With one pair of judgments per comparison, detecting a small gap needs many+ queries. Three or four judgments per comparison, or a stronger judge on the comparisons+ where the two orders disagree, would tighten it.+- **Prompt:** four judges gave `wrong-locale` as the main reason, which isn't in the list+ (it's recorded as `other`). Add `locale` as a main reason.++## Jev (2026-09-30)++Three Jev (TypeSafe) orderings of the same pool against the reference, on every en-gb query+where their lists differ, in both orders: 722 comparisons, 1,444 judgments, 58 batches+(`holistic_eval.py batches jev`, judgments in `holistic_jev_judgments.jsonl`). Setup and pass-3+numbers are in `combined-search-jev-eval.md`.++- **Pool:** ndcg+new's top 30 without MMR, plus Staan's ten, re-ranked fresh+ (`jev_pool.py`). The rebuilt reference matches `engb_staan_arms.json` on 264 of 295 queries.+ The index has drifted since, and every arm here fills from the same fresh pool.+- **Jev:** one pointwise UK-relevance Score per candidate. The arms:+ - `staan-first, fill Jev`: Staan's order, then Jev;+ - `Jev + Staan rank`: Jev's score (0–3) minus 0.05 × Staan's position (10 if absent);+ - `Jev re-rank`: Jev alone.++| | Jev + Staan rank | staan-first, fill Jev | Jev re-rank |+|---|---|---|---|+| Comparisons (lists differ) | 289 | 144 | 289 |+| Pass-3 NDCG@10 gap | +0.035 | +0.009 | +0.031 |+| Preference for the arm (−3..3) | **+0.31 [+0.18, +0.44]** | **+0.30 [+0.18, +0.42]** | +0.00 [−0.13, +0.14] |+| Arm preferred / reference / tie | 54% / 28% / 19% | 49% / 19% / 33% | 43% / 43% / 15% |+| Both orders agree on the direction | 60% | 52% | 61% |+| Agrees with NDCG's sign, where it decides | 71% of 235 | 66% of 97 | 61% of 246 |++- **`Jev + Staan rank` is the first ordering to beat the reference holistically.** The learned+ orderings in the MMR section lost to it by 0.22–0.29; this one wins by 0.31. Top result+ (158) and relevance (132) are the main reasons.+- **Jev alone ties the reference, though NDCG puts it +0.031 ahead.** It gives up Staan's top+ of the list: top result is the main reason in 215 of its 578 verdicts. That is this+ document's MMR finding again: Staan's order has value that per-page NDCG doesn't see.+- **Filling with Jev wins where it changes anything.** It differs from the reference on only+ 144 queries (only positions below Staan's results move), and there it is preferred by+ 0.30, mostly for dropping junk. Over all 289 queries that is about +0.15.+- **Caveats.** The Staan weight (0.05) was picked on this eval set's pass-3 NDCG, from five+ values. Judges for batches 00–03 first produced templated verdicts (22 ties in 25, three+ distinct notes); those were deleted and re-judged. One verdict's `"better": "slight A"` was+ normalised to `A`.++## Jev as a model feature (2026-09-30)++`Jev + Staan rank` hand-picks its Staan weight. Can the model learn the combination instead?+`jev_scores.py` scores all 51,561 LLM-labelled training pairs with Jev, and+`jev_feature_experiment.py` adds that score as a feature of ndcg+new.++**Cross-validated** over all 849 training queries (Jev has seen none of them), pass-3+NDCG@10 on the serving pool:++| Arm | NDCG@10 | vs ndcg+new, 95% CI |+|---|---|---|+| ndcg+new | 0.876 | — |+| + `jev`, every candidate | 0.900 | +0.023 [+0.019, +0.027] |+| + `jev`, stage-1 top 30 only (cascade) | 0.900 | +0.024 [+0.019, +0.028] |+| Jev alone | 0.856 | −0.020 [−0.028, −0.012] |+| Jev + Staan rank | 0.875 | −0.001 [−0.007, +0.005] |++That is three times the MiniLM feature's gain in the same setup, and the cascade keeps all+of it, so serving needs one Jev request per query.++**End to end on en-gb** (`jev_ltr_eval.py`): the cascade inside `CombinedLTRRanker`,+without MMR, with 136 top-30 candidates scored by live Jev calls. Pass-3 NDCG@10 over 289+queries: the cascade 0.853, the reference 0.828 (+0.026 [+0.019, +0.034]), and `Jev + Staan+rank` 0.863 (the cascade trails it by 0.010 [0.005, 0.014]).++**Holistic** (`holistic_eval.py batches jev-ltr`, 1,154 judgments in 48 batches,+`holistic_jev_ltr_judgments.jsonl`):++| | cascade vs reference | cascade vs Jev + Staan rank |+|---|---|---|+| Comparisons | 289 | 288 |+| Preference for the cascade (−3..3) | +0.02 [−0.12, +0.15] | **−0.26 [−0.36, −0.16]** |+| Cascade preferred / other / tie | 40% / 39% / 21% | 26% / 48% / 26% |+| Both orders agree on the direction | 55% | 46% |++- **The learned model ties the reference and loses to the hand rule.** It gains per-page+ NDCG, as every learned ordering in this document did. But like `Jev re-rank`, it overrides+ Staan's top results, and the judge doesn't reward that. Relevance (168) and the top result+ (144) are the main reasons in its comparison with the reference.+- **So `Jev + Staan rank` remains the best ordering.** A model trained on pass-3 labels+ learns what pass-3 rewards, and pass-3 grades pages one at a time.+- **Data cleaning.** One verdict gave `"better": "slight"` with a note naming B, and was+ set to B. Three ties lacked a `reason` and got `none`. No batch looked templated.++## Jev + Staan rank, tuned on the training queries, and against Brave (2026-10-01)++`Jev + Staan rank` had its Staan weight (0.05) picked on these en-gb queries' pass-3 NDCG.+Picked instead on the 849 training queries' serving pool, the weight peaks at 0.15 (NDCG@10+0.885, against 0.875 at 0.05). The original labelled pool peaks at 0.05–0.1. On en-gb,+pass-3 NDCG gives 0.858 at w=0.15 and 0.863 at w=0.05: the eval-set choice was slightly+optimistic. `holistic_eval.py batches jev-tuned` and `jev-brave`, 578 judgments each:++| | w=0.15 vs reference | w=0.15 vs Brave |+|---|---|---|+| Comparisons | 289 | 289 |+| Preference for w=0.15 (−3..3) | **+0.49 [+0.37, +0.61]** | **−0.25 [−0.38, −0.12]** |+| w=0.15 preferred / other / tie | 60% / 21% / 19% | 33% / 47% / 20% |+| Both orders agree on the direction | 62% | 49% |++- **Tuning on separate queries made it better, not worse.** It beats the reference by +0.49,+ against +0.31 for the eval-tuned w=0.05 in the `jev` experiment. Leaning harder on+ Staan's order is what the judge rewards.+- **Brave is still ahead, but closer.** In validation Brave beat `shipped` by +0.78; it+ beats this arm by 0.25.++**Where Brave wins** (the 300 verdicts preferring Brave):++- **Main reasons:** relevance 80, junk 63, top result 57, redundancy 39, coverage 38,+ extracts 21.+- **Weak-result flags on our list vs Brave's**, in those verdicts:++ | Flag | Ours | Brave's |+ |---|---|---|+ | off-topic | 181 | 50 |+ | poor extract | 111 | 27 |+ | thin | 67 | 28 |+ | duplicate | 65 | 16 |+ | wrong locale | 13 | 4 |++- **Mwmbl's index results are the weak link.** Our top ten averages 8.3 Staan results and+ 1.7 from the index, yet 253 of the 460 flagged results we could place came from the index+ and 207 from Staan. Per result, an index page is about six times as likely as a Staan page+ to be flagged.+- **Recurring failures:**+ - **The wrong entity of the same name:** other hotels for "bankside hotel", other+ practices for "muirhead medical practice", the wrong Usman Tariq.+ - **The wrong sense:** baking and biology for "slaters" (the menswear retailer);+ definitions of bullion for "bullion by post".+ - **Off-topic spill from the index:** Fortnite cosmetics for "codes for goalbound";+ Arrival and Tenet for "ending of sirens explained"; hair-transplant spam for "capital+ hair and beauty".+ - **Repeated pages from one site:** "makerere university", "byfords holt".++## Targeting the Brave losses: composite Jev questions, an index penalty, a site cap (2026-10-01)++On the results the Brave comparison flagged, Jev's relevance score hardly separates them from the+rest: index results flagged off-topic or otherwise average 1.84 out of 3, clean ones 2.07. So+`jev_composite.py` asks Jev three Score questions per candidate, one request per query:+relevance (as before), **entity** (about the entity or sense the query means? 0–2) and+**quality** (substantive, or thin, spam or junk? 0–2). The arm scores relevance + α·entity ++β·quality − w·Staan position − p·(not from Staan). The weights are tuned on the 849 training+queries' pass-3 NDCG@10, never on en-gb.++- **The entity question doesn't help.** Every good weighting gives it weight 0. On the flagged+ results it separates no better than relevance does: for "bankside hotel" it rates other+ hotels 1.8 of 2.+- **Quality and the index penalty do.** The tuned arm is quality 0.5, Staan 0.1, index 0.5:+ NDCG@10 0.889, against 0.885 for `w=0.15`, +0.004 [+0.002, +0.007]. Without the quality+ question it is 0.887, and without the index penalty 0.880. The surface is flat, so the+ weights were picked from the middle of the plateau, not its edge.+- **Site cap:** after ranking, a site's third and later results move below the top ten.++Holistic judgments (`batches jev-composite`, `jev-cap`, `jev-composite-brave`):++| | composite vs w=0.15 | composite + cap vs composite | composite vs Brave |+|---|---|---|---|+| Comparisons | 284 | 71 | 295 |+| Preference for the first arm (−3..3) | **+0.16 [+0.07, +0.25]** | **−0.65 [−0.87, −0.42]** | −0.12 [−0.26, +0.02] |+| First preferred / second / tie | 44% / 29% / 27% | 13% / 65% / 23% | 37% / 42% / 22% |+| Both orders agree on the direction | 46% | 59% | 55% |++- **The composite beats `w=0.15`.** Relevance (179) and the top result (80) are the main+ reasons. It differs on 284 of 295 queries, but mostly in the bottom half, so a third of+ verdicts are ties or opposite in the two orders.+- **The site cap loses badly.** The pages it pulls in to replace a site's third and later+ results are worse than the repeats: relevance (61) and junk (29) are the main reasons. Often+ the repeats are what the searcher wants (the official site's own pages). 19 queries keep+ three or more from one site because the pool has nothing else.+- **Brave's lead is no longer significant.** On the 289 queries both Brave runs share, the+ preference moves from −0.25 [−0.38, −0.12] to −0.11 [−0.25, +0.03], paired +0.14+ [+0.01, +0.27].+- **Weak-result flags, ours relative to Brave's** in the same verdicts: these judges flag more+ on both sides than the last run's, so ratios compare better than counts. Poor extract falls+ from 2.0× Brave's to 1.8×, off-topic from 1.9× to 1.7×, duplicate from 1.2× to 0.8×. Thin+ stays at 1.3×, and wrong locale rises from 0.5× to 1.0×.+- **Caveats.** The six queries new to the Brave comparison have ungraded pages, so they have+ no NDCG gap. A few judges wrote `organization` or another reason outside the list (recorded+ as `other`). One judge used a script to parse its batch but wrote its verdicts by hand. No+ batch looked templated: every batch has a distinct note per verdict.++**Next:** the remaining gap is relevance, junk and coverage. Off-topic results are still 1.7×+Brave's. A better entity signal than a Jev Score question is needed, for example the query's+Wikidata entity or a pairwise Jev choice between candidates for the same name. Wrong locale+rose and is worth a targeted locale question.diff --git a/mwmbl/rankeval/combined-ltr-objective.md b/mwmbl/rankeval/combined-ltr-objective.mdnew file mode 100644index 0000000..32372dc--- /dev/null+++ b/mwmbl/rankeval/combined-ltr-objective.md@@ -0,0 +1,711 @@+# Combined Search: ranking objective and serving-pool labels++2026-09-27 · follows `combined-search-miss-attribution.md` · scripts and data in+`scripts/combined_ltr_labels/` and `devdata/combined_ltr_labels/`++> **Where things are:** the scripts and data behind this write-up are on the archived+> branch `claude/blissful-maxwell-dq1ddl` (mwmbl/mwmbl#462), not in main. The ordering+> these experiments chose, Jev composite + Staan rank, is what Combined Search serves+> (`mwmbl/tinysearchengine/jev_rank.py`). To compare two rankings holistically, use+> `mwmbl/rankeval/evaluation/holistic_judge.py`; to build a Jev composite arm offline,+> `mwmbl/rankeval/evaluation/jev_order.py`.++**Question:** without letting Staan set the order, the gap to Brave is mostly ordering. The+best ten of Staan plus the LTR's top 30, perfectly ordered, score 0.903 against the shipped+model's 0.801 and Brave's 0.895. The shipped model puts weak index pages (overall ≤ 3) in its+top ten while good Staan results sit at ranks 11–30. Does a ranking objective on graded+labels fix this where the binary classifier doesn't, and do labels for the pool it actually+serves help?++## Summary++- **`rank:ndcg` beats the binary recipe, offline and end to end.**+ - In cross-validation over the 849 labelled queries it gains about +0.015 NDCG@10.+ - On the held-out en-gb queries, with blind Haiku UK pass-3 judgments, it gains +0.011+ over the shipped model [+0.006, +0.016].+ - `rank:pairwise` lands in between.+- **The 8,082 serving-pool labels help a little.**+ - They add +0.001 to +0.003 in every arm, and are never significant on their own.+ - `rank:ndcg` with them is the best arm: +0.013 over shipped [+0.008, +0.018].+- **The binary retrain reproduces the shipped model**, 0.798 against 0.796. That holds even+ without curation data and with approximate Staan ranks, so the harness is sound.+- **The MiniLM judges add a little more, end to end.** With the served judge (`both`) as a+ feature, `ndcg+new` gains +0.005 [+0.000, +0.011] on en-gb, +0.018 over shipped in all.+ That agrees with cross-validation (+0.006), and `both` is as good as any other judge.+ - **But scoring every candidate costs about a second a query.** The ranker scores 138+ candidates a query on average. The judge takes 1.0 s mean and 1.7 s p90 on 4 threads,+ and 2.5 s mean on 1 thread, against 5 ms for the whole shipped ranking.+- **Common Crawl's web-graph ranks are the domain signal that carries over.** Harmonic+ centrality and PageRank, host and domain level, gain +0.005 on en-gb [+0.000, +0.009],+ matching cross-validation. The crawl model's features (SERP counts, curated, crawl+ inlinks) gain +0.007 in cross-validation, but only +0.001 on en-gb.+ - Beside MiniLM, `both` plus the SERP features plus Common Crawl is the best arm: 0.813,+ +0.008 over `ndcg+new` [+0.003, +0.014] and +0.004 over `both` [−0.001, +0.009].+ - Target encoding of the registered domain's `ethos` alone doesn't overfit, where the+ host-level encoding did, but it isn't significant end to end.+- **The gain is modest against the gap.** The best arm reaches 0.809. Brave scores 0.892,+ and the ordering ceiling is about 0.90. A better objective alone doesn't close it.+- **MMR is why no learned ordering beat Staan-first.** Without MMR, `ndcg+new` gains 0.018+ on en-gb and ties Staan-first. Trained on en-gb Staan results as well, it reaches 0.830,+ +0.004 [−0.001, +0.010] over Staan-first. See the MMR section below.+- **Interleaving index results while keeping Staan's order gains little.** In+ cross-validation, the best arm (the `ndcg+new` model with MiniLM as a feature, letting an+ index result in only when it outscores every remaining Staan result) gains +0.005 over+ Staan-first, half of it from a better fill order. An index-vs-Staan pair classifier does no+ better. An oracle merge would gain +0.07, so choosing the index results is the bottleneck.+ A pair classifier with difference and ranking-score features, calibrated and ordering the+ index results by win rate, gains +0.004 without MiniLM, over twice `merge-rest`'s +0.0016.+- **Why rank:ndcg may have looked worse before:** a ranking objective's scores are margins,+ mostly negative (60–70% of kept candidates here).+ - `LTRRanker` keeps only `predictions > 0`, so serving such a model as-is would silently+ drop most candidates.+ - `LTRRanker` and the Python pipelines also score filtered documents 0, which ranks them+ above every negative-scored one. That alone costs rank:ndcg 0.013 on the original pool.+ - Every arm here treats the majority-terms filter as an exclusion. At serving,+ `engb_eval.BoosterModel` passes the sigmoid of the margin.++## Cross-validation (5 folds over the 849 queries)++Same features: mwmbl_rank's 50, plus `in_staan` and `staan_rank`. Same tree parameters+(exact, λ 2, η 0.3, depth 6, 100 rounds) and same data: LLM rows plus the extension dataset+at weight 0.25. Only the objective and the `+new` labels differ. Gains are the linear+overall grade.++| Arm | Serving pool NDCG@10 | vs binary | Original pool NDCG@10 | vs binary |+|---|---|---|---|---|+| binary (shipped recipe) | 0.8605 | — | 0.8067 | — |+| binary+new | 0.8630 | +0.0025 [−0.0011, +0.0059] | 0.8073 | +0.0006 [−0.0026, +0.0039] |+| ndcg | 0.8752 | +0.0147 [+0.0109, +0.0187] | 0.8234 | +0.0166 [+0.0124, +0.0211] |+| **ndcg+new** | **0.8761** | **+0.0156 [+0.0117, +0.0194]** | **0.8235** | **+0.0168 [+0.0125, +0.0210]** |+| pairwise | 0.8717 | +0.0112 [+0.0073, +0.0153] | 0.8183 | +0.0115 [+0.0071, +0.0160] |+| pairwise+new | 0.8734 | +0.0129 [+0.0093, +0.0167] | 0.8173 | +0.0105 [+0.0062, +0.0148] |++- The *serving pool* is Staan's results plus the index's top 30 under the shipped model,+ every pair labelled (`pool.json`).+- The *original pool* is the Pass-2 pool that `llm_experiment` evaluates on.++## End to end on en-gb (289 queries)++Each arm, retrained on all 849 queries, ranks the same fresh index retrieval plus Staan's+en-gb results through `CombinedLTRRanker` + MMR. Top-ten URLs nobody had judged were+graded blind by Claude Haiku 4.5 subagents with the UK pass-3 prompt: 591 new judgments and+404 anchors. The ideal is every en-gb pass-3 judgment for the query.++| Arm | NDCG@10 | vs shipped | Weak (≤ 3) in top 10 |+|---|---|---|---|+| shipped | 0.796 | — | 21.0% |+| binary | 0.798 | +0.001 [−0.003, +0.006] | 20.5% |+| binary+new | 0.799 | +0.003 [−0.002, +0.008] | 20.2% |+| ndcg | 0.807 | +0.011 [+0.006, +0.016] | 20.1% |+| **ndcg+new** | **0.809** | **+0.013 [+0.008, +0.018]** | **19.9%** |+| pairwise | 0.805 | +0.008 [+0.003, +0.014] | 19.9% |+| pairwise+new | 0.807 | +0.011 [+0.005, +0.016] | 19.9% |+| brave | 0.892 | +0.096 | 9.8% |++- **Robustness:** the new judgments' anchors run +0.33 generous. Removing that offset from+ every new judgment leaves `ndcg+new` at +0.012 [+0.007, +0.016].+- **Newly judged URLs:** they make up 1.5% of the shipped model's top tens and 6–7% of each+ retrained arm's.++## MiniLM judges as features (5 folds over the 424 judge-eval queries)++Each fine-tuned MiniLM judge in `devdata/judge_train/models/` adds its score as one feature+to `ndcg+new`: `both` (the served judge), `pointwise` (LLM grades only) and `pairs` (human+curation pairs only). `minilm_scores.py` scores the pairs and `minilm_experiment.py` runs+the arms.++- **Leakage.** The judges were trained on 340 of the 849 queries and checkpoint-selected on+ 85 more. So the test folds are drawn only from the other 424, and none of the judges'+ training or validation files, pointwise or pairs, contains any of those 424 queries.+- **Two training sets.** `clean` trains on the other eval folds only. `all` also trains on+ the 425 judge-train/val queries, where the scores are in-sample: `both` has Spearman+ 0.71 with `overall` there, against 0.65 on eval queries.+- **Extension rows.** They aren't scored (252k pairs at 76 a second), so their MiniLM+ features are missing.++| Arm | Serving pool NDCG@10 | vs same-training base | Original pool NDCG@10 | vs same-training base |+|---|---|---|---|---|+| clean/base | 0.8699 | — | 0.8193 | — |+| clean/both | 0.8771 | +0.0072 [+0.0025, +0.0119] | 0.8233 | +0.0040 [−0.0012, +0.0094] |+| clean/pointwise | 0.8782 | +0.0083 [+0.0034, +0.0129] | 0.8277 | +0.0084 [+0.0028, +0.0140] |+| clean/pairs | 0.8718 | +0.0019 [−0.0019, +0.0057] | 0.8177 | −0.0016 [−0.0062, +0.0029] |+| clean/all3 | 0.8798 | +0.0099 [+0.0052, +0.0147] | 0.8271 | +0.0079 [+0.0019, +0.0137] |+| all/base | 0.8763 | — | 0.8246 | — |+| all/both | 0.8821 | +0.0058 [+0.0009, +0.0106] | 0.8316 | +0.0070 [+0.0014, +0.0123] |+| all/pointwise | 0.8821 | +0.0058 [+0.0011, +0.0105] | 0.8326 | +0.0080 [+0.0019, +0.0141] |+| all/pairs | 0.8789 | +0.0025 [−0.0007, +0.0059] | 0.8277 | +0.0030 [−0.0011, +0.0068] |+| **all/all3** | **0.8822** | **+0.0058 [+0.0010, +0.0107]** | **0.8325** | **+0.0079 [+0.0021, +0.0135]** |+| MiniLM `both` alone | 0.8246 | −0.0453 vs clean/base | 0.7785 | −0.0408 vs clean/base |++- **The judges help, modestly.** They add +0.006 to +0.010 NDCG@10, about as much again as+ the switch to rank:ndcg gained.+- **The LLM-grade signal carries it.** `pointwise` does as well as `both`, and `pairs`+ alone is not significant. All three together match the best single judge, so one+ feature (`pointwise` or `both`) would do.+- **The in-sample scores don't hurt.** The `all` arms stay best in absolute terms: 425 more+ training queries are worth more than the in-sample optimism costs.+- **MiniLM doesn't replace the LTR.** Ordering by `both` alone is 0.04 worse, and it lets+ far more index results into the top ten.+- **Serving cost:** about a second a query; see the latency section below.++## End to end on en-gb with MiniLM features (289 queries)++`engb_minilm_eval.py` trains `ndcg+new` with each judge set on all 849 queries plus the+serving-pool labels (the `all` setting), and ranks one fresh retrieval as `engb_eval.py`+does. At serving each judge scores every candidate the ranker scores, on its title and+extract. `shipped` and `ndcg+new` rank the same retrieval again, since arms are only+comparable within one. Haiku graded the top-ten URLs no earlier judgment covered: 154 new+judgments and 198 anchors.++| Arm | NDCG@10 | vs shipped | vs ndcg+new | Weak (≤ 3) in top 10 |+|---|---|---|---|---|+| shipped | 0.794 | — | −0.013 [−0.018, −0.008] | 21.0% |+| ndcg+new | 0.807 | +0.013 [+0.008, +0.018] | — | 20.0% |+| ndcg+new+pointwise | 0.814 | +0.020 [+0.013, +0.027] | +0.007 [+0.001, +0.013] | 18.3% |+| **ndcg+new+both** | **0.812** | **+0.018 [+0.012, +0.024]** | **+0.005 [+0.000, +0.011]** | **18.5%** |+| ndcg+new+all3 | 0.812 | +0.019 [+0.012, +0.025] | +0.006 [+0.000, +0.011] | 18.6% |+| brave | 0.891 | +0.097 | +0.084 | 9.8% |++- **The retrieval reproduces the previous run.** `shipped` and `ndcg+new` score 0.794 and+ 0.807 here, against 0.796 and 0.809 in the objective run.+- **Use `both`.** It is within 0.002 of `pointwise`, well inside the noise, as in+ cross-validation. It is the judge Super Search already serves+ (`SUPER_SEARCH_JUDGE_MODEL_DIR`), and it was trained on the human curation pairs too.+- **The gain over `ndcg+new` is borderline on its own.** It fits the cross-validation in+ sign and size, and it cuts weak results in the top ten by 1.5 points.+- **Judge offsets.** The anchors run +0.63 generous, but unevenly: +0.92 for the judge of+ the 249-candidate batch, −0.03 for the other. Removing each judge's mean drift from its+ new judgments leaves `both` at +0.017 [+0.011, +0.023] over shipped and +0.004+ [−0.001, +0.010] over `ndcg+new`. Anchor relevance drift is +0.24, 67% of overall grades+ are within one of the original, and Spearman is 0.79.+- **Newly judged URLs** make up 2–3% of the MiniLM arms' top tens, and 0.2% of+ `ndcg+new`'s.+- **Leakage.** Dropping "bitcoin price" and "microsoft teams", which the pairs task may+ have seen, leaves `both` at +0.019 over shipped and +0.006 [+0.000, +0.011] over+ `ndcg+new`.++## Latency of the MiniLM feature (295 en-gb queries)++`minilm_latency.py` replays the en-gb retrieval through the shipped `CombinedLTRRanker`. It+captures the records each query passes to the model: every candidate the served arm's judge+would score. It then times `Judge.score` on them, best of 3 runs, on a laptop i7-8665U+(4 cores, 8 threads).++- **Candidates a query:** 138 on average, median 122, p90 230, max 391. That's many more+ than the ranker returns, because the model scores the whole pool before the `> 0` filter.+- **Pairs are short:** 40 tokens on average, and none reach the 256-token cap, so there's+ little to gain from truncating.++| What is timed | Mean | p50 | p90 | p99 |+|---|---|---|---|---|+| Shipped LTR `predict` | 2 ms | 2 ms | 2 ms | 4 ms |+| Shipped `search_retrieved` (whole ranking + MMR) | 5 ms | 4 ms | 7 ms | 9 ms |+| Judge, all candidates, 1 thread | 2,460 ms | 2,135 ms | 3,983 ms | 7,237 ms |+| Judge, all candidates, 2 threads | 1,514 ms | 1,337 ms | 2,444 ms | 4,451 ms |+| Judge, all candidates, 4 threads | 1,028 ms | 909 ms | 1,681 ms | 3,030 ms |+| Judge, all candidates, onnxruntime default | 1,152 ms | 1,035 ms | 2,017 ms | 3,232 ms |+| Judge, LTR top 10, 1 thread | 162 ms | 157 ms | 188 ms | 232 ms |+| Judge, LTR top 20, 1 thread | 338 ms | 328 ms | 384 ms | 556 ms |+| Judge, LTR top 30, 1 thread | 521 ms | 509 ms | 587 ms | 847 ms |++- **Per candidate:** 17.8 ms on 1 thread (56 a second), 11.0 ms on 2 and 7.5 ms on 4. The+ 1/76 s estimate above was optimistic. Threads scale sublinearly, and more threads per+ request would take cores from concurrent requests under load.+- **200–500× the ranking it would feed.** Scoring every candidate turns a 5 ms ranking+ into 1–2.5 s. That is as much again as the whole request: 1.2–1.3 s end to end on beta+ and production, mostly Staan.+- **The judge can't overlap Staan.** It scores the pooled candidates, which include Staan's+ results, so it runs after the fetch. It could score the index candidates while Staan is+ in flight, leaving only Staan's ~10 results after it: about 160–180 ms on 1 thread. But+ the index lookup finishes much sooner than Staan's fetch, and Staan-cache hits leave no+ fetch to hide behind.+- **A two-stage judge is affordable.** Scoring only the LTR's top 10–30 costs 0.16–0.5 s on+ 1 thread. The cascade sections below test it: the top 20 keeps the whole gain, in+ cross-validation and end to end.+- **Production hardware isn't measured here.** These are laptop timings. The ratio to the+ LTR should carry over. The absolute numbers depend on the server's cores and on how+ many requests share them.++## Domain-quality features (2026-09-28)++Before adding MiniLM, does a richer domain signal do the same job? The shared features have+one, `domain_score` (HN top-domains rank). `domain_features.py` adds what the write-time+crawl model uses (PR #463, `index-write-order-crawl-model.md`):++- `curated`;+- Google SERP counts: `serp_queries_host`, `serp_top3_host`, `serp_queries_apex`. The table+ leaves out every en-gb query, and each training row's own query;+- host shape, and a TLD code;+- `crawl_pages` and `crawl_inlink_hosts`, from the raw crawl's 458k pages and their links.++`domain_experiment.py` compares these with two learned signals. Both are cross-fitted+within each training set:++- `hq`, a host-quality model: an XGBoost regressor from those columns plus `domain_score`+ to the Pass-3 `ethos` grade;+- `te`, target encoding: the smoothed mean `ethos` and `overall` of the host and of its+ registered domain.++### Cross-validation++The first table uses the objective experiment's 5 folds over 849 queries. The second is+beside MiniLM `both`, over the 424 judge-eval queries in the `all` setting. Deltas are+against each table's `ndcg+new` base, which reproduces 0.8761 / 0.8235.++| Arm | Serving pool Δ | Original pool Δ |+|---|---|---|+| serp | +0.0053 [+0.0025, +0.0079] | +0.0054 [+0.0023, +0.0087] |+| raw (serp + shape) | +0.0066 [+0.0038, +0.0096] | +0.0061 [+0.0028, +0.0094] |+| raw+crawl | +0.0064 [+0.0036, +0.0091] | +0.0080 [+0.0051, +0.0111] |+| hq | +0.0058 [+0.0029, +0.0086] | +0.0042 [+0.0011, +0.0075] |+| te | +0.0035 [+0.0007, +0.0062] | −0.0041 [−0.0080, −0.0004] |+| all (raw+crawl, hq, te) | +0.0050 [+0.0022, +0.0080] | +0.0009 [−0.0031, +0.0051] |++| Arm (424 queries) | Serving pool Δ | Original pool Δ |+|---|---|---|+| both | +0.0058 [+0.0011, +0.0104] | +0.0070 [+0.0015, +0.0128] |+| raw+crawl | +0.0078 [+0.0037, +0.0117] | +0.0053 [+0.0002, +0.0102] |+| hq | +0.0060 [+0.0021, +0.0098] | +0.0035 [−0.0007, +0.0074] |+| both+raw+crawl | +0.0111 [+0.0061, +0.0166] | +0.0117 [+0.0063, +0.0175] |+| both+hq | +0.0090 [+0.0042, +0.0144] | +0.0082 [+0.0026, +0.0139] |+| both+all | +0.0105 [+0.0049, +0.0157] | +0.0127 [+0.0067, +0.0189] |++- In cross-validation, the plain features are as good as the learned ones.+- Target encoding overfits: it memorises hosts.++### End to end on en-gb (289 queries)++`engb_domain_eval.py` follows `engb_minilm_eval.py`. Haiku graded 147 new URLs, with 188+anchors (overall drift −0.21).++| Arm | NDCG@10 | vs ndcg+new | vs ndcg+new+both | Weak (≤ 3) in top 10 |+|---|---|---|---|---|+| shipped | 0.792 | −0.013 [−0.018, −0.008] | −0.018 [−0.024, −0.011] | 21.0% |+| ndcg+new | 0.805 | — | −0.005 [−0.010, +0.001] | 20.1% |+| ndcg+new+domain | 0.806 | +0.001 [−0.004, +0.006] | −0.004 [−0.010, +0.002] | 19.5% |+| ndcg+new+hq | 0.805 | −0.000 [−0.005, +0.005] | −0.005 [−0.011, +0.001] | 19.3% |+| **ndcg+new+both** | **0.810** | **+0.005 [−0.000, +0.010]** | — | **18.7%** |+| ndcg+new+both+domain | 0.810 | +0.005 [−0.001, +0.011] | +0.000 [−0.004, +0.005] | 18.3% |+| brave | 0.889 | +0.084 | +0.079 | 9.8% |++- **The cross-validation gain doesn't carry over.** MiniLM's does: +0.005 here against+ +0.006 in cross-validation.+- **Leakage through similar queries doesn't explain the gap.** A query in the SERP table+ that contains, or is contained in, the row's query can still count. But 53% of the 849+ training queries have such a near-duplicate, and so do 56% of the en-gb queries.+- **The domain features reshuffle reputable hosts.**+ - `+domain` changes the top ten of 170 queries, swapping 272 URLs each way.+ - The URLs it brings in grade only 0.2 higher on average (3.81 against 3.59).+ - The hosts on both sides are the same: Wikipedia, the Guardian, the BBC, YouTube.+- **The weak results are mostly on known hosts.**+ - 65% of the weak results in `ndcg+new`'s top ten are on curated or SERP-listed hosts,+ against 75% of the good ones.+ - What remains is a relevance problem (off-topic pages on good sites), not spam, and+ MiniLM addresses it. The spam these features fixed at write time (#463) mostly never+ reaches this top ten.+- **A likely reason for the cross-validation gain:** the pools are graded with Google SERP+ presence, and the extension rows' labels are Google SERPs. A host's SERP count mostly+ says "Google likes this host", which the training labels reward more than fresh+ retrieval does. This is plausible but untested.++### Common Crawl ranks and a stricter target encoding++The crawl inlinks come from a small, skewed local crawl: 458k pages from about 9.5k source+hosts, counted without weighting. So a second run swaps in Common Crawl's Jul–Sep 2026 web+graph (`cc-main-2026-jul-aug-sep`, 246M hosts and 2.7B edges).++- **`cc`:** harmonic centrality and PageRank positions, host and domain level. Each graph is+ cut to its top 5M by either measure, and anything below that is missing. 96% of the+ serving pool's index hosts are ranked, and 98% of their domains.+- **`te-ethos`:** the registered domain's mean `ethos` alone, smoothed with a prior of 20+ rows, cross-fitted as before.++Cross-validation (Δ against each table's base):++| Arm | Serving pool Δ | Original pool Δ |+|---|---|---|+| raw | +0.0066 [+0.0037, +0.0094] | +0.0061 [+0.0028, +0.0094] |+| cc | +0.0043 [+0.0017, +0.0069] | +0.0048 [+0.0019, +0.0079] |+| raw+cc | +0.0057 [+0.0029, +0.0086] | +0.0070 [+0.0038, +0.0105] |+| te-ethos | +0.0068 [+0.0039, +0.0095] | +0.0030 [+0.0002, +0.0057] |++| Arm (424 queries) | Serving pool Δ | Original pool Δ |+|---|---|---|+| both | +0.0058 [+0.0011, +0.0104] | +0.0070 [+0.0012, +0.0125] |+| both+raw | +0.0090 [+0.0035, +0.0145] | +0.0109 [+0.0051, +0.0169] |+| both+cc | +0.0079 [+0.0026, +0.0133] | +0.0095 [+0.0036, +0.0153] |+| both+raw+cc | +0.0110 [+0.0060, +0.0167] | +0.0129 [+0.0071, +0.0191] |+| both+te-ethos | +0.0087 [+0.0041, +0.0137] | +0.0094 [+0.0042, +0.0152] |++End to end on en-gb (`engb_domain_eval.py --cc`). Haiku graded 130 new URLs, with 162+anchors (overall drift +0.23: +0.14 and +0.68 for the two judges).++| Arm | NDCG@10 | vs ndcg+new | vs ndcg+new+both | Weak (≤ 3) in top 10 |+|---|---|---|---|---|+| shipped | 0.792 | −0.013 [−0.018, −0.008] | −0.017 [−0.024, −0.011] | 21.0% |+| ndcg+new | 0.805 | — | −0.005 [−0.010, +0.001] | 20.1% |+| ndcg+new+raw | 0.806 | +0.002 [−0.003, +0.006] | −0.003 [−0.009, +0.003] | 19.2% |+| ndcg+new+cc | 0.809 | +0.005 [+0.000, +0.009] | −0.000 [−0.006, +0.005] | 19.3% |+| ndcg+new+raw+cc | 0.807 | +0.002 [−0.003, +0.006] | −0.003 [−0.009, +0.003] | 19.4% |+| ndcg+new+te-ethos | 0.808 | +0.003 [−0.000, +0.007] | −0.001 [−0.007, +0.005] | 19.7% |+| ndcg+new+both | 0.810 | +0.005 [−0.000, +0.010] | — | 18.7% |+| **ndcg+new+both+raw+cc** | **0.813** | **+0.008 [+0.003, +0.014]** | **+0.004 [−0.001, +0.009]** | **18.3%** |+| brave | 0.889 | +0.084 | +0.079 | 9.8% |++- **Common Crawl is the one domain signal whose cross-validation gain survives en-gb:**+ +0.005, as MiniLM's does.+- **The SERP features still don't survive on their own.** `raw` gains +0.002. With `cc`+ they add nothing alone, but beside `both` they help.+- **`both+raw+cc` is the best arm in both evaluations.** Its gain over `both` is borderline+ on en-gb (+0.004, CI touching zero) and +0.011 in cross-validation.+- **Robustness:** removing each judge's mean anchor drift from its new judgments leaves+ `both+raw+cc` at +0.008 [+0.003, +0.014] over `ndcg+new` and +0.004 [−0.001, +0.008]+ over `both`. `cc` stays at +0.004 [−0.000, +0.008].+- **Serving `cc`** needs a lookup table: about 8M hosts and 8M domains, which could be cut+ much further, since hosts past the top million or so rarely reach a top ten.+- **Serving `raw`** needs the SERP table and the curated list. The SERP table is a snapshot+ of extension scrapes, so it goes stale, and it covers only the 43.6k hosts seen.++To reproduce:++```sh+# Common Crawl ranks, top 5M by either measure (about 7 GB streamed)+B=https://data.commoncrawl.org/projects/hyperlinkgraph/cc-main-2026-jul-aug-sep+for l in domain host; do+ curl -sS $B/$l/cc-main-2026-jul-aug-sep-$l-ranks.txt.gz | zcat \+ | awk -F'\t' 'NR>1 && ($1<=5000000 || $3<=5000000) {print $1"\t"$2"\t"$3"\t"$4"\t"$5}' \+ > devdata/combined_ltr_labels/cc_${l}_ranks.tsv+done+PYTHONPATH=. uv run python scripts/combined_ltr_labels/domain_features.py # crawl host table+PYTHONPATH=. uv run python scripts/combined_ltr_labels/domain_experiment.py [--minilm]+PYTHONPATH=. uv run python scripts/combined_ltr_labels/engb_domain_eval.py report [--cc]+```++`serp_domains.json` and `curated_domains.json` come from `crawl_model.py serp` on the+crawl-page-model branch. They, and the raw crawl, live in `devdata/index_write_order/`+and are not committed.++## MiniLM on the top K only: a cascade (5 folds over the 424 judge-eval queries)++The judge costs about 17 ms a candidate on one thread. That is 2.5 s for all ~150 candidates+of a query, 0.35 s for the LTR's top 20 and 0.52 s for its top 30, against 5 ms for the+shipped ranking. `minilm_cascade_experiment.py` tests a two-stage ranker:++1. `ndcg+new` without MiniLM ranks every candidate.+2. The judge scores that ranking's top K, and a model with `both` as a feature re-orders+ them. Everything below K keeps its stage-1 order.++This isn't the MiniLM re-rank of `combined-search-haiku-eval.md`, which ordered the top K by+the judge's score alone and lost. Here the judge is one feature beside the others.++- **`masked`:** stage 2 is trained with the judge's score present only on its training rows'+ stage-1 top K, as serving would give it. Those rows' stage-1 ranking is out of fold.+- **`full`:** the model trained with the judge on every candidate re-orders the top K.++The setting is `all`, and `base` and `all candidates` reproduce `all/base` and `all/both`.++| Arm | Serving pool NDCG@10 | vs base | vs all candidates | Original pool NDCG@10 | vs base |+|---|---|---|---|---|---|+| base | 0.8763 | — | −0.0058 | 0.8246 | — |+| all candidates | 0.8821 | +0.0058 [+0.0012, +0.0106] | — | 0.8316 | +0.0070 |+| top 10, masked | 0.8799 | +0.0036 [+0.0008, +0.0065] | −0.0022 [−0.0065, +0.0020] | 0.8276 | +0.0030 |+| top 10, full | 0.8805 | +0.0042 | −0.0016 | 0.8292 | +0.0046 |+| top 20, masked | 0.8840 | +0.0076 [+0.0032, +0.0123] | +0.0019 [−0.0012, +0.0049] | 0.8310 | +0.0064 |+| top 20, full | 0.8828 | +0.0064 | +0.0007 | 0.8310 | +0.0064 |+| top 30, masked | 0.8847 | +0.0084 [+0.0038, +0.0129] | +0.0026 [−0.0001, +0.0055] | 0.8334 | +0.0088 |+| top 30, full | 0.8830 | +0.0067 | +0.0009 [+0.0000, +0.0019] | 0.8321 | +0.0074 |++- **Scoring the top 20 or 30 keeps the whole gain.** Every top-20 and top-30 arm is at least+ level with scoring every candidate, and `top 30, masked` is the best arm on both pools.+- **The top 10 keeps about two thirds of it,** at 160 ms.+- **Training on the cascade's own view (`masked`) is as good as reusing the full model or+ better.** Its lead over `all candidates` isn't significant. A plausible reason is that+ stage 1 has already dropped the weak index pages the judge can over-promote.+- **Not yet measured:** the cascade end to end on en-gb.++## The cascade end to end on en-gb, and Staan-first (289 queries, 2026-09-29)++`engb_cascade_eval.py` trains `ndcg+new` and the top-20 cascade (`masked`) on all 849+queries plus the serving-pool labels, each also with Staan-monotone constraints, and ranks+one fresh retrieval. Two arms put Staan's results first in Staan's order and fill the+remaining slots from our candidates: by the cascade's order, or by the judge alone over+`ndcg+new`'s top 30. The `earlier:` arms are the lists of `combined-search-haiku-eval.md`'s+retrieval, scored against the same judgments. Haiku graded 37 new URLs, with 62 anchors+(overall drift −0.11).++**A bug in the earlier en-gb runs.** `engb_eval.staan_documents` took Staan's ranks from+`rows-0.05.json`'s `staan_urls`, which holds Staan's URLs sorted alphabetically. So every en-gb+run above gave the models scrambled Staan ranks: the right results were Staan's, but in the+wrong order. It now reads `lists["staan"]`, Staan's real order. The fix barely moves+`ndcg+new` (0.810 here against 0.807–0.809), so the conclusions above stand.++| Arm | NDCG@10 | vs ndcg+new | vs Staan-first, fill MiniLM | Weak (≤ 3) in top 10 |+|---|---|---|---|---|+| shipped | 0.795 | −0.015 | −0.037 | 21.0% |+| ndcg+new | 0.810 | — | −0.023 | 19.5% |+| ndcg+new, Staan-monotone | 0.809 | −0.001 [−0.004, +0.002] | −0.023 | 19.5% |+| cascade top 20 | 0.816 | +0.006 [+0.001, +0.011] | −0.017 | 18.6% |+| cascade top 20, Staan-monotone | 0.815 | +0.005 [+0.000, +0.010] | −0.018 | 18.8% |+| Staan-first, fill cascade top 20 | 0.829 | +0.020 | −0.003 [−0.005, −0.001] | 16.1% |+| **Staan-first, fill MiniLM(ndcg+new top 30)** | **0.833** | **+0.023 [+0.015, +0.030]** | — | **15.5%** |+| earlier: Staan | 0.794 | −0.016 | −0.039 | 11.2% |+| earlier: Staan-first + fill (shipped) | 0.824 | +0.014 | −0.009 | 17.2% |+| earlier: Staan-first, fill MiniLM(LTR top 30 + Wikipedia) | 0.835 | +0.026 | +0.003 [+0.001, +0.005] | 16.3% |+| brave | 0.889 | +0.079 | +0.056 | 9.8% |++- **The cascade's gain carries over:** +0.006 over `ndcg+new`, the same as cross-validation.+- **Staan-first still beats every learned ordering,** by 0.013–0.017 over the cascade. The+ LTR still lets index pages displace Staan's, even with exact Staan ranks.+- **Filling after Staan, the judge alone beats the cascade** by a small but significant 0.003.+ The fill slots hold our own candidates, mostly index pages, and there the judge orders+ better than the LTR with the judge as a feature.+- **Wikipedia adds a little:** the earlier arm with it is 0.003 above the same fill without it.+ It also ran on a different retrieval, with the shipped LTR's top 30.+- **Staan-monotone constraints do nothing,** here as in cross-validation+ (`minilm_cascade_experiment.py staan-rank|staan`: every arm within ±0.003, and the share of+ the top ten's Staan pairs out of Staan's order stays about 32%).++## Why the LTR couldn't beat Staan-first: MMR (2026-09-29)++Every learned ordering above loses to Staan-first on en-gb. Yet in cross-validation on the+training labels, `ndcg+new` beats Staan-first by 0.008 [+0.004, +0.012], and still does with+near-duplicate queries kept in one fold. So the model can learn Staan's value. Something+between the model and the served list undoes it.++**It is mostly MMR.** Combined Search wraps the LTR in `MMRRanker` (`search_setup.py`).+Cross-validation never applies it, and Staan-first bypasses it.++- MMR's kernel is domain-dominant. A second page from a domain already shown loses+ 0.3 × 0.8 = 0.24 of rank-relevance, about 17 places.+- Staan often returns several good pages from one site, such as the Guildford M&S stores.+- On en-gb, 42% of the Staan results that repeat a domain earlier in Staan's list are+ displaced from `ndcg+new`'s top ten (107 of 256), against about 4% of first-of-domain+ ones. The displaced repeats grade 6.2 on average.+- In cross-validation, `mmr_rerank` on the held-out rankings costs 0.023 NDCG@10 on the+ training labels, from 0.879 to 0.856. That puts the LTR 0.016 below Staan-first, which is+ the en-gb picture reproduced from the training data alone.++End to end on en-gb (289 queries, one fresh retrieval; Haiku graded 50 new URLs with 84+anchors, overall drift +0.24):++| Arm | NDCG@10 | vs ndcg+new | vs Staan-first, fill ndcg+new | Weak (≤ 3) in top 10 |+|---|---|---|---|---|+| shipped | 0.795 | −0.013 [−0.019, −0.008] | −0.031 | 20.9% |+| shipped, no MMR | 0.813 | +0.005 [−0.001, +0.011] | −0.013 | 18.3% |+| ndcg+new | 0.808 | — | −0.018 [−0.025, −0.011] | 19.7% |+| ndcg+new, no MMR | 0.826 | +0.018 [+0.014, +0.023] | +0.000 [−0.006, +0.007] | 17.4% |+| ndcg+new (en-gb Staan) | 0.815 | +0.006 [+0.002, +0.010] | −0.012 | 19.4% |+| **ndcg+new (en-gb Staan), no MMR** | **0.830** | **+0.022 [+0.016, +0.028]** | **+0.004 [−0.001, +0.010]** | **17.4%** |+| Staan-first, fill ndcg+new | 0.826 | +0.018 | — | 16.6% |+| Staan-first, fill ndcg+new, no MMR | 0.830 | +0.022 | +0.004 [+0.002, +0.006] | 16.1% |+| brave | 0.888 | +0.080 | +0.062 | 9.8% |++- **Without MMR the learned ordering matches Staan-first.** `ndcg+new` gains 0.018 and ties+ it. The shipped model gains the same 0.018.+- **Training on en-gb Staan adds a little:** +0.006 with MMR and +0.004 without. The best+ learned arm, 0.830, is level with the best Staan-first fill.+- **The MiniLM and Common Crawl gains above were all measured under MMR.** They should be+ re-checked without it, where the headroom is different.+- **NDCG can't see what MMR is for.** Each page is graded alone, so a list of five pages+ from one site isn't penalised as redundant. Removing MMR outright may cost diversity that+ these labels don't measure. A lighter kernel, or exempting Staan's own repeats, would keep+ some of it. Either needs a list-level judgment to evaluate.++### What didn't explain it++- **Staan's market.** The training data's Staan results were fetched at the `en-us`+ default: 6.8% `.uk` hosts, against 30% for en-gb Staan, with US pages in their tail. But+ refetching the 849 queries at `en-gb` (`engb_staan.py`: 7,604 results, 26% `.uk`, 44%+ overlap with en-us) and judging the 3,676 new pairs with the Pass-3 prompt left Staan's+ grade unchanged: 6.31 against 6.30, weak 16.6% against 17.2%.+- **The judging prompt.** `judge_shift.py` re-graded 740 training pairs with the en-gb+ prompt (UK searcher, no intent). Index pages moved +0.24 [−0.13, +0.58] relative to+ Staan's, the opposite of what would explain the gap.++To reproduce:++```sh+set -a; source .env; set +a # STAAN_SEARCH_API_KEY; about 849 Staan calls+PYTHONPATH=. uv run python scripts/combined_ltr_labels/engb_staan.py collect # en-gb settings, own cache+PYTHONPATH=. uv run python scripts/combined_ltr_labels/engb_staan.py batches # then Haiku judges -> consolidate+PYTHONPATH=. uv run python scripts/combined_ltr_labels/judge_shift.py batches # then Haiku judges -> report+PYTHONPATH=. uv run python scripts/combined_ltr_labels/engb_staan_experiment.py cv+PYTHONPATH=. uv run python scripts/combined_ltr_labels/engb_staan_experiment.py rank # then batches / consolidate / report+```++## Interleaving index results into Staan's order (2026-09-29, cross-validation only)++Staan-first wins the holistic comparison against every learned ordering, so these arms keep+its property: Staan's results always appear in Staan's order, and the index's in the model's+order. They differ only in where index results are let in (`interleave_experiment.py`).++- `merge-rest d`: the next index result goes in when it outscores every Staan result still+ to come by more than d. A plain two-list merge against the next Staan result only, fixed+ slots, protecting Staan's top k and capping insertions all did no better.+- `pair t`: a classifier on (index result, Staan result) pairs, the two feature rows side+ by side, trained on the serving pool with grade-gap weights. The next index result goes in+ when it beats the next Staan result with probability above t.+- `oracle merge`: the order-preserving merge that maximises DCG on the true grades.++Every parameter is picked by nested cross-validation on the other four folds.++**Without MiniLM** (5 folds over the 848 en-gb serving-pool queries, `ndcg+new` trained on+en-gb Staan):++| Arm | NDCG@10 | vs Staan-first, 95% CI | Index results in top 10 |+|---|---|---|---|+| Staan-first | 0.8718 | — | 0.92 |+| **merge-rest (tuned: 0.5)** | **0.8733** | **+0.0016 [+0.0006, +0.0026]** | 1.01 |+| merge (tuned) | 0.8725 | +0.0007 [−0.0005, +0.0019] | ~1.1 |+| slot (tuned: 10) | 0.8669 | −0.0049 [−0.0063, −0.0035] | 1.30 |+| DCG-optimal merge on a regression model's grades (tuned) | 0.8705 | −0.0013 [−0.0033, +0.0006] | ~1.0 |+| learned (reorders Staan) | 0.8789 | +0.0071 [+0.0040, +0.0104] | 1.38 |+| oracle merge | 0.9483 | +0.0765 [+0.0704, +0.0826] | 2.91 |++**With MiniLM** (5 folds over the 424 queries no judge saw, as `minilm_experiment.py`;+`minilm-both-v1` as an `ndcg+new` feature, and in the pair classifier). Staan-first scores+0.8771 here.++| Arm (tuned) | clean | all |+|---|---|---|+| merge-rest, no MiniLM | +0.0003 | +0.0014 |+| pair, no MiniLM | +0.0007 | +0.0000 |+| **merge-rest, MiniLM feature** | +0.0036 [+0.0007, +0.0065] | **+0.0046 [+0.0016, +0.0079]** |+| pair, MiniLM feature | +0.0035 [+0.0011, +0.0061] | +0.0045 [+0.0018, +0.0070] |+| merge on the MiniLM score alone | — | +0.0009 [−0.0011, +0.0032] |+| learned (reorders Staan) | +0.0065 | +0.0135 [+0.0080, +0.0185] |+| oracle merge | +0.071 | +0.071 |++- **The headroom is large, but the model can't reach it.** The oracle merge gains +0.071 to+ +0.077: +0.017 from ordering the fill, the rest from placing index results among Staan's.+ The best index result in a query's pool grades 6.3 on average, above Staan's #10 (5.85),+ but the model's top index pick grades 4.9.+- **Loose merges lose.** Any setting that lets in more than about 0.1 extra index results a+ query brings in weak pages. Staan returns fewer than ten results for 56% of queries, so+ the fill already adds 0.9 index results a query.+- **MiniLM as a feature is what helps.** It roughly triples the interleaving gain. Half of+ its gain is the fill order: Staan-first filled by the MiniLM model gets +0.0026 [+0.0003,+ +0.0048]. The insertions add +0.0028 [+0.0009, +0.0048] on top (merge-rest 0.25, untuned).+- **The pair classifier learns nothing the ranking model didn't.** It tunes to p > 0.9,+ where it inserts 0.12 extra index results a query, grading 6.5, about Staan's tail. The+ next section finds that this was the classifier's design, not a limit of pair models.+- **The `all` setting beats `clean` everywhere,** so the judge's in-sample scores on its+ training queries don't mislead these models.+- These gains, +0.005 at best, are too small for the holistic judge to see without many+ queries. At serving, the judge would only need Staan's ~10 results and the index's top few.++To reproduce (`minilm-engb` adds the 3,676 en-gb Staan pairs to `minilm_scores.json`):++```sh+PYTHONPATH=. uv run python scripts/combined_ltr_labels/interleave_experiment.py oof # then report+PYTHONPATH=. uv run python scripts/combined_ltr_labels/interleave_experiment.py minilm-engb+PYTHONPATH=. uv run python scripts/combined_ltr_labels/interleave_experiment.py judge-oof # then judge-report+```++## A better pair classifier (2026-09-29, cross-validation only, no MiniLM)++The pair classifier above did no better than the ranking model because of how it was built,+not because pairs carry no extra signal (`pair_experiment.py`, the same 5 folds over the 848+en-gb serving-pool queries).++- `concat` is the classifier above: the two feature rows side by side, every pair, 100+ rounds at depth 6 and eta 0.3.+- `diff` adds their difference, both ranking-model scores, the index result's rank by that+ score, how far it trails the model's best Staan score, and the query's Staan and index+ counts. The ranking scores on the training queries are out of fold too. 300 rounds at+ depth 4 and eta 0.1.+- `top` is `diff` trained only on pairs whose index result is in the model's top three.++**Held-out pairwise AUC** on untied pairs (weighted by the grade gap in brackets):++| Pairs | n | Index wins | Ranker score gap | concat | diff | top |+|---|---|---|---|---|---|---|+| all | 145,974 | 0.12 | 0.759 (0.813) | 0.740 (0.791) | **0.766 (0.820)** | 0.739 (0.787) |+| index top 3 | 17,434 | 0.25 | 0.733 (0.788) | 0.713 (0.763) | **0.749 (0.809)** | 0.737 (0.791) |+| index top 1 | 5,898 | 0.34 | 0.739 (0.794) | 0.731 (0.783) | **0.765 (0.825)** | 0.762 (0.818) |+| index top 1, Staan #6 on | 2,668 | 0.38 | 0.716 (0.768) | 0.712 (0.766) | **0.750 (0.811)** | 0.743 (0.798) |++- **`concat` was worse than the ranker's own score gap and overconfident.** Its p > 0.9+ pairs won 74% of the time, so tuning pushed its threshold up to where it barely inserts.+ `diff`'s p > 0.9 pairs win 92%; it is calibrated within about 0.1 in every bin.+- **`diff` beats the ranker on exactly the pairs a merge decides:** +0.026 AUC for the+ model's top index result, +0.034 against Staan's tail.+- **Training only on the top three (`top`) doesn't help;** the extra pairs are useful data.++**NDCG@10** (thresholds tuned by nested cross-validation). `pair` inserts the next index+result when it beats the next Staan result with probability above the threshold;+`by win rate` orders the index results by their mean probability of beating each of the+query's Staan results, instead of by the ranking score.++| Arm | NDCG@10 | vs Staan-first, 95% CI |+|---|---|---|+| Staan-first | 0.8718 | — |+| merge-rest (tuned), the best arm above | 0.8733 | +0.0016 [+0.0006, +0.0026] |+| pair concat (tuned) | 0.8718 | +0.0000 [−0.0011, +0.0012] |+| Staan-first, fill by `diff` win rate | 0.8736 | +0.0018 [+0.0007, +0.0030] |+| pair diff (tuned: 0.8) | 0.8743 | +0.0025 [+0.0011, +0.0041] |+| pair top (tuned: 0.8) | 0.8747 | +0.0029 [+0.0017, +0.0043] |+| pair diff, by win rate (tuned: 0.8) | 0.8754 | +0.0036 [+0.0013, +0.0058] |+| **pair top, by win rate (tuned: 0.8)** | **0.8755** | **+0.0038 [+0.0016, +0.0061]** |+| oracle merge | 0.9483 | +0.0765 [+0.0704, +0.0826] |++- **A better pair model more than doubles the best order-preserving gain without MiniLM,**+ from +0.0016 to +0.0038. About half of it is choosing and ordering the index results by+ win rate; the fill order alone gives +0.0018.+- **It is still a small fraction of the oracle's +0.077.** The ranker and the pair models+ order held-out pairs at similar AUCs (0.74–0.77), so better features, not a better merge+ rule, are what's left. Part of the oracle's headroom is likely grade noise: it picks the+ maximum of many noisily graded index results.+- **More pairs from outside the serving pool hurt.** `pool` trains `diff` on the whole+ LLM-labelled pool for the same queries: the same Staan results against about twice as+ many index results. Its AUC on the model's top index result falls to 0.729, below the+ ranker's 0.739, and its best arm gains only +0.0013 [+0.0003, +0.0024]. The extra index+ results are pages serving never retrieves, and its context features (the index result's+ rank and count) mean something different in the larger pool, so it learns the wrong+ distribution.+- **Not yet run with MiniLM.** `merge-rest` with MiniLM as a feature gained +0.0046 on the+ 424 judge-eval queries. The next step is `diff` with the MiniLM scores of both results as+ pair features, on those queries; `minilm_scores.json` wasn't available for this run.++To reproduce:++```sh+PYTHONPATH=. uv run python scripts/combined_ltr_labels/pair_experiment.py oof # then auc, report+```++## Caveats++- **The human gate hasn't run.** The curation export (`devdata/judgments_export/`) wasn't+ available, so no arm trains on curation, and the second retrain gate (pair accuracy on+ held-out human curation pairs) wasn't run. Run it before shipping.+- **Approximate Staan ranks.** Where another pool had already added a URL, its Staan rank+ in the LLM training rows is reconstructed, since `pass2_staan.jsonl` wasn't available+ (`objective_experiment.staan_ranks`). `pass2_staan.jsonl` has since turned up locally, so+ exact ranks are now available. The en-gb Staan ranks are exact from the cascade run+ on; the runs before it had them scrambled (see that section).+- **Tuning.** Every arm uses the shipped tree parameters. rank:ndcg wasn't tuned, and the+ extension rows' gold grade of 7 is a guess.+- **Judge offsets.** The serving-pool labels are corrected by each judge's shrunk mean+ anchor drift (`README.md` in `scripts/combined_ltr_labels/`).++## What shipping would take++1. **Training.** `mwmbl_rank` trains `binary:logistic` only. Either add the objective+ there, or train in Python and save a booster that the Rust side loads. A loaded+ booster's `predict` returns margins for a ranking objective.+2. **Serving.** Make the filter an explicit exclusion in `XGBPipeline::predict` /+ `LTRRanker.order_results`, or apply a sigmoid. Either way, a negative score must stop+ meaning "drop".+3. **Human gate.** Run the curation pair-accuracy gate with curation data included.+4. **MiniLM.** The best measured ordering is Staan-first, then our other candidates in the+ judge's order over `ndcg+new`'s top 30 (0.52 s on one thread). Without Staan first, a+ top-20 cascade keeps the whole gain of the judge as a feature at 0.35 s.++To reproduce:++```sh+PYTHONPATH=. uv run python scripts/combined_ltr_labels/objective_experiment.py+PYTHONPATH=. uv run python scripts/combined_ltr_labels/engb_eval.py report+PYTHONPATH=. uv run python scripts/combined_ltr_labels/engb_minilm_eval.py report+PYTHONPATH=. uv run python scripts/combined_ltr_labels/minilm_latency.py capture # then: time+```diff --git a/mwmbl/rankeval/combined-search-jev-eval.md b/mwmbl/rankeval/combined-search-jev-eval.mdnew file mode 100644index 0000000..e9341a5--- /dev/null+++ b/mwmbl/rankeval/combined-search-jev-eval.md@@ -0,0 +1,111 @@+# Combined Search: ranking with Jev (TypeSafe)++2026-09-30 · follows `combined-search-haiku-eval.md` (same directory) · the tables are printed+by `python -m mwmbl.rankeval.evaluation.jev_arms_report pointwise listwise`, from data+committed under `devdata/combined_providers_eval/`.++> **Where things are:** the scripts and data behind this write-up are on the archived+> branch `claude/blissful-maxwell-dq1ddl` (mwmbl/mwmbl#462), not in main. The ordering+> these experiments chose, Jev composite + Staan rank, is what Combined Search serves+> (`mwmbl/tinysearchengine/jev_rank.py`). To compare two rankings holistically, use+> `mwmbl/rankeval/evaluation/holistic_judge.py`; to build a Jev composite arm offline,+> `mwmbl/rankeval/evaluation/jev_order.py`.++**Question:** can Jev, TypeSafe's structured-judgment model, rank Combined Search's candidates+better than the current best arm (Staan first, remaining slots filled by MiniLM)?++> **Superseded in part (2026-09-30):** judged holistically against the stronger reference+> `staan-first, fill ndcg+new, no MMR`, the pure Jev re-rank below only ties it. Jev's score plus+> a small Staan-rank prior wins, +0.31 [+0.18, +0.44] on the −3..3 scale. See the Jev section of+> `combined-holistic-eval.md`.++## Summary++- **A pointwise Jev re-rank is the best arm we've had:** +0.039 UK relevance and +0.035+ pass-3 overall over the Staan-first MiniLM arm. That closes 60% of the gap to Brave:+ −0.025 [−0.041, −0.009], down from −0.064.+- **Letting Jev override Staan's order is what helps.** Using Jev only to fill the slots after+ Staan gains +0.009. That is the opposite of MiniLM, which lost whenever it overrode Staan.+- **Listwise (one Choice over all candidates) loses to pointwise.** It is level with the+ baseline as a re-rank, and slightly worse as the fill.+- **Cheap and fast:** 0.63 s p50 and 0.77 s p90 for one request per query (about 34+ candidates), roughly $0.0003 a query. That still sits after Staan on the critical path+ unless the index candidates are scored while Staan is in flight.++## Method++- **Queries and candidates:** the 295 en-gb queries of the Haiku eval. For each: Staan's top 10,+ the LTR's top 30 and the Wikipedia pool, with the same title/URL/snippet a judge sees+ (`engb/jev_candidates.json`, a median of 34 per query).+- **Jev (`jev-1.13.0`), one request per query** (`scripts/combined_search_haiku/jev_score.py`):+ - **pointwise:** the query and "a web searcher in the United Kingdom" as the state. One+ Score question per candidate, with the candidate in the question's instructions and the+ Haiku UK-relevance rubric as four levels. The candidate's score is the probability-weighted+ level.+ - **listwise:** every candidate in the state and one Choice, "which of `results` best+ satisfies `query`?". The candidate's score is its probability.+- **Arms:**+ - **fill:** Staan in Staan's order, then the LTR top 30 + Wikipedia sorted by Jev.+ - **re-rank:** Staan + LTR top 30 + Wikipedia, sorted by Jev alone.+- **Judging:** the existing Haiku UK-relevance and pass-3 judgments. The Jev arms put 388+ ungraded URLs into their top tens; these were graded in a new blind pass of Claude Haiku 4.5+ subagents (`make_batches_jev.py`, `consolidate_jev.py`) with 412 anchors mixed in.+- **The harness reproduces the published baseline:** running MiniLM through it as a pseudo-run+ (`--minilm`) gives 0.785 and 0.841, as in the previous report.++## Results++### Haiku UK relevance NDCG@10 (295 queries)++| Arm | Score | vs Staan-first MiniLM fill | vs Brave |+|---|---|---|---|+| combined (shipped) | 0.728 | −0.053 | −0.117 |+| staan | 0.742 | −0.038 | −0.102 |+| staan-first, fill MiniLM(LTR top 30 + Wikipedia) | 0.780 | — | −0.064 [−0.080, −0.049] |+| staan-first, fill Jev pointwise | 0.790 | +0.009 [+0.006, +0.013] | −0.055 |+| **Jev pointwise re-rank** | **0.820** | **+0.039 [+0.029, +0.051]** | **−0.025 [−0.041, −0.009]** |+| staan-first, fill Jev listwise | 0.774 | −0.007 [−0.010, −0.003] | −0.071 |+| Jev listwise re-rank | 0.786 | +0.005 [−0.003, +0.014] | −0.059 |+| brave | 0.844 | +0.064 | — |++### Haiku pass-3 overall NDCG@10 (289 queries)++| Arm | Score | vs Staan-first MiniLM fill | vs Brave |+|---|---|---|---|+| combined (shipped) | 0.793 | −0.040 | −0.093 |+| staan | 0.792 | −0.042 | −0.095 |+| staan-first, fill MiniLM(LTR top 30 + Wikipedia) | 0.834 | — | −0.053 |+| staan-first, fill Jev pointwise | 0.847 | +0.014 [+0.010, +0.017] | −0.039 |+| **Jev pointwise re-rank** | **0.869** | **+0.035 [+0.026, +0.045]** | **−0.018 [−0.030, −0.005]** |+| staan-first, fill Jev listwise | 0.832 | −0.001 | −0.054 |+| Jev listwise re-rank | 0.840 | +0.007 | −0.047 |+| brave | 0.887 | +0.053 | — |++The pointwise re-rank's top ten holds, on average, 7.4 Staan results, 1.9 index results and+0.7 Wikipedia pages.++## How far to trust it++- **Judge drift:** the new Haiku pass grades a little higher than the original on the+ anchors. UK relevance was re-graded identically for 60% of them (mean +0.11); pass-3 overall+ shifted by a mean of +0.45. The newly graded URLs are mostly the Jev arms', so this favours+ Jev. Two checks show the win isn't from drift:+ - **Discounting the new grades:** with every newly graded URL's relevance lowered by the+ anchor shift (0.11), the pointwise re-rank's lead is +0.035. Lowered by a full grade+ (1.0), it is still +0.011.+ - **Original grades only:** on the 93 queries fully covered by the original grades, before+ the new pass, the lead was +0.039 [+0.025, +0.052].+- **Same rubric:** Jev was given the judge's own rubric, so part of the gain may be agreeing+ with Haiku rather than with searchers. Gold NDCG (Google agreement) is the independent check+ not yet run.+- **Found on the eval set:** one prompt design was tried per variant, with no tuning, but the+ result should be confirmed on fresh queries before shipping.++## Next steps++1. **Confirm on fresh queries**, and add gold NDCG for the Jev arms.+2. **Try composite questions:** separate Nouls for authority and for "is this the entity the+ query names" (Staan's two weak spots), combined with relevance in code, plus an ethos+ question.+3. **Latency:** score the index and Wikipedia candidates while Staan is in flight, then Staan's+ ten in a second, smaller request. Or feed Jev's score to the LTR as a feature.