J.

Jev Headline relevance Code Example

Check whether a headline promises what an article delivers.

The complete security guide

Headline The complete security guide
Body Summary A short tutorial on password length.

How well does the headline match?

0% Too broad.
Too broad 94%
Accurate 4%
Too narrow 2%

Let the application too broad.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "headline": "The complete security guide",
  "body_summary": "A short tutorial on password length."
};

const decision = await evaluateDecision({
  state,
  question: "How well does the headline match?",
  options: ["Too broad","Accurate","Too narrow"],
});

// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Too broad"
    && decision.probability >= 0.85) {
  requestHeadlineEdit(decision);
} else {
  queueForReview(decision);
}

This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.