USE WHEN
BUILD / EVIDENCE DESK · R06
Evidence Check
Classify how supplied evidence relates to a claim—without searching the web or declaring outside-world truth.
DECISION CONSOLERECIPE R06 · V1.0.0
01
STATE INPUT
Edit the supplied state
02
TYPED RESULT
Signal monitor
Illustrative fixture
E1choice
supportsSupports76%
Contradicts7%
Irrelevant5%
Insufficient12%
Provider confidence: 55%
APPLICATION PATHSupported by supplied textsupport-above-threshold
The model evaluates. Deterministic policy code decides the displayed application path.
03
QUESTIONS / MODEL
Edit the bounded questions
Question edits require a new model run. Types and candidate/rubric boundaries stay locked to the recipe.
04
POLICY / LOCAL
Change the rules, not the result
↯ Policy changes are computed in this browser. Network calls added: 0.
Inspect result +
{
"origin": "fixture",
"answers": {
"relation_e1": {
"type": "choice",
"choice": "supports",
"probabilities": {
"supports": 0.76,
"contradicts": 0.07,
"irrelevant": 0.05,
"insufficient": 0.12
}
}
},
"providerConfidence": {
"relation_e1": 0.55
},
"policyDecision": {
"action": "supported",
"label": "Supported by supplied text",
"reasonCodes": [
"support-above-threshold"
]
},
"run": null
}TypeScript export +
import { experimental_evaluate as evaluate } from 'ai';
const state = {
"claim": "The customer was refunded.",
"evidence": [
{
"id": "e1",
"text": "Synthetic support transcript: We returned the full payment to your original payment method today."
}
]
};
const questions = {
"relation_e1": {
"type": "choice",
"instructions": "What is the relationship between supplied evidence e1 and the claim? Judge only the supplied texts, not outside-world truth.",
"criteria": {
"supports": "The supplied text directly supports the claim.",
"contradicts": "The supplied text directly contradicts the claim.",
"irrelevant": "The supplied text is unrelated to the claim.",
"insufficient": "The relationship or support is ambiguous or incomplete."
}
}
};
const policy = {
"minRelationProbability": 0.7
};
const result = await evaluate({
model: 'typesafe-ai/jev',
state,
questions,
maxRetries: 0,
providerOptions: { gateway: { zeroDataRetention: true } },
});
// Validate result.answers before applying your deterministic policy.
console.log({ answers: result.answers, policy });
DO NOT USE WHEN
You need fact-checking, source discovery, or a legal/scientific truth verdict.
ACCEPTANCE INVARIANTS
- No open-world truth claim.
- No invented citation or quotation.
- Conflicting evidence is not hidden.
- Custom evidence text is excluded from shares unless expressly selected.