STAYCHARTED GUIDES · SEARCH RELEVANCE · TRAINING DATA
How to write search relevance judgment guidelines your raters agree on
How to write relevance labeling guidelines your raters apply the same way: grading scales, examples per grade, edge cases and checking agreement.
Why guidelines decide your relevance scores
A relevance judgment labels how well one result answers one query. If two raters interpret the same query differently, your evaluation mixes disagreement with search errors. A model trained on those labels learns that inconsistency too.
Write the rules before you label a large batch. Define whose intent you are judging, which product attributes matter, and what information a rater may use. Keep the query, product title and description together so every rater sees the same evidence.
Choose a relevance grading scale
| Scale | Labels | Use it when |
|---|---|---|
| Binary | Relevant, irrelevant | You need a simple pass/fail check and can define what counts as relevant |
| Three-point | Relevant, partly relevant, irrelevant | Partial matches matter, but you do not need separate accessory and substitute labels |
| ESCI | Exact, Substitute, Complement, Irrelevant | Product search needs to distinguish replacements from things used alongside the requested item |
Amazon's ESCI definitions distinguish an item meeting the query's requirements (Exact), a usable replacement that misses some requirements (Substitute), an item used with the requested product (Complement), and an unrelated or critically mismatched item (Irrelevant). See the original paper.
An accessory is not simply a weaker substitute. Decide how each grade affects your evaluation or ranking; do not assume the four labels are equally spaced numerical scores. Amazon's dataset repository carries an Apache 2.0 license, checked on 28 November 2026. You can use the grading idea with your own catalog judgments without importing the dataset.
Write one example per grade, per product type
Start with clear cases, then add boundary cases your raters disagree on. The examples below use the query ‘stainless steel kettle 1.7 litre’.
| Grade | Result | Reason to record |
|---|---|---|
| Exact | Stainless steel kettle, 1.7 litre | Matches the stated product and attributes |
| Substitute | Stainless steel kettle, 1.5 litre | Serves the same purpose but misses the requested capacity; this example policy permits that substitution |
| Complement | Descaling solution suitable for kettles | Used with a kettle, but is not a kettle |
| Irrelevant | Stainless steel kitchen bin | Shares material words but does not meet the product intent |
Repeat this for the product types you sell. A capacity difference may be acceptable for a kettle but not for a fitted component. Record critical constraints explicitly rather than expecting raters to infer them. Do not copy a permissive rule from one category into a safety-critical compatibility decision.
Set rules for edge cases before they fill the queue
| Edge case | Rule to settle |
|---|---|
| Brand named in the query | Must the brand match, or can another brand be a Substitute? |
| Accessories | A charger is a Complement for a device query, but may be Exact for a compatible charger query |
| Out-of-stock items | Keep semantic relevance and availability separate unless the task explicitly combines them |
| Misspellings | Normalize an obvious typo; escalate ambiguous intent instead of guessing |
| Missing size or compatibility data | Record insufficient evidence for review; do not invent a match |
| Multiple possible intents | Define how raters choose an interpretation or mark the pair for adjudication |
The grading guide should say who resolves ambiguity. Preserve the original query, the evidence available at judgment time and a short reason for difficult decisions.
A search relevance labeling template to copy
| Field | What your team writes |
|---|---|
| Task and scope | Grade query-product pairs for the named catalog, market and language |
| Allowed evidence | Query, title, description and specified attributes; state whether photos are included |
| Grading scale | Names and definitions of every grade |
| Critical constraints | Attributes that must match: compatibility, size, dietary restriction or other requirements |
| Boundary examples | One clear and one disputed example per grade for each important product type |
| Edge-case rules | Brand, accessories, availability, typos and missing information |
| Escalation | Who resolves unclear cases and how the decision is recorded |
| Version | Guideline version, owner and date |
Keep a judgment sheet with query, product ID, product title, product description, grade, rater, reason and guideline version. IDs, rater names and reasons help auditing; do not use them as model inputs if they would not be available for new pairs.
Check whether two raters agree
Have two raters independently grade the same 100 query-product pairs before dividing up the full workload. Include common queries and difficult edge cases, and keep the first ratings separate.
Count exact agreements and divide by 100. If they agree on 84 pairs, raw agreement is 84%. That describes agreement between these raters on this sample; it is not model accuracy or a universal acceptance target.
Review disagreements by grade pair. If most are Substitute versus Complement, revise those definitions and add examples. Have a designated owner adjudicate the disputed pairs, then test the revised guide on a fresh sample. A high overall agreement can hide poor agreement on a rare but important grade, so check each one.
Turn your relevance judgments into a model
Once the guide is stable, StayCharted AI Model Trainer can learn from your reviewed query-product pairs. Use the query and relevant product text as inputs and the agreed grade as the answer. Preserve the same input format when grading new pairs.
Evaluate on queries absent from training, rather than only new rows containing familiar queries. Similar products and repeated query text can otherwise make a test look easier than real work. Read the search relevance benchmark for the difference observed between random-row and unseen-query evaluation.
The model returns a grade and confidence. On Essentials and Business, answers below your cutoff wait in the Review Queue. Raters correct them; a person starts retraining, checks the report, and a Builder publishes the next version. See review and retraining.
The classifier supplies judgments; your search engine remains responsible for retrieval and ranking. Use the grades to evaluate changes or feed your search team's workflow. The machine-learning search relevance guide compares the available approaches.
Common questions
How many relevance judgments do I need?
There is no universal number. Start with 100 pairs rated independently by two people to test the guidelines, then build a training set covering every grade, important product type and difficult query. Keep a separate test set of unseen queries. Add examples where that test reveals gaps; a large set of repeated easy queries is not a substitute for coverage.
What is ESCI?
ESCI means Exact, Substitute, Complement and Irrelevant. Amazon uses these labels in its public Shopping Queries Dataset to describe the relationship between a query and a product. They distinguish an exact match, a usable replacement, a related accessory or companion, and an unsuitable result.
Can an LLM write relevance judgments?
An LLM can propose initial grades using your guidelines. Check those grades against human judgments, especially critical constraints and ambiguous queries, before treating them as training or evaluation labels. Keep a human-reviewed test set separate from the labels you generate.