<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/freek-van-der-herten-s-blog-on-laravel-php-and-ai-qmftbho2y" -->

---
title: Freek Van der Herten's blog on Laravel, PHP and AI
description: Jev, a narrow classification model from TypeSafe that answers typed yes/no, choice, or score questions with probabilities instead of generating prose, recently...
canonical: https://daily.dev/posts/freek-van-der-herten-s-blog-on-laravel-php-and-ai-qmftbho2y
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Freek Van der Herten's blog on Laravel, PHP and AI | daily.dev
og:description: Jev, a narrow classification model from TypeSafe that answers typed yes/no, choice, or score questions with probabilities instead of generating prose, recently...
og:url: https://daily.dev/posts/freek-van-der-herten-s-blog-on-laravel-php-and-ai-qmftbho2y
og:image: https://api.daily.dev/og/posts/qmFTBHo2Y.png
og:image:alt: Freek Van der Herten's blog on Laravel, PHP and AI
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Freek Van der Herten's blog on Laravel, PHP and AI

**[FREEK.DEV](https://daily.dev/sources/freek)** · 6 min read · 0 upvotes · 0 comments

## Summary

Jev, a narrow classification model from TypeSafe that answers typed yes/no, choice, or score questions with probabilities instead of generating prose, recently landed as a provider in the Laravel AI SDK's 1.x branch. The author walks through using Jev's Classification API in Laravel to replace a brittle, hand-maintained list of spam and auto-reply detection rules in their helpdesk product There There. A key lesson: reframing the question asked (what triggered the send, rather than who wrote it) raised auto-reply recall from 51% to 92% and eliminated false positives on real customer messages, without touching the confidence threshold. Jev also runs fast (639ms median for three parallel questions) and cheap ($0.042 per million input tokens, free output tokens), making it viable to run on every inbound email.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://freek.dev/3194-jev-and-what-it-changed-about-our-inbox>

## Questions this post answers

### What is Jev and how is it different from a typical LLM like GPT?

Jev is a classification model made by TypeSafe that answers typed yes/no, multiple-choice, or ordered-score questions with a probability rather than generating prose. You give it state and a typed question and it returns a numeric confidence, avoiding prompt engineering and JSON parsing. It responds in about 639ms at the median and costs $0.042 per million input tokens with free output tokens, roughly a hundred times cheaper than comparable GPT calls for the same task.

_Developers weighing lightweight classification models against general LLMs can track cost and speed comparisons like this on daily.dev._

### How do I use the Jev model with the Laravel AI SDK for classification?

Support for the Jev model landed in the 1.x branch of the Laravel AI SDK, exposed through a Classification facade. You call Classification::of($state)->question('name', new Boolean(...)) or with a Choice type, then ->classify(), which returns probabilities, a chosen option, or a confidence score per question. Multiple questions can be asked in a single request since the model reads the state once and answers in parallel, and it's configured like any other provider via config/ai.php with a TYPESAFE_API_KEY.

_Laravel developers adopting new AI SDK providers can follow integration details like this on daily.dev._

### How much did rephrasing the classification question improve auto-reply detection accuracy?

Recall on auto-replies improved from 51% to 92%, and real customer chat tickets wrongly flagged as automated dropped from 8% to zero. The fix was not tuning the confidence threshold but changing the question from asking whether a machine composed the message to asking what triggered the send, since out-of-office notices are human-written but machine-triggered, and chat widget messages are machine-sent but human-written.

_Teams building AI classification pipelines can compare question-framing techniques like this on daily.dev._

## Similar posts on daily.dev

- [What is Jev? How System One models could change AI agents : fireup.pro](https://daily.dev/posts/what-is-jev-how-system-one-models-could-change-ai-agents-fireup-pro-eqcqub8on) · FireUp · 1 upvotes · 0 comments

---

Tags: [#jev](https://daily.dev/tags/jev), [#laravel](https://daily.dev/tags/laravel), [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/freek-van-der-herten-s-blog-on-laravel-php-and-ai-qmftbho2y)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Freek Van der Herten's blog on Laravel, PHP and AI","url":"https://daily.dev/posts/freek-van-der-herten-s-blog-on-laravel-php-and-ai-qmftbho2y","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/freek-van-der-herten-s-blog-on-laravel-php-and-ai-qmftbho2y"},"datePublished":"2026-09-18T14:43:17.331Z","dateModified":"2026-10-15T02:24:54.134Z","description":"Jev, a narrow classification model from TypeSafe that answers typed yes/no, choice, or score questions with probabilities instead of generating prose, recently...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f07210d3190fb96982166fc5dbaeb99f?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f07210d3190fb96982166fc5dbaeb99f?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"FREEK.DEV","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"FREEK.DEV","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/286e833d1aaa453d99849cd4dbb7a106","url":"https://daily.dev/sources/freek"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/freek-van-der-herten-s-blog-on-laravel-php-and-ai-qmftbho2y","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"jev,laravel,php","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"FREEK.DEV","item":"https://daily.dev/sources/freek"},{"@type":"ListItem","position":3,"name":"Freek Van der Herten's blog on Laravel, PHP and AI"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/freek-van-der-herten-s-blog-on-laravel-php-and-ai-qmftbho2y#faq","mainEntity":[{"@type":"Question","name":"What is Jev and how is it different from a typical LLM like GPT?","acceptedAnswer":{"@type":"Answer","text":"Jev is a classification model made by TypeSafe that answers typed yes/no, multiple-choice, or ordered-score questions with a probability rather than generating prose. You give it state and a typed question and it returns a numeric confidence, avoiding prompt engineering and JSON parsing. It responds in about 639ms at the median and costs $0.042 per million input tokens with free output tokens, roughly a hundred times cheaper than comparable GPT calls for the same task. Developers weighing lightweight classification models against general LLMs can track cost and speed comparisons like this on daily.dev."}},{"@type":"Question","name":"How do I use the Jev model with the Laravel AI SDK for classification?","acceptedAnswer":{"@type":"Answer","text":"Support for the Jev model landed in the 1.x branch of the Laravel AI SDK, exposed through a Classification facade. You call Classification::of($state)-\u003equestion('name', new Boolean(...)) or with a Choice type, then -\u003eclassify(), which returns probabilities, a chosen option, or a confidence score per question. Multiple questions can be asked in a single request since the model reads the state once and answers in parallel, and it's configured like any other provider via config/ai.php with a TYPESAFE_API_KEY. Laravel developers adopting new AI SDK providers can follow integration details like this on daily.dev."}},{"@type":"Question","name":"How much did rephrasing the classification question improve auto-reply detection accuracy?","acceptedAnswer":{"@type":"Answer","text":"Recall on auto-replies improved from 51% to 92%, and real customer chat tickets wrongly flagged as automated dropped from 8% to zero. The fix was not tuning the confidence threshold but changing the question from asking whether a machine composed the message to asking what triggered the send, since out-of-office notices are human-written but machine-triggered, and chat widget messages are machine-sent but human-written. Teams building AI classification pipelines can compare question-framing techniques like this on daily.dev."}}]}
```

