An open source, non-profit web search engine
Combined Search Haiku judging pipeline
One-off scripts behind mwmbl/rankeval/combined-search-haiku-eval.md. They are kept for
provenance, not polished: the results are reproduced from the committed data by
python -m mwmbl.rankeval.evaluation.haiku_arms_report, which needs none of this.
Scratch files (batches, manifests, raw judge outputs) go in $HAIKU_WORK_DIR, by default
devdata/combined_providers_eval/haiku_work/ (gitignored). The consolidated judgments are
in devdata/combined_providers_eval/haiku/.
en-us pass (relevance only, no locale)
build_pool.py OUT.json: title and extract for every URL in the arms ofrows-0.05.json, from the Staan external cache and the Brave joblib cache. Run withSTAAN_SEARCH_API_KEYunset, so a cache miss can never become a paid call.make_batches.py: 15 blind, shuffled batches. The judges were Claude Haiku 4.5 subagents. List-style output was misaligned for about a quarter of the queries, which were re-graded with keyed output ({"qid": n, "grades": {"0": g, ...}}).
en-gb run (both engines asked for UK results)
settings_engb.py+run_engb.py: the combined-providers eval with Staanmarket=en-gband Bravecountry=GB&search_lang=en. The external cache is keyed by query alone, so Staan gets a cache file of its own; Brave gets a joblib cache of its own for the same reason. It also records each arm's text intoengb/pool_text.json.set -a && source .env && set +a PYTHONPATH=scripts/combined_search_haiku:. DJANGO_SETTINGS_MODULE=settings_engb \ DATABASE_URL="postgres://daoud@" .venv/bin/python scripts/combined_search_haiku/run_engb.py --fraction 0.05The Brave key ran out of quota (HTTP 402) on the last 3 of 298 queries, so the rows are the 295 with a Brave result.
make_batches_uk.py: UK-relevance batches (keyed output).wiki_pool.pyanddeep_pool.py(same settings as above): Wikipedia candidates and the combined LTR ranking to depth 30, both with MiniLM scores.deep_pool.pyalso times the LTR and MiniLM stages.deep_eval.py dump N: batches for URLs any re-ranking arm puts in its top ten that are not yet graded.make_batches_p3.py: every graded URL again, with Mwmbl's pass-3 prompt (scripts/llm_relabel_pass3_judge.py), one line per candidate,id || rel || ethos || overall.
filter_count.py measures how many retrieved candidates the LTR's majority-terms filter
drops.
Filling Staan's gaps: page 2 and Wikidata
Behind mwmbl/rankeval/combined-search-wikidata-fill.md, reproduced by
python -m mwmbl.rankeval.evaluation.wikidata_fill_report.
staan_page2.py: Staan pages 1 and 2 for 20 short en-gb queries (40 paid calls) intoengb/staan_page2_sample.json.wikidata_pool.py:wbsearchentities+wbgetentitiesfor every en-gb query intoengb/wikidata_raw.json. Serial on purpose: Wikidata answers parallel clients with 429s.wikidata_arms.py: the Wikidata arms' URLs no earlier judgment covers, plus graded anchors, intoengb/wikidata_to_judge.json.make_batches_wikidata.py: UK-relevance and pass-3 batches (3 of each), judged by Claude Haiku 4.5 subagents.consolidate_wikidata.py: the judge output intohaiku/relevance_engb_wikidata.jsonlandhaiku/pass3_engb_wikidata.jsonl.
Where the index loses Brave's good results
Behind mwmbl/rankeval/combined-search-miss-attribution.md, reproduced by
python -m mwmbl.rankeval.evaluation.miss_attribution_report.
miss_probe.py: for every graded Brave URL of the en-gb rows, reads the index pages it would be filed under (its title, snippet and URL terms) and the query's candidate set and LTR scores, throughRemoteIndex(~54k terms, cached), intoengb/miss_probe.json.DJANGO_SETTINGS_MODULE=mwmbl.settings_dev DATABASE_URL="postgres://daoud@" PYTHONPATH=. \ uv run python scripts/combined_search_haiku/miss_probe.pymake_batches_miss.py: UK-relevance batches of the index's stored text for the Brave URLs it holds, plus two anchors per query, judged by Claude Haiku 4.5 subagents.consolidate_miss.py: the judge output intohaiku/relevance_engb_indextext.jsonl.