The buying question is not “Jev or an LLM?” It is “which layer should make this decision?” A decision model, a general LLM, an embedding-based classifier, and a rules engine are different tools with different cost curves and failure modes. The right choice depends on the decision, not on the category.
This is a decision tree for that choice, with the evidence behind each branch.
Start with the decision shape
If the answer is a value from a known set, an ordered level, or a yes/no with a probability, you are in decision-model territory. The primitives guide defines those three shapes. If the answer is a paragraph, a plan, or code, you need a generative model. If the answer is “which of these 10,000 items is closest,” you may need embeddings and a vector index.
The abdelstark awesome-typesafe list includes a “choose the right tool” table with the same routing: explicit rules to code, bounded judgments to Jev, and prose to a text LLM. That is a good first cut.
Branch 1: can a rule do it?
If the policy is deterministic (a date window, a permission check, a required field), write code. The jaggedness notes are a list of things the model does not do reliably: counting, date arithmetic, exact magnitude between score levels. Those belong in code.
A decision model is for the part that needs judgment: is this ticket a refund request, is this document a contract, is this message hostile. If you can express the rule exactly, the model adds cost and variance for no benefit.
Branch 2: is the label set stable and well-labeled?
If you have thousands of labeled examples, a stable label set, and a task that does not change, a trained classifier is a strong baseline. The classifier objection article makes this case. The TypedBench evaluation is a reminder that calibration and wording sensitivity matter for classifiers too, not just for hosted models.
A decision model wins when the label set changes, when you need a probability quickly, or when the cost of maintaining a training pipeline is higher than the cost per call. The parallel-questions cookbook shows the batching economics: 13 questions in one call were 12.2x cheaper and 10x faster than 13 separate calls.
Branch 3: does the task need open-ended reasoning?
If the decision requires reading a long document, weighing ambiguous evidence, or producing an explanation, a general LLM is still the right tool. The jev-ai.org audit found TypeSafe's four-workflow average at 67.8% against 74.1% for a frontier model. The decision model is cheaper and faster; it is not uniformly more accurate.
The useful pattern is a hybrid: the LLM does the open-ended part, and a decision model does the bounded gate. The workflow evals show why decomposing a policy into typed questions can improve accuracy and cost at the same time.
Branch 4: is the candidate set open?
If the model must decide among a set that changes per request, a decision model's request-time options are an advantage. A trained classifier needs a fixed label set; a decision model can take the candidate list in the request. The advanced structure guide shows how to pass a taxonomy subtree per option.
The caveat is coverage. The rejection-policy benchmark shows that a rejection policy calibrated on one candidate distribution does not preserve its operating point on another. Test coverage and rejection separately. The candidate coverage article covers the design side.
Branch 5: what is the cost of being wrong?
The confidence-gated routing pattern is the right frame. A low-stakes answer can act on a 0.6 threshold. An irreversible action needs a higher threshold plus a deterministic check. The confidence notes are explicit that confidence is not accuracy.
If a wrong answer is expensive and the model cannot explain itself, keep a human in the loop. The human review path is part of the architecture, not an admission of failure.
A comparison table
| Option | Best for | Main cost | Main risk |
|---|---|---|---|
| Rules | Deterministic policy | Maintenance | Brittleness at the edges |
| Trained classifier | Stable labels, high volume | Labeling and training | Drift, calibration |
| Decision model | Bounded judgments, changing options | Per-call cost | Wording and option sensitivity |
| General LLM | Open-ended reasoning, explanation | Tokens and latency | Hallucination, parsing |
| Embeddings + index | Retrieval, similarity, ranking | Index and infra | Recall, stale embeddings |
The table is a starting point, not a verdict. Most production systems use more than one row.
How to run the bake-off
Pick 200–500 labeled cases from your own queue. Run each option on the same cases. Measure:
- Top-1 accuracy.
- Calibration (ECE or a reliability curve).
- Cost per resolved case.
- p50 and p95 latency.
- Failure rate on out-of-distribution inputs.
- Human review rate at a fixed error budget.
The measuring Jev article covers the benchmark landscape; the choosing an open decision model article covers the open-model side. The Jack & Jill case study is a useful example of the before/after math, with the caveat that it is vendor-authored.
A short checklist
- Start with the decision shape, not the model name.
- Use code for deterministic rules.
- Use a trained classifier when labels are stable and volume is high.
- Use a decision model when the options change or the pipeline cost dominates.
- Keep an LLM for open-ended reasoning.
- Measure accuracy, calibration, cost, latency, and review rate.
- Test on your own labeled sample before committing.
The buyer's tree is not about picking a winner. It is about matching the tool to the decision, then measuring the match.