Understand Jev / Lesson 4 of 24

Ask precise questions

Turn a product need into one bounded judgment with clear instructions, criteria, and answer meanings.

After this moduleYou can choose a primitive, write a focused question, and test its boundaries with examples.

Ask for one decision at a time

Once state is clear, define the judgment. "Analyze this document" is too open. "Does this passage explain how an index speeds up a lookup?" asks one answerable question about supplied evidence.

question: a typed Jev evaluation with instructions that state what to judge and criteria that define the allowed answers. The application gives each question an ID so it can match the response, but the ID is not the meaning. A key named relevant still needs complete instructions.

Trace this example from input to result
01

Customer choice

A reading app needs to decide whether a passage directly teaches a requested topic.

02

Request or event

It sends goal and passage state with one relevance question.

03

Backend behavior

Jev evaluates the stated relationship and returns the chosen typed shape.

04

Customer sees

The passage receives a relevance signal that ranking code can use.

05

Diagnostic reasoning

Read the instructions and criteria beside positive, negative, and borderline examples.

Write literal instructions and useful criteria

Instructions should name the relationship, the relevant fields, and any important boundary. Criteria describe what the possible answers mean. Keep the wording direct and consistent.

const teachesRequestedTopic = {
  type: "noul",
  instructions: {
    question: "Does candidate.passage explain the topic in readerGoal?",
    focus: "Judge teaching relevance, not writing style or publication date.",
  },
  criteria: {
    true: "The passage explains the requested concept or how it works.",
    false: "The passage only mentions the concept, discusses another topic, or lacks enough content.",
  },
};

The criteria clarify a useful boundary: mentioning a term is not the same as teaching it. They also exclude publication date because code already handled that exact rule.

Avoid combining questions that could be useful independently. "Is this recent, accurate, beginner-friendly, and relevant?" hides four possible reasons for a low result. Code can calculate recency. Separate Jev questions can evaluate relevance and beginner fit if both signals help the product.

Customer seesApplication doesJev returns
A relevant passageDefines what teaching relevance meansOne typed judgment for that definition
A recent-only filterCompares timestamps in codeNo date calculation
A beginner badgeUses a separate question about assumed knowledgeNo combined mystery score

Make the answer space fit the decision

Jev offers three core primitives. You will study each next:

  • Noul asks whether one proposition is true
  • Choice selects one winner from options you provide
  • Score places evidence along ordered levels you describe

Pick the primitive from the meaning of the answer. Use Noul for "Does this passage teach the topic?" Use Choice for "Which one subject best describes this passage?" Use Score for "How directly does this passage answer the query?"

For Choice, include a valid other or none option when the listed categories may not fit. Otherwise Jev still has to pick a relative winner. For Score, describe each level as a recognizable situation. For Noul, make sure a high value always means yes to a plainly worded proposition.

const subject = {
  type: "choice",
  instructions: "Which subject best describes candidate.passage?",
  criteria: {
    databases: "Database storage, queries, indexes, or transactions",
    networking: "Protocols, requests, routing, or network behavior",
    frontend: "Browser UI, styling, accessibility, or client state",
    other: "No listed subject is the main topic",
  },
};
Applied diagnosis

A design article is labeled frontend

options: databases, networking, frontend · no other option

Frontend may simply be the least-wrong supplied option. Add a defined other outcome, test it on real off-topic passages, and let code decide whether those items stay unclassified.

Review questions with examples

Before wiring a question into product behavior, write clear positive, clear negative, and borderline examples. Include missing information and realistic distractions. The exercise often reveals vague terms earlier than a live call does.

A question definition is application logic, so keep it in code and version meaningful changes. You do not need advanced production machinery to start; a version string and a small labeled example set are enough to compare revisions.

Dig deeperStructured instruction fields are still text

Keys such as question, focus, examples, and notFor are useful conventions for organizing meaning. They are not magic protocol commands. Jev sees the structured content, so choose names that help a human reviewer understand it too.

Precise does not mean unnaturally short. A bounded judgment may need a definition, exclusion, and example. The test is whether the pieces clarify one decision rather than hiding several decisions together.

Saved locally

Write one precise typed question

Your answers stay in this browser. Write enough that another engineer could continue the investigation.

Knowledge check

Check your understanding

Turn one product need into a precise question with a fitting primitive and complete answer meanings.
Module quiz

0/3 answered

01Which question is most focused?
02When should a Choice include `other`?
03What makes criteria useful?
Sources and verification notes 7
Primitives overviewpublic-contract

Independent named questions and typed answers. Its approximate 32k wording differs from the model page's more specific 64k aggregate and 32k longest-question limits.

Advanced questionspublic-contract

Structured instructions and descriptions; meaning must be explicit in model-visible fields.

Noulpublic-contract

Probability for the stated binary condition, optional true/false criteria and no separate confidence field.

Choicepublic-contract

Relative selection, labels, descriptions, full probabilities and confidence.

Scorepublic-contract

Ordered rubric, weighted expected index, legend, probabilities and confidence; numerical calibration has documented limitations.

Jev 1.13 limitationspublic-contract

Literal interpretation, arithmetic, dates, representations, indirection, irrelevant and adversarial text, criteria and calibration limitations. Reviewed model page dated September 17.

Official TypeSafe skillcurrent

Inspected and installed starter instructions; boundaries between supplied state, judgment and application policy.

Further learning

Optional references

These resources provide public documentation and examples for readers who want them.

Official documentationAdvanced question structureOfficial documentationPrimitives