Skip to main content
Join talent pool
TrebaLet’s talk

Send to a colleague

Article3 min read

Search Relevance Evaluation: Ratings, NDCG and Release Decisions

Outsourced search relevance guide: query sampling, rater calibration, NDCG, click bias, ranking evaluation and client deployment decisions.

Search Relevance Evaluation: Ratings, NDCG and Release Decisions

Relevance is defined by the search task. A product search may value exact availability and attributes; a support search may value the answer that solves the user’s problem.

Provide a query sample with intent, locale, catalogue snapshot and result set. Version rating rules, use independent judgments on ambiguous cases and retain adjudicated labels. Compare baseline and candidate rankings on the same held-out queries.

What Is Search Relevance Evaluation and Why Does It Matter?

Search relevance evaluation assigns graded judgments to query-result pairs under the client’s intended search task. Preserve query, locale, result and catalogue versions for later comparison.

Relevance can be disputed when intent or product attributes are unclear. Sample queries by frequency, value and difficulty; do not derive a fixed rating volume from index size.

Hypothetical product query: a customer asks for a black leather shoe in size 7. Availability and size may outrank brand popularity; the client’s rubric decides each graded judgment.

Types of Search Relevance Tasks

Tasks may include intent classification, graded result rating, pair comparison and failure analysis. Define the unit and output before pricing. See Search relevance evaluation.

A medical or other high-consequence search requires domain review and stricter data handling. Estimate effort from task difficulty rather than a generic cost tier.

Calibration and Quality Control in Search Relevance

Consistency in search relevance ratings is built on the same framework as NLP annotation: clear guidelines, calibration samples, inter-rater agreement, and spot audits.

Calibrate raters before production

Define graded labels for exact, useful but incomplete and irrelevant results, including availability and attribute rules. Use hypothetical examples only to calibrate, then test on real approved queries.

Calibrate independent raters across query intents and disputed results. Choose an agreement measure and acceptance range for the actual task and risk.

Sample ratings by intent, difficulty and rater during production. Recalibrate after query drift or rule changes.

Measuring Quality: NDCG, Precision, Correlation

Calculate NDCG at a stated result cutoff from graded judgments, and report precision or zero-result measures where the task needs them. Segment queries so one average does not hide failures.

Tools and Workflow for Search Relevance Evaluation

Use an interface that shows query, result, context and rubric without leaking restricted data. Preserve a versioned export for adjudication and metrics.

Typical Workflow

  1. Illustrative workflow only: export a permissioned query and result sample, capture catalogue and ranking versions, collect graded judgments, adjudicate disputes and calculate metrics at a specified cutoff. Batch size follows query diversity and risk.

Team Structure and Cost Model

Assign client search owner, rating lead, raters and adjudicator; scale roles from query diversity and review need.

From Ratings to Ranking: Closing the Loop

Ratings are evidence for ranking changes, not the change itself. The client search team analyses failures and owns experiments and deployment.

Step 1: Aggregate Ratings

For repeated ratings, inspect disagreement and adjudicate critical or ambiguous cases. A simple majority may conceal a misunderstood intent.

Step 2: Calculate NDCG and Identify Failures

NDCG@k compares discounted cumulative gain for the current ranking with the ideal ordering at the same cutoff k: NDCG@k = DCG@k / IDCG@k. State the relevance-gain mapping and rank discount used. Where IDCG is zero because no judged item is relevant, define and report the handling rule rather than dividing by zero; report judged-query coverage alongside the average.

Step 3: Feature Analysis

Compare features, availability and query intent for judged failures; ask a domain owner to decide whether the ranking rule or label guide should change.

Step 4: Re-Rank or Re-Train

The client may change ranking rules or train a learning-to-rank model after analysing errors. Validate the change offline and, where suitable, online; a ratings report does not itself improve ranking.

Related reading: data annotator responsibilities.

Sources checked 17 November 2026

NIST AI Risk Management Framework — Representative test sets, documented metrics and evaluation limits.

NIST Research Data Framework — Data fitness and quality depend on intended use.

ICO international transfers FAQs — Overseas access to personal search logs may be restricted.

scikit-learn: NDCG definition and cutoff

Key takeaways

1

Sample head, tail, zero-result and high-value queries, not only popular searches.

2

NDCG measures graded ranking against a judged ideal; pair it with task and segment measures.

3

Clicks and purchases are useful but biased by position and exposure.

Written by

Treba Research

Treba’s guides cover managing workflows in Kenya and hiring people for UK teams.

Questions

Frequently asked questions

What is NDCG, and when is it useful?

Normalised Discounted Cumulative Gain compares a ranked list with an ideal ordering based on graded relevance judgments, giving more weight to higher positions. State the cutoff and judging rules; use other metrics where availability, zero results or task completion matter.

How many query-result pairs should we rate?

There is no universal number. Sample by query frequency, intent, locale, difficult cases and important business outcomes, then estimate uncertainty and disagreement. Add cases until the held-out set can detect changes that matter for the decision.

Can clicks and purchases replace explicit ratings?

They provide useful behaviour signals but reflect position, exposure, presentation and stock availability. Use them alongside judged queries and a controlled online test rather than treating every click as relevance truth.

Nairobi balconies and green leaves beside an open blue sky
WORK WITH TREBA

Find the right support for your team.

Tell us the work your team needs help with.