← catalog / AI Map Reduce over Big Data / Search and retrieval
Score five retrieved passages against a query in one call, reorder them, and select only the ones worth putting in an LLM's context.
10 questions, declared once. Jev and Laya accept this shape directly; the Claude path renders it into a prompt and a JSON schema.
{
"relevance_0": {
"type": "score",
"instructions": {
"question": "How well does `candidates[0].text` answer `query`? Judge whether a person asking the query would get what they needed from this passage."
},
"criteria": [
"Unrelated to the query",
"Same broad topic but does not address the query",
"Touches the query but leaves the main thing unanswered",
"Answers the query, though not completely",
"Directly and completely answers the query"
]
},
"self_contained_0": {
"type": "noul",
"instructions": {
"question": "Can `candidates[0].text` be understood on its own, without the surrounding document?"
},
"criteria": {
"true": "Reads as a complete statement with its referents resolved",
"false": "Depends on earlier text: dangling pronouns, or continues a list or clause"
}
},
"relevance_1": {
"type": "score",
"instructions": {
"question": "How well does `candidates[1].text` answer `query`? Judge whether a person asking the query would get what they needed from this passage."
},
"criteria": [
"Unrelated to the query",
"Same broad topic but does not address the query",
"Touches the query but leaves the main thing unanswered",
"Answers the query, though not completely",
"Directly and completely answers the query"
]
},
"self_contained_1": {
"type": "noul",
"instructions": {
"question": "Can `candidates[1].text` be understood on its own, without the surrounding document?"
},
"criteria": {
"true": "Reads as a complete statement with its referents resolved",
"false": "Depends on earlier text: dangling pronouns, or continues a list or clause"
}
},
"relevance_2": {
"type": "score",
"instructions": {
"question": "How well does `candidates[2].text` answer `query`? Judge whether a person asking the query would get what they needed from this passage."
},
"criteria": [
"Unrelated to the query",
"Same broad topic but does not address the query",
"Touches the query but leaves the main thing unanswered",
"Answers the query, though not completely",
"Directly and completely answers the query"
]
},
"self_contained_2": {
"type": "noul",
"instructions": {
"question": "Can `candidates[2].text` be understood on its own, without the surrounding document?"
},
"criteria": {
"true": "Reads as a complete statement with its referents resolved",
"false": "Depends on earlier text: dangling pronouns, or continues a list or clause"
}
},
"relevance_3": {
"type": "score",
"instructions": {
"question": "How well does `candidates[3].text` answer `query`? Judge whether a person asking the query would get what they needed from this passage."
},
"criteria": [
"Unrelated to the query",
"Same broad topic but does not address the query",
"Touches the query but leaves the main thing unanswered",
"Answers the query, though not completely",
"Directly and completely answers the query"
]
},
"self_contained_3": {
"type": "noul",
"instructions": {
"question": "Can `candidates[3].text` be understood on its own, without the surrounding document?"
},
"criteria": {
"true": "Reads as a complete statement with its referents resolved",
"false": "Depends on earlier text: dangling pronouns, or continues a list or clause"
}
},
"relevance_4": {
"type": "score",
"instructions": {
"question": "How well does `candidates[4].text` answer `query`? Judge whether a person asking the query would get what they needed from this passage."
},
"criteria": [
"Unrelated to the query",
"Same broad topic but does not address the query",
"Touches the query but leaves the main thing unanswered",
"Answers the query, though not completely",
"Directly and completely answers the query"
]
},
"self_contained_4": {
"type": "noul",
"instructions": {
"question": "Can `candidates[4].text` be understood on its own, without the surrounding document?"
},
"criteria": {
"true": "Reads as a complete statement with its referents resolved",
"false": "Depends on earlier text: dangling pronouns, or continues a list or clause"
}
}
}Derived from the questions above, so every backend is asked the same thing.