Speed and cost
Every decision is one model call per option order, per model. These settings cut calls, wait time or price, roughly from least to most effort.
| Setting | Saves | Costs you |
|---|---|---|
debias="auto" |
about half the calls, once a question is learned | nothing, for questions without position bias |
| Decision cache | every repeat of an identical decision | memory on the server |
config="curva-1.2.0" |
prompt tokens, where the provider caches prompts | nothing |
| Cascade | calls to the expensive model | an extra call for unsure questions |
| Race | waiting on slow providers | one call per model |
| Local or fast providers | network time and per-call price | running or choosing the model |
| Learned answers | every call for questions Curva has learned | learn states and 200 labels |
Ask for a brief reply
Section titled “Ask for a brief reply”import curvacurva.decide(state, questions, brief=True)By default the model writes a probability for every answer option of every question. With
brief=True it lists only the likely ones, and the options it leaves out share what remains. The
reply is shorter, so the decision is faster, and the more options your questions have the more it
helps. In a live test on 12 October 2026 against @groq/qwen/qwen3.8-27b (6 texts, each asked
both ways): the four-question guardrails recipe took 688 ms full and 491 ms brief, a
two-question decision 277 ms and 247 ms, with the same answers every time.
It only changes answers the model writes out (verbal mode); with logprobs the reply is already one
letter per question. A brief and a full answer are cached separately. Voice calls use
it by default. HTTP: "brief": true. TypeScript: brief: true.
Adaptive debiasing
Section titled “Adaptive debiasing”By default every question is asked twice, with the options in original and reversed order, and the answers are averaged (why). Many models answer the same either way for many questions, and then the second call buys nothing.
d = client.decide(state, questions, debias="auto")d.debiased # True while learning or checking, False when only the original order was askedWith debias: "auto", the server keeps asking both orders for a (model, question) until it has
seen at least 20 paired answers of which 95% agree (same top answer, top probability within 0.1).
From then on it asks only the original order, and still asks both on every 10th request to keep
checking. One disagreement puts the question back to full debiasing.
What it learned lives in the server’s memory (up to 10,000 model-question pairs) and starts over
after a restart. A reworded question is a new question. debias: false skips the second call
always, and keeps whatever position bias the model has.
HTTP: "debias": "auto".
When the two orders disagree on the most likely answer, the answer comes back with
unstable: true (answer.unstable in Python): the model does not really know. If the question
has min_confidence or target_accuracy, such an answer is marked abstain whatever its averaged
confidence. In a live test on 12 October 2026 against @groq/qwen/qwen3.8-27b, none of 4 clear
messages and 2 of 8 deliberately murky ones were flagged. The flag needs both orders, so it does
not appear with debias=False.
Decision cache
Section titled “Decision cache”Calls run at temperature 0, so an identical decision (same model, state, questions, config,
project, privacy and think) is answered from memory in about a millisecond, with
cached: true and no cost. Size it with curva serve --cache-size. Nothing to do on the client.
A cache-friendly config
Section titled “A cache-friendly config”config="curva-1.2.0" puts the questions before the state. The questions repeat on every call, so
providers and local servers that cache prompt prefixes (llama.cpp, vLLM, most hosted APIs) read
them from cache and charge less for them. Answers can differ slightly from curva-1.1.0, so
calibrate again after switching.
Cascade and race
Section titled “Cascade and race”client.decide(state, questions, cascade=["cheap-model", "strong-model"], escalate_below=0.8)client.decide(state, questions, race=["model-a", "model-b"])A cascade asks the cheap model first and sends only the questions it is unsure of to the next one. A race asks every model at once and takes the first valid answer, which cuts the slow outliers of shared providers. See council, cascade and race.
Local and fast providers
Section titled “Local and fast providers”A model on your own machine (@ollama/..., @llamacpp/...) has no network hop, no per-call price
and no rate limit. Hosted providers built for low latency, such as @groq/... or @bedrock/mistral.ministral-3-8b-instruct
(180 to 294 ms per logprobs decision from a laptop to Mumbai, measured on 20 October 2026), are the
other route. See model providers, and
your own fast model to fine-tune a small model on your labels.
Keep mode at auto (or logprobs where the model returns them): a logprobs answer is one token
per question, the cheapest reply there is.

