Laravel Tutorials

Decide with Jev: Turn AI Answers into Decisions with PHP Rules

Published

https://youtu.be/YZkn3Tv4A_k

Episode 3 of Decide with Jev is out. It runs about seven minutes.

Jev can now answer three questions about a draft. But the model should not pick what the app does next. Our code should.

In this episode, we write a small PHP class called PreflightPolicy. It reads Jev's answers and gives back one label: ready for editor, revise, or needs review. None of these labels publish a draft. Even the best draft still goes to a person.

The video also shows:

  • why a missing answer is not the same as a "no"
  • why a confidence of zero and no confidence at all take different paths
  • the two numbers a draft has to reach, 0.85 and 1.6, and why they are a starting point for this course and not a rule for every app
  • why the order of the checks matters
  • what "ready" means, and what it does not

At the end, we try an example number in Tinkerwell. You can watch the answer flip when the bar moves.

The code is on the episode-3 branch of the Decide with Jev repository. You can watch the whole series in the playlist.

Harris Raftopoulos photo

Senior Software Engineer • Staff & Educator @ Laravel News • Co-organizer @ Laravel Greece Meetup

Sponsored

acquaintsoft logo
Acquaint Softtech

Hire Laravel developers with AI expertise at $20/hr. Get started in 48 hours.

Visit Acquaint Softtech

The latest

View all →
Skuul: Open-Source School Management Built on Laravel image

Skuul: Open-Source School Management Built on Laravel

Read article
Laravel Read Replicas: Prevent Stale Reads After a Write image

Laravel Read Replicas: Prevent Stale Reads After a Write

Read article
Screenshot: Capture Images and PDFs with PHP and Laravel image

Screenshot: Capture Images and PDFs with PHP and Laravel

Read article
Reset Sticky Database Connections Between Laravel Queue Jobs image

Reset Sticky Database Connections Between Laravel Queue Jobs

Read article
PHP Security Releases Fix Two Critical RCE Vulnerabilities image

PHP Security Releases Fix Two Critical RCE Vulnerabilities

Read article
Prevent Stale Database Reads in Laravel 13.38 image

Prevent Stale Database Reads in Laravel 13.38

Read article