No ranking change ships without a number
We build the evaluation harness your search team runs on every pull request: a golden query set from your catalog and logs, offline metrics, CI regression gates and a calibrated LLM judge.
What the harness includes
From labels to merge gates
- Golden query sets
- Typically 200 to 1,000 queries sampled from your search logs and written from your catalog, stratified by constraint type (size, price, material, use, capacity, negation, combinations), each with graded relevance labels.
- Offline metrics
- NDCG@10 and MRR for ranking quality, constraint pass rate (share of top-k results that satisfy every parsed constraint), zero-result rate on queries the catalog can answer, and first fitting position.
- CI regression gates
- The suite runs on every pull request that touches indexing, ranking or query parsing, posts the deltas as a check, and blocks the merge when a gated metric drops past the threshold you set.
- LLM-as-judge, calibrated
- An LLM labels new query and result pairs at scale; we measure its agreement with human raters on a held-out set and only trust it on the slices where agreement is high.
- Online measurement
- Team-draft interleaving for fast ranking comparisons, and A/B tests on conversion, revenue per search and add-to-cart rate for decisions that need business metrics.
CI gate
What a pull request check enforces
An example gate configuration. Thresholds are set with your team; we don’t show sample scores because they would not be measurements of your system.
| Metric | Rule |
|---|---|
| NDCG@10 | Fail if it drops more than your threshold against the main branch |
| Constraint pass rate | Fail if any constraint type regresses |
| Zero-result rate | Fail if answerable queries start returning nothing |
| Latency | Report p95 against the budget you set; gate if you choose |
Rate and plan
Search evaluation harness: $8,000–$18,000
2–4 weeks. Golden query sets (200–1,000 queries), an automated NDCG@10, MRR and constraint pass-rate suite in CI, LLM-as-judge calibrated against human labels, and A/B or interleaving setup.
- Weeks 1–2
- Sample and label the golden set from your logs and catalog; agree metrics and thresholds.
- Weeks 2–3
- Build the harness against your search API or index; baseline the current system.
- Weeks 3–4
- Wire it into CI, calibrate the LLM judge, set up interleaving or A/B, and hand over with documentation.
More for engineering teams
Evaluation questions
Why not just A/B test every change? A/B tests are slow and need traffic. An offline harness catches regressions in minutes on every pull request, so only changes that already pass offline reach an online test.
Does it work with a hosted search vendor? Yes. The harness calls whatever returns ranked results, whether that is Algolia, Constructor, Elasticsearch, OpenSearch, Vespa or your own service.
How does this relate to your store audits? Store audits follow our public test standard (v1.0). The harness applies the same judging rules at scale and runs them continuously.