J.

Jev Feature request grouping Code Example

Group the intent behind differently worded requests.

Let me download the results into Excel.

Request Let me download the results into Excel.
Existing Groups Exports, permissions, notifications

Which group fits this request?

0% Exports.
Exports 86%
Permissions 10%
New group 4%

Let the application exports.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "request": "Let me download the results into Excel.",
  "existing_groups": "Exports, permissions, notifications"
};

const decision = await evaluateDecision({
  state,
  question: "Which group fits this request?",
  options: ["Exports","Permissions","New group"],
});

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

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