J.

Jev Newsletter relevance ranking Code Example

Rank candidate links against a reader’s explicit interests.

TypeScript, databases

Interests TypeScript, databases
Candidate Understanding PostgreSQL query plans

How relevant is this link?

0% High.
High 88%
Medium 8%
Low 4%

Let the application high.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "interests": "TypeScript, databases",
  "candidate": "Understanding PostgreSQL query plans"
};

const decision = await evaluateDecision({
  state,
  question: "How relevant is this link?",
  options: ["High","Medium","Low"],
});

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

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