J.

Jev Knowledge article match Code Example

Choose the most relevant answer from retrieved articles.

Can I move ownership to my colleague?

Query Can I move ownership to my colleague?
Candidates A: transfer workspace; B: invite guest; C: reset password

Which article best answers the question?

0% Article A.
Article A 72%
Article B 20%
No match 8%

Let the application article a.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "query": "Can I move ownership to my colleague?",
  "candidates": "A: transfer workspace; B: invite guest; C: reset password"
};

const decision = await evaluateDecision({
  state,
  question: "Which article best answers the question?",
  options: ["Article A","Article B","No match"],
});

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

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