This course contains the use of artificial intelligence. The course outline, the explanations, the tool choices and every measured number are my own.
Learn decision AI with Jev AI and Laya, the System One models built to make fast, typed decisions inside software. In this hands-on Python course you use Jev AI, Laya, Ollama and OpenRouter for text classification, intent classification, sentiment analysis and message routing, and you check every answer with a confidence score before you trust it.
Think about the small questions inside every real product. Which team should get this support ticket? Is this message urgent? Does this customer want a refund? Many teams send each of these to a big chat model (LLM) and pay for a long written answer, when all they needed was one clean choice.
A decision model is built for exactly this. You give it some text or JSON and your typed questions, and in one fast pass it gives back typed answers, each with a probability. It never writes text. Jev, the System One model from TypeSafe AI, started this kind of model, and Laya is an open decision model that you can run on your own machine.
Jev AI and Laya Fundamentals: Decision AI for Beginners teaches you how to use these models, one step at a time. You start with the ideas in plain words, try Jev AI in its own playground, read its documentation, compare models side by side in System One Arena, and then build six Python projects on real labelled data.
What makes this course different
Three question types, Choice, Score and Noul, and how to read the probability and the confidence score of every answer, including the confidence formulas worked out by hand.
Six Python projects, each with a slide deck and a notebook of the same name: support ticket classification on 40 tickets, sentiment analysis and lead scoring on 120 product reviews, intent classification on 200 real bank card messages, email routing on 40 store emails, a personal data check on 52 outbound messages, and one routing question run on many providers.
Testing before trusting: accuracy per intent, the confusion matrix, a reliability table for calibration, a confidence threshold, and the failure modes that decision models share, such as option order bias and prompt injection.
Hosted and local with the same code: hosted Jev AI through OpenRouter, Laya on your own machine with Ollaya, nimble and tev1 with Ollama, and eight decision models compared in one benchmark. You change only the base URL and the model name.
Honest comparisons from real runs. For example, on the same 200 bank messages, local Laya scored 0.875 accuracy and hosted Jev scored 0.970, with Laya faster and keeping your text on your machine.
Every line of code is typed and explained on screen, and the real output is read out, so you can follow along and run the notebook yourself.
What you will cover
Decision AI basics: why decision models exist, System 1 versus System 2 thinking, the parts of a decision API call, the three primitives, confidence and calibration, decision patterns, endpoints, the model landscape and the limits.
Jev AI hands-on: the TypeSafe AI site and playground, with the hotdog, sky colour and Naruto monkey selfie examples for Noul, Choice and Score.
The Jev AI docs in depth: from state and questions to the confidence formulas, worked by hand.
System One Arena: a side-by-side app for comparing decision models and chat models, with an OpenRouter API key and benchmarks across ten use cases.
Python projects: support ticket triage, a product review sentiment dashboard with lead scoring, and a bank intent router, from a raw HTTP call to dashboards, calibration and confidence thresholds.
Local decision AI: Laya with Ollaya, and nimble and tev1 with Ollama's decision endpoint, with their limits and a send-or-hold check for outbound messages.
Jev-compatible APIs across providers: one request format, many providers, a fair benchmark, cost per million messages, and how to choose a backend and avoid vendor lock-in.
By the end, you will be able to turn messy text into clean, typed decisions in Python, and to measure how far you can trust them before they run inside your product.
A little Python is enough. You do not need a machine learning background, and a GPU is optional: Laya also runs on a CPU, only slower.