Skip to content

Concept

05of 08

AI

7 min read

Real-time decisions

What it is, in one sentence

Answering a closed question on the spot, with the probability of each alternative and a threshold that says when it is better not to decide.

01The problem

Not every question
calls for text.

Many operational decisions are a choice among known alternatives: which queue, with what urgency, yes or no. For those, waiting for a text is a waste.

Long reasoning

It thinks, writes and explains.

Answers with
A text, in seconds or more.
Serves
Open questions, analysis and writing.
Costs
Time and compute for every answer.
Fails by
With a convincing text, hard to measure.

Fast decision

It chooses among the given alternatives.

Answers with
A choice and a number, in milliseconds.
Serves
Triage, routing, alerting, yes or no.
Costs
Little: you can decide on every event.
Fails by
With a low probability, which you can see and handle.

Psychology calls the immediate answer System 1 and deliberate reasoning System 2. An operation needs both, each in its place.

Real-time decision-making is the company's System 1. It does not replace long reasoning: it filters. It settles on the spot what is clear and passes on only what deserves more time or a person.

The gain is not only speed. A decision that costs little can be taken on every event: every message, every order, every alert. What used to be a sample becomes coverage.

02The anatomy of a decision

State, question,
alternatives.

A fast decision has three parts, and all three are written by you. The fourth is the answer. The model does not create an extra alternative.

A decisionclassification3 alternatives

1state“I was charged twice this month and I'm very upset. I'm going to cancel everything!”

2questionWhich team should handle it?

3financebilling, payment slip, invoice and refund

supportaccess problems, login and app errors

otherany other subject

4answerfinance · 0.9988

the otherssupport 0.0009 · other 0.0003

1State
What happened, in the shape you already have it: the customer's message, the order record, a list of events.
2Question
Closed. It has a finite set of possible answers, known in advance.
3Alternatives and criterion
You write each label and what it means. The criterion is part of the question.
4Answer
The chosen alternative and the probability of each of the others. The probabilities add up to 1.

03How it works

It decides what is clear.
It passes on the rest.

The fast decision sits in front. With confidence, it acts. Without confidence, it abstains, and the case goes to whoever has more time.

The path of an eventFrom arrival to action, or to abstention.
  1. EventA message, an order or an alert arrives.
  2. Closed questionThe state and the alternatives, written by you.
  3. Fast decisionThe probability is distributed across the alternatives. From event to decision, hundreds of milliseconds.finance 0.9988 · support 0.0009 · other 0.0003
  4. Confidence at or above the threshold: immediate actionIt routes, alerts or answers, in milliseconds.
  5. Confidence below the threshold: abstentionA person decides, or the case moves to longer reasoning.

04Probability and threshold

The confidence comes along.
The threshold is yours.

Every answer brings the probability of the chosen alternative. You decide from what value the decision counts. Below it, the right thing is not to decide.

0.80

Move the threshold. Set high, the system decides less and errs less. Set low, it decides everything and starts taking chances. The right value depends on what an error costs in each question.

  • Which team should handle it?classification · finance, support, other

    finance · 0.9988

  • What is the customer's level of irritation?scale · calm, firm, irritated, furious

    abstention

  • Is the customer threatening to cancel?yes or no

    yes · 0.9657

  • With the threshold at 0.80: 2 decisions on the spot, 1 abstention.

Fictitious example: three questions about the same message. In the second, the probability split between “irritated” and “furious”, and neither passed the threshold.

05The question types

Three ways
to ask.

Almost every operational decision fits one of these three forms. Each one returns the answer in its own way.

The closed question

Classify

You provide the labels and the criterion for each. Back come the chosen label and the probability of all the others.

finance · support · other

Measure on a scale

You provide the levels, in order. Back come the position on the scale and the probability of each level.

calm · firm · irritated · furious

Yes or no

You ask a binary question. Back comes a number between 0 and 1: the probability of yes.

yes: 0.9657

06Common mistakes and assessment

Fast is not enough.
It has to be measured.

A decision in milliseconds is only useful if it comes with a number that says when to distrust it.

How to assess a solution0 of 8 checked

Five common mistakes

  1. A disguised open question

    “What should we do with this customer?” is not closed. Without written alternatives, there is nothing to weigh.

  2. Alternatives without a criterion

    Two overlapping labels split the probability, and confidence drops for no reason.

  3. Ignoring the probability

    Using only the chosen alternative throws away the information that says when to distrust it.

  4. One threshold for everything

    Getting the queue wrong costs little. Getting a block wrong costs a lot. Each question deserves its own value.

  5. Measuring speed with a single call

    The time of an isolated decision is not the time under load. With many calls at once, there is a queue.

07From concept to product

Reflex

How NNumbers
applies it.

Reflex is NNumbers' fast-decision product. It receives what happened, as text or JSON, and a closed question. It returns the choice, with the probability of each alternative.

The concept asks forReflex has

Closed question

Three question types

Classify, measure on a scale or answer yes or no. The request does not pick a model or tune a parameter: it picks the question type.

"instructions": "Which team should handle it?"

Probability and threshold

Confidence

Every answer brings the probability of each alternative and the confidence of the chosen one. With a threshold, Reflex abstains instead of taking a chance.

answer_confidence 0.3725 · abstention

Only the given alternatives

No generative model

A neural network reads the state and the question and distributes the probability across the alternatives you wrote. Along the decision path, no word is written.

0 output tokens

Nothing disappears in silence

State measured

If the state does not fit, what was left out is counted and returned in the answer.

"truncated": false

A record of every decision

Usage

Who called, how many questions, how long it took, whether anything was cut. Login and usage metering are the same as Imaginne's.

3 decisions · 1.1 s

8questions in the same request, over the same state.
50,000characters of state: text, object or list.
0output tokens. The answer is numbers, not text.

Hundreds of milliseconds per decision, measured with one call at a time. With many simultaneous calls, time grows in a queue. Imaginne and your systems call the same service.

Discover Reflex

Bring a decision.
Measure its time.

You describe the state and the question. We show the call, the probabilities and the time, with your own examples.

Talk to NNumbers