Red HatMaarten VandeperreTutorial
Integrate Jev decision models with Apache Camel and Red Hat OpenShift
Summary
The post provides a step-by-step guide to integrating Jev, a System One decision model from TypeSafe, into enterprise architectures using Apache Camel and Red Hat OpenShift. It demonstrates a coffee ordering example where the model classifies customer requests into drink types or asks for clarification when the input is ambiguous. The guide covers shell-based API calls, defining state and allowed answers, inspecting probabilities and confidence, and applying thresholds in application code. It also discusses clean architecture with a ComplaintClassifier interface and platform-level integration using Camel routes, OpenShift for credentials, and a gateway for capability exposure. The post emphasizes decoupling application policy from model predictions and wrapping external services behind stable contracts to avoid vendor lock-in.
Context
The post is a technical guide for integrating Jev, a System One decision model from TypeSafe, into enterprise architectures using Apache Camel and Red Hat OpenShift. It targets developers and platform engineers looking to add bounded semantic judgments to their applications while maintaining vendor neutrality and governance.
Approach / What changed
The post walks through a step-by-step integration of Jev decision models with Apache Camel and Red Hat OpenShift. It starts with a shell-based API call example using curl and jq, defining state and allowed answers for a choice question. It then demonstrates inspecting the response, applying confidence thresholds in application code, and discusses clean architecture with a ComplaintClassifier interface. Finally, it outlines a platform-level integration strategy using Camel routes, OpenShift for credentials and network policy, a gateway for capability exposure, and progressive release with evaluation.
Takeaways
Jev’s confidence value is derived from the shape of the entire probability distribution, not the winning probability; all probability on one option gives 1.0, and more even spread lowers confidence.
The ask_for_clarification option is a real application outcome that prevents the model from being forced to pick an answer when none is justified by the input.
For production readiness, wrap Jev behind a stable capability contract on OpenShift with Camel routes, store credentials securely, and release progressively after evaluation against labeled test sets.
FAQ
How is confidence different from the winning probability?
Confidence is derived from the shape of the entire probability distribution. If all probability is on one option, confidence is 1.0; the more evenly spread the probabilities, the lower the confidence. It is not the same as the winning probability.
Why is ask_for_clarification a necessary option?
The ask_for_clarification option is a real application outcome that tells the ordering interface to ask another question instead of sending an uncertain recipe to the coffee machine. Without it, the model is forced to pick one of the drinks even when none is justified.
What should be tested before using Jev in production?
The post recommends building a labeled set that includes ambiguous orders, negation, missing details, prompt injection inside customer text, and uncommon cases. Compare Jev with current LLM structured output and a simple rules baseline, recording correctness, calibration, latency, total cost, and human override rate.
Source and freshness
- Source
- developers.redhat.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.