Freek Van der Herten6 min readintermediate
★ Detecting spam and auto-replies with Jev and the Laravel AI SDK
Summary
Jev is a "System One" AI model focused on classification, providing calibrated probabilities for predefined answers rather than generating text. This article demonstrates its use with the Laravel AI SDK to replace complex rule-based systems for detecting spam and auto-replies in a helpdesk application.
- Jev is a classification-only AI, returning probabilities for predefined answers (Boolean, Choice, Score), unlike generative LLMs.
- Probabilities are calibrated, meaning a 0.9 score indicates a ~90% chance of being correct.
- Multiple classification questions can be batched into a single request, processed in parallel, and cost the same as one.
- It was used to replace a complex system of header checks and subject prefix lists for spam and auto-reply detection.
Engineers needing reliable, structured text classification should consider Jev as a focused, cost-effective alternative to general-purpose LLMs, particularly for tasks like content moderation or message routing.
7/10


