Skip to main content
StrikeStrike
Overview

Probabilities and confidence

How to read probabilities, confidence, separation, confidence_band and meta.

Use strike-ai (opens in a new tab) (pip install strike-ai, from strike_ai import Client).

Every strike-1 answer has a probability for every option, read from the model's own output. In production, yes/no, choice and score probabilities are temperature scaled with one temperature fitted on held-out data, and yes/no probabilities also get a prior shift fitted on held-out data. The temperature is not fitted per answer type. Use them to compare options and to decide when to hand off.

The distribution

Python
from strike_ai import Client

client = Client()
result = client.decide(
    "Please refund the duplicate charge on my card.",
    {
        "team": {
            "type": "choice",
            "instructions": "Which team?",
            "criteria": {"billing": None, "tech": None, "sales": None},
        }
    },
)
probs = result["answers"]["team"]["probabilities"]
for option, prob in probs.items():
    print(option, round(prob, 4))
assert abs(sum(probs.values()) - 1.0) < 1e-5

Route automatically when one option clearly leads. Send close calls to a person or a general LLM.

confidence

confidence is the probability of the top answer. For yes/no it is max(noul, 1 - noul). It runs from 0 to 1.

Python
from strike_ai import Client

client = Client()
result = client.decide(
    "unclear message",
    {
        "team": {
            "type": "choice",
            "instructions": "Which team?",
            "criteria": {"billing": None, "tech": None},
        }
    },
)
if result["answers"]["team"]["confidence"] < 0.7:
    print("hand off")

separation

separation is optional. It measures how far the top answer is above an even split: (n * p_max - 1) / (n - 1) for n options. 0 means all options are equal, 1 means one option has all the mass. It is not a probability. Do not threshold on it as if it were one.

confidence_band

confidence_band is reserved and is null today. It will turn on only after a measured reliability check. Route on confidence until then.

meta

The response meta object has latency, region, model and calibration version. Use it for logs and monitoring, not as an accuracy score.

MCP tool results

The MCP tools in python -m strike_ai.mcp return the answer, rounded probabilities, and confidence. Failures come back as isError results so the agent keeps going.

Strike AI | Probabilities and confidence