← All examples
93 / 100
Jev Knowledge gap discovery Code Example
Turn repeated unanswered questions into documentation tasks.
How to rotate staging keys? Asked 12 times.
Questions How to rotate staging keys? Asked 12 times.
Existing Docs production rotation only
What should the knowledge team do?
0%
Create staging guide.
Let the application create staging guide.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"questions": "How to rotate staging keys? Asked 12 times.",
"existing_docs": "production rotation only"
};
const decision = await evaluateDecision({
state,
question: "What should the knowledge team do?",
options: ["Create staging guide","Link existing docs","No task"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Create staging guide"
&& decision.probability >= 0.85) {
proposeKnowledgeTask(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.