decision trees you can curl

Decision models vs. chat models for classification

If the job is to pick a label, a score, or a yes or no, a small decision model is usually the better tool than a chat LLM. You get a typed answer, a probability, and a bill you can stand to run across a table. Chat models still win when you need generated language.

Published November 22, 2026. Numbers below are from che.sh/models, current demo-check versions, cache hits excluded, as of November 29, 2026, 10:56 PM, America/New_York.

The short answer

Classification is not chat. You already know the allowed answers: billing or shipping, refund or escalate, scam or fine. A chat model will try to write a paragraph and, if you are lucky, you can parse a label out of it. A decision model is built to return only that judgment, with a calibrated confidence, in a fraction of a second.

TypeSafe launched Jev, which it calls a System One model, on September 15, 2026. The launch post is at typesafe.ai/blog/introducing-system-one-models-and-jev. Jev answers a choice from a fixed list, a score on an ordered scale, or a yes/no (a “noul”) with probabilities. It does not emit free text. A long Hacker News thread followed the same day: news.ycombinator.com/item?id=49717558.

Within two weeks, warehouses started wrapping the same primitive in SQL. Databricks shipped ai_decide on September 30, 2026, and said the function is compatible with the TypeSafe API (databricks.com/blog/introducing-aidecide-make-fast-decisions-your-governed-data). MotherDuck shipped prompt_jev() for choice, score and yes/no over a text column (motherduck.com/blog/motherduck-supports-jev/). The idea is no longer obscure. The open question is how you measure it, and whether you can run it in the Postgres you already have.

What we measure

che.sh is a front door to rvbbit decision trees. Each public demo check has sample inputs with a right answer we marked by hand (the canon samples). Every time one of those samples runs, in our sweeps or from a visitor, the result lands on che.sh/models: how often each model is right, a Wilson 95% lower bound, median time, and average cost of the decision steps. Failures count as wrong. Cache hits are left out. Extract-step cost is not included, because the extract is the same for every model.

A short perfect streak is not a proof. The lower bound is there so 30 out of 30 right is reported as “at least about 89%,” not as a guaranteed 100%. “Still right” in the dashboard tags means at least 90% right on 10 or more runs.

As of November 29, 2026, 10:56 PM, America/New_York: 2928 scored canon runs across 25 models and 10 checks, about $0.577 in decision-step spend, first run November 22, 2026, 4:53 AM, America/New_York. Most accurate (by the dashboard’s rule): gemini decision 1. Cheapest still-right: pplx flash 1.2. Fastest still-right: jev 1.13. Source: che.sh/models and /api/scoreboard.

ModelRightShareLower boundMedianAvg / runPer millionChecks
groundhog 1187/19197.9%94.7%526 ms$0.00007884$78.8410
jev 1.14226/23397.0%93.9%336 ms$0.00010414$10410
jev 1.13187/19396.9%93.4%321 ms$0.0001144$11410
pplx flash 1.227/2896.4%82.3%394 ms$0.0000221$22.106
d1.130/30100.0%88.6%394 ms$0.00003603$36.038
joey-1112/14378.3%70.9%343 ms$0.00001534$15.348

Per million is the measured average decision-step cost times one million runs, not a quoted vendor list price. Models with fewer runs have a wider lower bound even when the raw share looks perfect. joey-1 is in the table because it is fast and cheap, and often wrong: that is the point of looking at more than one number.

Read the joey-1 row next to pplx flash 1.2 or jev 1.13. Similar median times, a much lower bill, and a lower bound that does not clear the “still right” line. A scatter of cost against time that ignores misses will make a fast, cheap, sloppy model look like a win. The dashboard colors misses on purpose.

How the warehouses do this

You do not have to use Jev to classify in SQL. Snowflake Cortex has AI_CLASSIFY, AI_FILTER and AI_EXTRACT as documented SQL functions (docs.snowflake.com/en/user-guide/snowflake-cortex/aisql). Databricks has ai_classify, ai_extract, ai_query and, as of September 30, 2026, ai_decide. BigQuery has AI.CLASSIFY, AI.GENERATE and related helpers, and can distill a cheaper model after labeling a sample (described in the dbt Labs writeup of a 2026 summit session: getdbt.com/blog/bigquery-generative-ai-dbt-sql-functions).

Those are real products. They are also locked to that warehouse, and most of the older classify functions are still billed as LLM-style token work, sometimes with the label list counted again on every row (Snowflake says this explicitly for AI_CLASSIFY: docs.snowflake.com/en/user-guide/snowflake-cortex/aisql-cost). Decision-model wrappers are the newer, cheaper end of the same idea.

How we handle it with rvbbit and che.sh

rvbbit is a Postgres extension. A tree of questions is ordinary SQL: rvbbit.branch and rvbbit.choice_branch for the questions, rvbbit.leaf for the answers, and rvbbit.decision_tree to run the tree over a text column. Each question is one decision-model call (on che.sh, Jev via OpenRouter). The canvas SQL button shows the same functions che.sh itself calls. A teaser for the refund demo:

WITH inputs(id, body) AS (
  VALUES (1, 'you charged me twice, fix it')
),
tree AS (
  SELECT rvbbit.choice_branch(
    'What does the customer need help with?',
    jsonb_build_object(
      'billing', 'Invoices, charges, payments or refunds',
      'scheduling', 'Appointments, dates or availability',
      'other', 'Anything else, or unclear'),
    jsonb_build_object(
      'billing', rvbbit.branch(
        'Does the customer believe they were charged incorrectly?',
        rvbbit.leaf('refund review'),
        rvbbit.leaf('explain the invoice'),
        0.60),
      'scheduling', rvbbit.leaf('send to scheduling'),
      'other', rvbbit.leaf('a human should look'))) AS t
)
SELECT i.id,
       d ->> 'label' AS decision,
       d -> 'path'   AS why
FROM inputs i, tree,
     LATERAL rvbbit.decision_tree(i.body, tree.t, 16) AS d;

che.sh is another interface to the same idea. Draw the tree in the browser, or curl it. Compare several models on one input. The public scores at /models are how we keep ourselves honest. Try a live flow: /scam, /router, or the refund tree at /demo.

FAQ

What is a decision model?

A model built to return a typed judgment: a label from a fixed list, a score on a scale, or a yes/no with a probability. It does not write free text. TypeSafe's Jev, launched September 15, 2026, is the well-known example; MotherDuck and Databricks now wrap the same idea in SQL.

When should I still use a chat model?

When you need generated language: a summary, a reply, a draft, or an open-ended extraction whose schema you cannot list in advance. For pick-a-label work, measure a decision model first.

Are the che.sh numbers official vendor benchmarks?

No. They are our public runs on hand-marked canon samples for the demo checks at che.sh, current tree versions only, with cache hits excluded. The dashboard is https://che.sh/models and the JSON is https://che.sh/api/scoreboard.

Why is a 100% score on a few runs not enough?

A short perfect streak has a wide confidence interval. We publish a Wilson 95% lower bound, so 30/30 right is reported as at least about 89%, not as a proven 100%.

Sources