Skip to content

Docs

Cookbook: Self-Consistency for Nouls

A 14-Noul claims-triage rubric over one insurance claim, repeated 15 times: mean probability standard deviation of 0.0102 at 111 ms per call, with a 0.30 to 0.70 band for human review.
Format
Docs
Reading time
3 min
Published by
TypeSafe AI
Last verified
Sep 2026

Highlights

  • 14 Noul questions across 15 repeats and 9 conditions; jev-1.13.0 ran at 111 ms and $0.000043 per rubric call.
  • The covered answers spanned 0.43 to 0.53, crossing the 0.5 threshold, while the other 13 questions stayed on one side.
  • A 0.30 to 0.70 band maps probabilities to no, uncertain, and yes for human review with no extra API call.

Quickstart

python
NOUL_UNCERTAINTY_LOW, NOUL_UNCERTAINTY_HIGH = 0.30, 0.70

response = typesafe_client.system_one(
    model="jev-latest",
    state={"uid": f"{sample_index}:{token_hex(4)}", "claim": CLAIM},
    questions={key: Noul(instructions=q) for key, q in QUESTIONS.items()},  # 14 Nouls
)
nouls = {key: response.answers[key].noul for key in QUESTIONS}  # P(true)

def noul_decision_with_uncertainty(p: float) -> str:
    if p < NOUL_UNCERTAINTY_LOW:
        return "no"
    return "yes" if p > NOUL_UNCERTAINTY_HIGH else "uncertain"

Watch out

The band is illustrative rather than calibrated, and values near its edges can still flip between uncertain and a hard answer.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

Instagram: A claim triage tool that routes suspicious claims and never denies one.

Instagram

X: Intent-based search in Gmail

X: 400 companies matched to one candidate

X: Watching 25 customer groups on WhatsApp

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai