Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

System One Models with Jev

Free · sign in to start and track progress

1 · Decisions, not text

  • 1What a System One model is
  • 2Calibrated probabilities

2 · The Jev API

  • 3Your first Jev request
  • 4Choice, Score and Noul
  • 5State and decomposition

    Exercise answers

    • Answer: Build a state builder and a reads-then-computes pipeline
    • Answer: Red-team your questions with injected instructions

3 · Building systems

  • 6Routing on confidence
  • 7Jev alongside LLMs
  • 8Evaluating Jev on your data
CapstoneTriage a busy inbox with JevReference implementation

Module 2 · The Jev API · Lesson 5

State and decomposition

How to shape the state you send Jev, break broad judgments into atomic questions, keep dates, arithmetic and counting in code, and defend against content that tries to steer the answer.

70 min 1 video 3 exercises 7-question quiz Answers
Setup for the exercises:Python with uvJev, or its local stand-inInstall Claude Code

By the end of this lesson you can

  • Choose between string, object and array state, and point questions at nested fields with backtick paths
  • Filter a large record down to the context a question needs, and explain why irrelevant detail costs accuracy
  • Decompose a broad judgment into atomic Noul, Choice and Score questions and combine the answers in code
  • Move dates, arithmetic and counting out of the model, using enumerated date parts and one question per item
  • Recognise injected instructions in state and design mitigations, and use extract-then-select when you need a value

On this page

  • An analogy: briefing a panel
  • What goes into state
  • Pointing at fields
  • Send only what the question needs
  • Decompose broad judgments
  • Worked example
  • Keep dates, arithmetic and counting in code
  • Dates: Choice over enumerated parts
  • Arithmetic
  • Counting
  • Read literally, point directly
  • State is data, and data can attack
  • Extract, then select
  • Where this breaks down
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01An analogy: briefing a panel
  2. 02What goes into state
  3. 03Send only what the question needs
  4. 04Decompose broad judgments
  5. 05Keep dates, arithmetic and counting in code
  6. 06Read literally, point directly
  7. 07State is data, and data can attack
  8. 08Extract, then select
  9. 09Where this breaks down
  10. 10Summary

Sources & further reading

  • Lost in the Middle: How Language Models Use Long ContextsPaper · Liu et al. · Stanford · 2023The classic evidence (TACL 2024) that models use information at the start and end of a long context better than in the middle. Studied LLMs, not Jev, but it motivates filtering state.
  • Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt InjectionPaper · Greshake et al. · 2023The paper that named indirect prompt injection, where instructions arrive inside data the application processes (emails, web pages) rather than from the user. Sections 1 to 3 give the threat model.
  • Formalizing and Benchmarking Prompt Injection Attacks and DefensesPaper · Liu et al. · 2023USENIX Security 2024. A framework and benchmark of injection attacks and defences across LLMs and tasks; useful for designing your own adversarial test cases.
  • How to build with TypeSafeDocs · TypeSafe AIThe vendor's design principles. Read "Decompose the input state", "Use structure in the input state" and "Decompose the questions" (which the docs call the most important concept), then the full worked triage function at the end.
  • Jev 1.13 jaggednessDocs · TypeSafe AITypeSafe's own list of nine known failure modes, each with a recommended fix. Most of this lesson is a practical response to items 1 to 6 and 9.
  • Date extraction cookbookDocs · TypeSafe AIThe worked version of "read the parts with Choice, do the calendar in code", including relative dates, year windows and confidence gating on the weakest part.
  • Context Rot: How Increasing Input Tokens Impacts LLM PerformanceArticle · Hong, Troynikov, Huber · Chroma · 2025A study across 18 LLMs showing accuracy becomes less reliable as input grows, and that distractors hurt more at length. TypeSafe's docs use the same term for Jev.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 10 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks