J.

Jev Search intent classification Code Example

Choose a content format that matches what someone wants.

postgres vs sqlite for a local app

Query postgres vs sqlite for a local app

What is the reader trying to do?

0% Compare options.
Compare options 91%
Find a tutorial 6%
Navigate to a site 3%

Let the application compare options.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "query": "postgres vs sqlite for a local app"
};

const decision = await evaluateDecision({
  state,
  question: "What is the reader trying to do?",
  options: ["Compare options","Find a tutorial","Navigate to a site"],
});

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

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