DecisionBench
gpu · checking jev · jev-latest baseline · anthropic.claude-haiku-4-5 laya · not loaded von · not loaded

← catalog / AI Map Reduce over Big Data / Search and retrieval

Reranking retrieved passages

Score five retrieved passages against a query in one call, reorder them, and select only the ones worth putting in an LLM's context.

RankingRetrievalScoringSearch
Why this shape suits a decision model. Ten judgments, one request. Embeddings rank by similarity; this ranks by whether the passage actually answers the question, which is a different thing. rerank_typesafe ↗ classifying_rag_passages ↗
running…
Laya runs locally and its weights are not loaded yet. The first prediction would otherwise pay for reading them off disk, which is not inference and would not be a fair latency number.
Von runs locally and its weights are not loaded yet. The first prediction would otherwise pay for reading them off disk, which is not inference and would not be a fair latency number.

Input state

Questions

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"
    }
  }
}

Equivalent Claude prompt

Derived from the questions above, so every backend is asked the same thing.