How it worksinput � output � threshold

Question and passages in.
One probability out.

The shape of the callillustrative · no API exists yet
// input
question:  string
passages:  string[]   // retrieved so far

// output
P(sufficient): number  // 0 ≤ p ≤ 1
01 · Input

A question, and the passages retrieved so far.

Prama takes the user's question and the list of evidence passages the agent has gathered up to this point. That is all it looks at. It does not search, browse, or fetch anything itself.

The passages are whatever the agent's retriever returned: chunks of documents, snippets, records. Prama judges the set as it stands right now.

02 · Output

One number between 0 and 1.

The output is a single probability, P(sufficient): the probability that the evidence in hand is enough to answer the question. Nothing else comes back. No answer, no summary, no explanation.

The number is the model's actual output, not a value a text generator typed into a JSON field. Prama is trained so that the probability is the decision, and so that it means what it says.

03 · Cost and latency

Why the gate should not be a generation.

The readiness check runs on every turn of the loop, for every query. It is the most frequently made decision in the system, so whatever it costs, you pay it more often than anything else.

When a large model makes that check, it re-reads the question and all the passages at its own rate, then generates an explanation token by token before it gets to a number. You are billed for every one of those tokens, and the loop cannot turn again until the last one lands. The gate becomes the floor on how fast the loop can move and a standing line item on every query.

Prama reads the same inputs once and returns the probability. It is a System 1 judgment: no chain of thought, so nothing to bill per output token and nothing to wait for before the agent retrieves again or hands off to the answering model. Measured numbers arrive with the evaluation results, not before.

04 · Threshold

A cutoff the agent already chose.

The number is for comparing against a threshold your agent picked in advance. Above it, stop retrieving and let a large model answer from the evidence. Below it, retrieve more. In the middle, treat the case as uncertain and handle it however your workflow handles uncertainty.

A cautious agent only proceeds when the probability is very high, and otherwise keeps looking. How high is your call, and it depends on what a wrong answer costs you.

Your thresholds, illustratednot a live model
0.000.250.500.751.00P(sufficient)
below 0.50retrieve more
0.50 – 0.90uncertain
0.90 and upstop, answer

A cautious agent pushes the answer cutoff far to the right and only proceeds when the probability is very high. Otherwise it keeps looking. The cutoffs are yours. The probability is Prama's.

05 · Good at

Noticing a needed fact is still missing.

The failure Prama is built to catch is the one that fools generators: text that looks related to the question but does not actually contain the fact the question needs. Related is not sufficient.

When a required piece is absent, even if the passages are on topic and use the right words, the probability should be low. When the pieces are there, it should be high.

06 · Not

A reader of an entire file.

Long documents are retrieved in pieces. Prama judges the piece in hand, not the whole file it came from. If the fact you need is in a part that was never retrieved, Prama's job is to say the evidence is not enough yet, so the agent goes and gets it.

It also does not write the answer, does not replace the large model, and is not served anywhere yet.

Status

Prama is not available yet. Results, a demo, and a hosted API come later.