Recipe catalog / answerability
Check answerability
answerability is a Jev recipe from the jev-recipes TypeScript package. Decide whether supplied evidence can answer an entire question. Use it when you need to know if you have enough evidence and can answer a question.
Last updated .
Explore this recipe interactively · Source and implementation guide · Markdown version
How do I use answerability in TypeScript?
Install with npm install jev-recipes. Requires Node.js 22.9 or newer and ES modules. Set TYPESAFE_API_KEY in your server environment for live calls, which send input to TypeSafe and use API quota. See the installation guide.
import { answerability } from 'jev-recipes/answerability';
const result = await answerability({
"question": "How do I reset my password, and when does the link expire?",
"evidence": [
{
"id": "reset",
"text": "Select Forgot password on the sign-in page. Reset links expire after 30 minutes."
}
]
});
console.log(result);
What input does answerability take?
| Field | Type | Needed |
|---|---|---|
| question | string | Required |
| evidence | array | Required |
| minConfidence | number | Optional |
Full input and result schemas
{
"input": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"question": {
"type": "string"
},
"evidence": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"text": {
"type": "string"
}
},
"required": [
"id",
"text"
]
}
},
"minConfidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"question",
"evidence"
]
},
"result": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"model": {
"type": "string"
},
"usage": {
"type": "object",
"properties": {
"input_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"output_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"input_tokens",
"output_tokens"
],
"additionalProperties": false
},
"status": {
"type": "string",
"enum": [
"ready",
"review"
]
},
"verdict": {
"type": "string",
"enum": [
"sufficient",
"partial",
"insufficient",
"conflicting"
]
},
"canAnswer": {
"type": "boolean"
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"probabilities": {
"type": "object",
"propertyNames": {
"type": "string",
"enum": [
"sufficient",
"partial",
"insufficient",
"conflicting"
]
},
"additionalProperties": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"required": [
"sufficient",
"partial",
"insufficient",
"conflicting"
]
}
},
"required": [
"model",
"usage",
"status",
"verdict",
"canAnswer",
"confidence",
"probabilities"
],
"additionalProperties": false
}
}What does a answerability result look like?
This hand-authored response demonstrates the contract. It is not a model accuracy measurement. Run it without an API key: npx jev-recipes demo answerability.
{
"model": "demo-fixture",
"usage": {
"input_tokens": 0,
"output_tokens": 0
},
"status": "ready",
"verdict": "sufficient",
"canAnswer": true,
"confidence": 0.96,
"probabilities": {
"sufficient": 0.97,
"partial": 0.01,
"insufficient": 0.01,
"conflicting": 0.01
}
}
Input
See shared options and behavior for client configuration, validation, and errors. Types are inferred from this folder's Zod 4 schemas.
Result
| Verdict | Meaning |
|---|---|
sufficient |
The evidence answers every material part of the question. |
partial |
Some material parts can be answered, but others cannot. |
insufficient |
No material part can be answered. |
conflicting |
Incompatible evidence prevents a consistent answer. |
canAnswer is true only when the verdict is sufficient and confidence reaches minConfidence. status is ready at or above that threshold, otherwise review. A ready assessment can still describe partial, insufficient, or conflicting evidence. The result includes confidence and all choice probabilities.
The result includes model and token usage. Inspect the outcome as well as its review status.
Reuse and calls
Uses the shared choice helper. This folder owns the evidence-sufficiency criteria and the can-answer decision. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
Limits
Handle empty retrieval in application code before calling. This recipe does not establish source truth, draft an answer, or guarantee a later draft uses the evidence correctly. Use verify on drafted claims and answer-coverage on supplied question parts.
Example input
demo.json contains editable input and a hand-authored response. After installing jev-recipes, npx jev-recipes demo answerability shows an offline illustration, not an accuracy measurement. Use npx jev-recipes describe answerability to inspect the input and result schemas.
How accurate is answerability?
jev-1.13.0 / 2026-10-04 / 50 development cases
Scoring revision 2.
44 ready decisions, with 100% accuracy among those decisions.
95% case-level interval: 84% to 98%. Related synthetic cases are correlated.
This measures the recorded dataset, not general readiness. Label sources: unspecified: Not recorded by the dataset author.
Use the evaluation guide to measure this decision on your own labeled cases.
What are the limits of answerability?
- Does not generate an answer or establish source truth.
- Provide 1 to 50 evidence passages with unique IDs; handle empty retrieval in application code.
Which recipes are related to answerability?
- answer-coverage: Use answer-coverage after drafting to check whether each question was addressed.