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
- Clone and install as in the install section:
git clone https://github.com/kyegomez/open-jevthenpython -m pip install "torch>=2.0" - 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
- Create the model with JevConfig and call it inside torch.no_grad() on a list of states and a list of questions
- 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer