Jev Academy

Lesson 4 · path 2

State: what gets judged

State is the material the model judges. Send it as a string, an object, or an array. Only include what the questions need. Keep facts in the state and judgments in the questions.

What State is

State is the material you want judged. It might be a message, an article, an app snapshot, or records plus a policy.

Each request has one state. Every question sees that same state, and each question is judged on its own. (State)

Think of State like a folder you hand to a judge. The judge only sees what you put in the folder.

Formats you can use

  • String: one message, article, or passage.
  • Object: named fields or related records. This is usually the best pick.
  • Array: a list of messages or records, in order.

Rules of thumb

  • Keep facts in the state. Keep judgments in the questions.
  • Only send what the questions need. Extra stuff just adds noise.
  • Don't count on the model already knowing your private or up-to-date facts. Put those in the state.
  • Text only for now. No images, audio, or video.

Next

Run the Noul, Choice, and Score labs.

Sources