Course Overview
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.
FAQ
FAQ area empty
Course curriculum
Chương 1 Start Here: Course Overview and Setup 6 bài · 11 phút
- Welcome: What You Will Build with Jev AI and Laya Học thử 2:08
- Meet Your Instructor Học thử 0:48
- How to Get the Most Out of This Course Học thử 2:30
-
Set Up Your Video Player 1:38
-
Course Resources and Setup: Python, uv and Your OpenRouter Key 2:41
-
Ratings, Q&A and Staying in Touch 1:21
Chương 2 Decision AI Basics: How Jev AI and Laya Work 14 bài · 48 phút
- What Is Decision AI? Jev vs Chat LLMs for Small Decisions Học thử 3:13
-
Rules vs ML Classifier vs LLM: Three Ways to Automate Decisions 3:16
- Who Built Jev AI: TypeSafe AI and the System One Idea Học thử 3:02
- System 1 vs System 2 AI: Fast and Slow Thinking Models Học thử 3:30
- Decision API Basics: State, Questions, Answers, Model and Usage Học thử 3:34
-
Choice, Score and Noul: The Three Jev AI Question Types 3:24
-
AI Confidence Scores: Probability, Confidence and Calibration 3:37
-
RLHF vs RLVR vs RLCD: How Jev AI Is Trained 3:42
-
Four Decision AI Patterns: Batching, Confidence Gates, Scoring, Routing 3:39
-
Decision AI Use Cases: 10 Jobs Where Decision Models Fit 3:14
-
Chat Completions API vs Decision API: Endpoints Compared 3:35
-
Decision AI Models Compared: Closed and Open Models 3:34
-
Decision AI Tools: SDKs, OpenRouter, Frameworks and Local Servers 3:15
-
Decision AI Limits: Order Bias, Dates, Math and Prompt Injection 3:46
Chương 3 Jev AI Hands-On: TypeSafe Playground for Beginners 8 bài · 41 phút
-
Introduction to TypeSafe AI, the Company Behind Jev AI 4:16
-
Jev AI vs LLM: Decision Model vs Large Language Model 5:54
-
TypeSafe AI Sign Up and Console Tour 3:43
-
TypeSafe Jev AI Playground Walkthrough 4:04
-
Noul Yes or No Question Example: Is a Hotdog a Sandwich? 5:10
-
Choice Question Example in the Jev AI Playground: Sky Color 6:19
-
Score Example: Naruto Monkey Selfie Copyright Case, Part 1 5:12
-
Score Example: Naruto Monkey Selfie Copyright Case, Part 2 6:47
Chương 4 Jev AI Docs Deep Dive: State, Choice, Score, Noul and Confidence 15 bài · 1 giờ 8 phút
-
Getting Started with the Jev AI Docs from TypeSafe AI 2:35
-
How Jev AI Works: One Request, Typed JSON Answers 4:54
-
State in Jev AI Explained: Text, JSON Objects and Arrays 4:48
-
Jev AI Primitives Explained: How to Write Good Questions 4:15
-
Choice Primitive Explained: Pick One Option from a Fixed Set 4:17
-
Jev AI Python SDK: Request and Response Structure 4:05
-
Jev AI Best Practices: Many Questions in One Request 5:28
-
Structured Instructions and Criteria with Positive and Negative Examples 3:51
-
Score Primitive Explained: Rate on a Scale of Described Levels 3:42
-
Score Primitive Examples: Score and Confidence Walkthrough 5:10
-
How Confidence Is Calculated for Score Questions, Worked by Hand 5:26
-
How Confidence Is Calculated for Choice Questions, Worked by Hand 3:52
-
How to Write Good Score Levels: Rules and Examples 6:03
-
Noul Primitive Explained: Yes or No Answers with a Probability 5:12
-
Visualize Confidence with Interactive Probability Sliders 4:14
Chương 5 System One Arena: Compare and Benchmark Decision AI Models 8 bài · 35 phút
-
System One Arena: Compare Decision AI Models 2:45
-
System One Arena Dashboard Walkthrough 4:28
-
What Is OpenRouter? One API Key for Many AI Models 4:59
-
How to Create an OpenRouter API Key with a Credit Limit 4:51
-
Your First Decision AI API Call 5:15
-
Reasoning LLMs as Decision Models: Clef and tev1 2:58
-
Jev vs Clef vs GPT-6 Luna: Head-to-Head Test 5:56
-
Benchmark Decision AI Models on 10 Use Cases 3:58
Chương 6 Python Project: Support Ticket Classification with Jev AI 13 bài · 1 giờ 38 phút
-
Project Setup: Python Imports, API Key and Support Ticket Data 6:08
-
Call the Jev AI API with a Raw HTTP Request in Python 6:56
-
Call Jev AI with the TypeSafe Python SDK 7:06
-
Classify Tickets by Department: Choice Question and Confidence 7:14
-
Score Ticket Urgency: the Score Value and Its Confidence 7:45
-
Detect Refund Requests: Noul True, False and Unsure 6:24
-
Ask Several Questions in One Jev AI Request 5:21
-
JSON Input and Typed Results in Python 8:22
-
Classify 40 Tickets with Async Python, Retries and Timeouts 8:58
-
API Error Handling: Four Errors and Where They Are Caught 8:42
-
API Cost: Tokens per Request and Cost per Million Requests 6:59
-
Lab: Ticket Triage Table and Classification Accuracy 8:27
-
Lab: Confidence Threshold, Human Review and Cheat Sheet 9:13
Chương 7 Python Project: Review Sentiment Analysis Dashboard and Lead Scoring 9 bài · 1 giờ 16 phút
-
Project Setup: 120 Product Reviews for Sentiment Analysis 8:57
-
Aspect-Based Sentiment Analysis: Aspect as Choice, Sentiment as Score 9:29
-
Three Yes or No Questions, Then All Five in One Request 8:13
-
Classify All 120 Reviews with Asyncio into a Pandas DataFrame 6:06
-
Pandas and Matplotlib Dashboards: Topics, Monthly Sentiment, Refunds 9:10
-
Competitor Mentions, Summary Table and Low-Confidence Reviews 9:56
-
Lab: AI Lead Scoring with BANT, One Question per Factor 8:12
-
Lab: Score All 40 Leads and Combine Factors with Weights 8:56
-
Lab: Re-Rank Leads Without Extra API Calls, Cheat Sheet, Wrap-Up 6:54
Chương 8 Python Project: Bank Intent Classification, Calibration and Thresholds 10 bài · 1 giờ 26 phút
-
Project Setup: Intent Classification on 200 Bank Card Messages 8:45
-
Intent Labels Only vs Label Descriptions: Which Is More Accurate? 6:39
-
Intent Classification Accuracy: Overall and per Intent 9:12
-
Confusion Matrix: Which Intents Get Mixed Up and Why 6:25
-
Model Calibration: Reliability Table and Reliability Diagram 9:25
-
How to Choose a Confidence Threshold: Coverage vs Accuracy 9:47
-
Failure Modes: Option Order Bias and Negation 8:52
-
Failure Modes: Math, Dates and Prompt Injection Detection 9:48
-
Failure Modes: Off-Topic Messages and Long Irrelevant Text 8:07
-
Pin the Model Version, Save the Results and Wrap-Up 9:01
Chương 9 Run Laya Locally with Ollaya: Open Decision AI on Your PC 15 bài · 2 giờ 13 phút
-
What Is Ollaya? Run Laya Locally: Setup and Architecture 10:03
-
Pull Laya with Ollaya: the English and Multilingual Models 9:33
-
How Laya Works: an Encoder Model for Choice, Score and Noul 6:25
-
Ollaya CLI: Decisions from the Command Line with Presets 9:20
-
Cold vs Warm Requests and the Ollaya Decide Endpoint 8:52
-
Laya's Extra Fields: Its Own Confidence and the Act Head 8:22
-
Run Jev AI Code on Local Laya by Changing the Base URL 7:15
-
Use Case: Email Classification for an Online Store Inbox 7:20
-
Email Classification Accuracy, the Crosstab and the Misses 9:42
-
Use Case: Multilingual Feedback in Hindi, Hinglish and English 10:25
-
Route Every Review, and the English Laya on Hindi Text 10:40
-
Local Laya vs Hosted Jev AI: One Request Compared 6:07
-
Local Laya vs Hosted Jev AI: Accuracy and Speed on 200 Messages 10:26
-
Ollaya Presets: Built-In and Custom Presets 10:08
-
Build Your Questions into a Custom Model, Cheat Sheet, Wrap-Up 8:50
Chương 10 Decision Models in Ollama: nimble, tev1 and the systemone Endpoint 17 bài · 2 giờ 18 phút
-
Decision Models in Ollama: Section Setup 8:22
-
Pull nimble and tev1 in Ollama and Read ollama show 8:38
-
How nimble Is Built: LoRA Adapter, GGUF File Size and Its Makers 8:07
-
Ollama systemone Endpoint: a Raw HTTP Call 7:49
-
Ollama Python Library: Noul, Choice and Score with ollama.systemone 8:52
-
How a Decoder LLM Turns Answer Letters into Probabilities 7:27
-
Ollama Confidence Score Explained and Checked by Hand 9:26
-
Run Jev AI Code on Ollama by Changing the Base URL and Model 7:45
-
Use Case: Detect Personal Data in Outbound Messages 9:02
-
Personal Data Check on 52 Messages with nimble and the One Miss 9:59
-
Send or Hold: Turn Answers into a Decision with a Threshold 6:19
-
Ollama Limits: 64 Questions per Request and What Each Costs 9:35
-
Ollama Limits: the Prompt Must Fit the Context Window 7:57
-
Ollama Limits: 64 KB of Text, and Text Only 5:24
-
Nimble vs tev1 vs Hosted Jev AI: Accuracy and Speed 9:00
-
Accuracy per Intent and Where the Models Disagree 8:21
-
Local vs Hosted Decision AI: How to Choose, Cheat Sheet, Wrap-Up 5:30
Chương 11 Jev-Compatible APIs: Benchmark 8 Decision Models Across Providers 14 bài · 1 giờ 44 phút
-
Setup: One Jev-Compatible Request Format Across Providers 9:47
-
One Routing Question With Ten Card Intents 4:21
-
Switch AI Providers by Changing Only the Model Name 6:18
-
Six Hosted Decision Models Compared on One Message 7:16
-
Same Code on Local Servers: Ollaya and Ollama 7:38
-
Build a Model Benchmark Harness in Python: 8 Models, 200 Messages 9:19
-
Benchmark Table: Accuracy, Confidence, Tokens and Speed 6:51
-
AI API Cost Comparison: Cost per Million Messages 7:11
-
Where the Eight Decision Models Disagree 8:02
-
Majority Vote: Does Model Agreement Predict Correctness? 7:13
-
Other Decision APIs and OpenRouter's Native Decisions Endpoint 9:08
-
Chat Models vs Decision Models and the OpenAI Decisions API 8:12
-
How to Choose an AI Backend and Avoid Vendor Lock-In 6:09
-
Cheat Sheet: Base URLs, Model IDs and Section Wrap-Up 6:21
Chương 12 Bonus 1 bài · 3 phút
-
Bonus Lecture: What Next and Let's Connect 2:58
Requirment
-
Basic Python: if you can read a short script, you can follow every code section. Every line we type is explained
-
A computer where you can install Python 3.12 and uv. The setup lesson shows each step
-
One OpenRouter API key. We create it together in the System One Arena section. Some decision models are free, and paid ones use a small credit that you add yourself
-
No machine learning background is needed, and a GPU is optional
Outcomes
-
Explain what decision AI and System One models such as Jev AI and Laya are, and when to use them instead of a chat LLM
-
Write Choice, Score and Noul questions in Jev AI and read the probability and the confidence score of every answer
-
Call the Jev AI API from Python with raw HTTP, the TypeSafe SDK and async code, and turn the answers into typed results
-
Build Python projects for support ticket classification, review sentiment analysis, lead scoring and bank intent routing
-
Test AI classification before launch: accuracy, confusion matrix, calibration, confidence thresholds and failure modes
-
Run open decision models locally: Laya with Ollaya, and nimble and tev1 with Ollama, using the same code as hosted Jev AI
-
Benchmark decision AI models through OpenRouter on accuracy, speed and cost per million messages, and keep your code portable
0 Student
1 Course
0 review