jevrecipes

Recipe catalog / uncertainty-expression

Label expressed certainty about a claim

uncertainty-expression is a Jev recipe from the jev-recipes TypeScript package. Label categorical, qualified, or unresolved wording about a supplied claim without inferring internal confidence. Use it when you need to label expressed certainty or hedging about one claim without an external truth assessment.

Last updated .

Explore this recipe interactively · Source and implementation guide · Markdown version

How do I use uncertainty-expression 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 { uncertaintyExpression } from 'jev-recipes/uncertainty-expression';

const result = await uncertaintyExpression({
  "claim": "The service outage was caused by the deployment.",
  "response": "The deployment probably caused the outage, but the logs do not rule out other causes."
});
console.log(result);

What input does uncertainty-expression take?

FieldTypeNeeded
claimstringRequired
responsestringRequired
contextstringOptional
minConfidencenumberOptional
Full input and result schemas
{
  "input": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "claim": {
        "type": "string",
        "description": "One proposition whose expressed certainty should be labeled."
      },
      "response": {
        "type": "string",
        "description": "The response whose own wording about the claim should be labeled."
      },
      "context": {
        "type": "string",
        "description": "Supplied context needed to resolve references and conditions in the response."
      },
      "minConfidence": {
        "type": "number",
        "minimum": 0,
        "maximum": 1
      }
    },
    "required": [
      "claim",
      "response"
    ]
  },
  "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": [
          "categorical",
          "qualified",
          "uncertain",
          "not_addressed",
          "unclear"
        ]
      },
      "confidence": {
        "type": "number",
        "minimum": 0,
        "maximum": 1
      },
      "probabilities": {
        "type": "object",
        "propertyNames": {
          "type": "string",
          "enum": [
            "categorical",
            "qualified",
            "uncertain",
            "not_addressed",
            "unclear"
          ]
        },
        "additionalProperties": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "required": [
          "categorical",
          "qualified",
          "uncertain",
          "not_addressed",
          "unclear"
        ]
      }
    },
    "required": [
      "model",
      "usage",
      "status",
      "verdict",
      "confidence",
      "probabilities"
    ],
    "additionalProperties": false
  }
}

What does a uncertainty-expression 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 uncertainty-expression.

{
  "model": "demo-fixture",
  "usage": {
    "input_tokens": 0,
    "output_tokens": 0
  },
  "status": "ready",
  "verdict": "qualified",
  "confidence": 0.96,
  "probabilities": {
    "categorical": 0.01,
    "qualified": 0.96,
    "uncertain": 0.01,
    "not_addressed": 0.01,
    "unclear": 0.01
  }
}

Input

Supply non-empty text for each required field. Optional context must also be non-empty when supplied. minConfidence defaults to 0.8 and accepts values from 0 to 1.

See shared options and behavior for client configuration, validation, and errors.

Result

Verdict Meaning
categorical The response commits without qualification to the claim or its negation.
qualified The response leans toward the claim or its negation while explicitly limiting that commitment.
uncertain The response explicitly leaves the truth of the claim unresolved without a directional commitment.
not_addressed The response expresses no certainty of its own about the claim, including mere quotation or attribution.
unclear Ambiguous wording, unresolved contradictions, or missing context prevent labeling the expressed certainty.

The result has status: 'ready' when confidence meets minConfidence and the verdict is not unclear. Otherwise it has status: 'review'. An unclear verdict always requires review, even at high confidence or with a zero threshold. ready describes confidence in the annotation, not approval to act.

uncertain is a label for the response's wording and can be ready. confidence is confidence in assigning that label, not the response's own confidence or the probability that claim is true.

Decision boundaries

These cases document the intended decision policy. They are not human-adjudicated labels or live model evaluation results.

Supplied situation Intended verdict
Claim: the deployment caused the outage. Response: "It caused the outage." categorical
Same claim. Response: "It definitely did not cause the outage." categorical
Same claim. Response: "It probably caused the outage." qualified
Same claim. Response: "It probably did not cause the outage." qualified
Same claim. Response: "I cannot tell whether it caused the outage." uncertain
Same claim. Response: "I give that an even chance." uncertain
Same claim. Response only quotes an engineer saying it definitely caused the outage. not_addressed
Same claim. Response: "It definitely did, and I have no position on whether it did" without resolving the contradiction. unclear
Same claim. Response: "I was certain before, but now I cannot tell." uncertain

Reuse

Pair this with claim-stance when a study needs both direction and strength of expressed commitment. Compare against a separately established truth label when measuring calibration; this recipe does not provide that label. See the AI alignment research guide for evaluator validation.

Uses the shared choice helper and makes one logical Jev request. It does not call another recipe or perform application actions.

Limits

How accurate is uncertainty-expression?

Fixture only

No verified live accuracy measurement is available. Evaluate representative cases before using this decision in your workflow.

Use the evaluation guide to measure this decision on your own labeled cases.

What are the limits of uncertainty-expression?