From Supplier Emails to Delivery Alerts: A Practical Test of Jev

Oren Hecht
Oren Hecht
VP Technology
Supplier emails flowing through a probability model and routed to a confirmed, warning or pending status, with a warehouse and truck in the background

Assume a situation where a manufacturer has to work with many different suppliers. This company may receive dozens or hundreds of emails a day regarding shipments that have been ordered. In the past, a team of supply chain managers would go over these emails, and decide for each one if there is some escalation or additional treatment needed.

Obviously, today’s generative AI and LLMs should allow us to save a lot of time for planners in this scenario. Let’s say we want to automatically alert planners when we receive a signal of a shipment being delayed, and safely ignore all other communications from suppliers. How does it look to actually build this automation system?

Building the automation

With a classical LLM

  1. The system sends an email to the LLM, and asks if the email indicates a shipment delay.
  2. The system parses the result - requiring some heuristics and error handling, since the LLM output is not always what you expect in format.
  3. Make a decision whether or not to inform a planner.

With Jev

  1. The system sends an email to Jev, and asks if the email indicates a shipment delay.
  2. Jev can be configured to directly return the probability, in a type safe manner, that requires no parsing or content error handling.
  3. Decide what your cutoff is - for example, if the chance of the email indicating a delay is over 40%, warn a planner.
Code comparison: with Jev the probability is returned as a typed value and compared directly; with a conventional LLM the text output must be parsed first
The same alert logic in code: Jev returns a typed probability (top), while a conventional LLM returns text that still has to be parsed (bottom).

The relative simplicity of the implementation is apparent. But that is not the only advantage. I will break down a quick demo of using each tool for this purpose, to show the cost advantage:

Classical LLM (Claude Opus, medium effort)

I started by writing out three emails. One clearly indicating a delay, one update not indicating a delay, and one ambiguous email signalling a potential problem upcoming. I then provide context for the model, and ask for each email - what is the chance the relevant email indicates a shipment will be late?

The LLM prompt: planning context followed by three supplier emails, each with the question of whether the shipment will be late
The prompt: the planning context plus three supplier emails, each asking for a delay probability.

I asked to receive the response in a format that is computer friendly. The result came back with a fairly accurate estimation, and seemed to be quick and inexpensive:

The LLM response with a delay probability per email, followed by the session usage report showing 3 seconds and $0.3403 total cost
The LLM’s structured answer, and the session’s timing and cost.

For 3 emails, the test took 3 seconds, and cost somewhere between $0.0002 to $0.3403 (the total includes overhead from the environment and infrastructure).

Jev

Let’s look at the same test in Jev. Here, I defined the context as a “background” parameter in the state, and sent each email as a separate question:

The Jev playground: the planning context as a background state parameter and the three emails as separate noul questions
The Jev playground: the context as a “background” state parameter, and each email as its own question.

The results ran quickly and came back with their structured answers. The probabilities are very similar to the ones that the LLM assigned, which in our simple example, would translate to the same results:

Jev’s response: 99%, 2% and 42% probability of delay for the three emails, returned in 79 ms of model time plus 280 ms of network time
Jev’s response: a typed probability for each email, in 79 ms of model time.

The break comes when discussing performance. The request, including all three email questions, took about 360 milliseconds to return (most of which was just the networking time on my specific computer setup). The estimated API cost came in at about ~$0.000025.

Tooltip explaining that the 280 ms is the network round trip to us-west and varies with distance, ISP, VPN and congestion
Most of the 360 ms was the network round trip, not model time.

Bottom line

This post is meant for illustrative purposes only. I did not perform heavy benchmarking or throttling tests, and there are obviously optimizations that you can build into a system that is purpose-engineered for answering a question like this, using either type of model. We used LLMs in the classic “chatbot” version that an existing supply chain director might easily adopt, without talking about different structuring options the API has.

These quick results show that Jev gave similar performance as the best-in-class reasoning LLM, while running about 10x faster and being orders of magnitude cheaper. In a system built to process thousands of emails a day, that can make a real impact for usability. This is why I feel that probabilistic decision models must at least be part of the architecture discussion for any modern agentic decision-making system.

Here at Hexight, our system has been relying on probabilistic models for concrete decision making for years. These new frontier models are exciting additions that we are already implementing into our arsenal.

Plan for Change.
Decide with Confidence.

Use AI-native S&OP to explore better options, align faster across teams, and commit to plans that stay strong in the most volatile situations