DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to prototype typed yes/no, choice, and score questions over JSON state with Open Jev

Write your own nested state and declare Noul, Choice, and Score questions to test how the typed readouts behave.

Short answer: Clone and install as in the install section: git clone https://github.com/kyegomez/open-jev then python -m pip install "torch>=2.0"; then build a JSON-like state dictionary that matches the structure of your records; Declare questions with Noul for true or false, Choice with your options, and Score with ordered labels. All steps.

  • Research
  • Intermediate
  • 45 minutes
  • From the README
  • Any agent

Who it is forAn engineer building a proof of concept for routing or triage decisions over structured records, who wants to see whether a typed readout fits the shape of the problem.

The problemFree-text generation is hard to constrain to a fixed set of labels, and it is unclear how a typed readout API would handle a custom record.

The outcomeA small script that encodes one state dictionary once and returns a list of typed answers for several declared questions.

What you need first

  • Python 3.10 or newer (recommended in the README)
  • git installed
  • PyTorch 2.0 or newer
  • Basic familiarity with running Python scripts from a terminal

Steps

  1. Clone and install as in the install section: git clone https://github.com/kyegomez/open-jev then python -m pip install "torch>=2.0"
  2. Build a JSON-like state dictionary that matches the structure of your records
  3. Declare questions with Noul for true or false, Choice with your options, and Score with ordered labels
  4. Create the model with JevConfig and call it inside torch.no_grad() on a list of states and a list of questions
  5. Print each answer and check that Choice answers use only the options you declared

Prompt for your agent

Using the repo at https://github.com/kyegomez/open-jev, write a script that builds a state dictionary from <your record file>, declares one Noul, one Choice, and one Score question, and prints the answers. Expected output is one typed answer per question; verify that every Choice answer is one of the declared options.

Caveat. The included tokenizer is a deterministic hash tokenizer, so answers will not be meaningful until a trained tokenizer and model exist, and the README says typed output does not guarantee correct predictions.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for kyegomez/open-jev and "Prototype typed yes/no, choice, and score questions over JSON state"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer