Promised accuracy
min_confidence is a threshold you guess. target_accuracy is a result you ask for: “answers
Curva acts on by itself must be right at least 90% of the time”. Curva then works out, from your
own feedback, how sure it has to be to keep that, and marks every other answer abstain so you can
hand it to a person.
import curva
router = curva.Node("ticket-router", { "team": curva.Choice("Which team should handle this message?", {"billing": "payments, invoices, refunds", "technical": "bugs and errors", "sales": "prices and plans"}, target_accuracy=0.9),})
d = router.decide("I was charged twice this month")answer = d["team"]answer.choice # "billing"answer.abstain # True until Curva has the evidence, then False when it is sure enoughanswer.promise # {"target": 0.9, "threshold": 0.825, "labels": 34, "accuracy": 1.0}
curva.feedback(d.id, "team", "billing") # tell Curva what was rightHow it works
Section titled “How it works”- At first every answer is unsure. With no feedback there is no evidence, so
abstainis true andpromise["threshold"]isNone. Nothing is acted on by a guess. - You send feedback. Each
curva.feedback(...)records whether an answer was right. - Curva finds the threshold. It looks for the lowest confidence at which the labelled answers at or above it are, with 95% statistical confidence, right at least as often as your target. It needs at least 30 such answers.
- From then on answers at or above that confidence come back with
abstainfalse, and the rest stay unsure. New feedback moves the threshold within a few seconds.
How many clean labels a target needs, if every one was right: 30 for 90%, 52 for 95%, 268 for 99%. Mistakes among them raise the number.
See it
Section titled “See it”curva.calibration("team", target=0.9)["promise"] reports the threshold, how many labelled answers
it rests on, the share of answers at or above it (automated), their measured accuracy and the
statistical lower_bound. The dashboard’s Calibration view shows the same in a sentence when you
fill in Promised accuracy (%).
What was tested
Section titled “What was tested”Live on 11 October 2026 against @groq/qwen/qwen3.8-27b, a three-team ticket router with a 90%
target: before any feedback every answer was unsure; after 30 labelled answers (all right) the
threshold was 0.825; then a 99%-sure answer was acted on and a 45%-sure one was held back. One
question and 34 labels show the mechanism, not an accuracy rate.
Limits to know
Section titled “Limits to know”- It is evidence, not a guarantee for each answer. The promise holds on average over many answers, as long as new messages are like the ones you labelled. Curva re-checks as labels arrive, which makes the real statistical confidence somewhat below the stated 95%.
- It needs honest, ongoing feedback. Label a fair sample of the answers Curva acted on too, not only the ones it was unsure about; only the most recent 5,000 labels count.
- Choice, score, yes/no, text, number and integer questions. Not multi-select questions yet. A yes/no answer counts as sure when either side is: a 0.03 is as sure a no as a 0.97 is a yes.
- It lets go when the newest labels say so. If the answers Curva acted on among your newest 60 labels are right clearly less often than the target, the threshold is worked out again from those newest labels alone, which usually means it acts on nothing until the results recover. It reacts to your feedback, not to a change in the incoming messages that nobody has labelled.
- One setting or the other. A question takes
target_accuracyormin_confidence, not both. - Per project and question. All models answering that question share one history.
- A question answered by one of your own rules is never marked unsure.
Python and the HTTP API ("target_accuracy" on a question). In TypeScript, set target_accuracy
on the question object.

