Skip to content

Jev directory

Jev Prompt Optimization

Open-source tool that automatically optimizes the instructions and decision criteria of TypeSafe Jev Choice definitions from labeled data, searching with EvoPrompt or GEPA and scoring candidates with a normalized Brier score.
Stars
1
Language
Python
License
MIT
Reading time
2 min
Published by
Community
Author
j341nono
Last verified
Oct 2026

automatically optimizing the instructions and decision criteria of TypeSafe Jev Choice from labeled data

Forks
0
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

Highlights

  • Optimizes only the instructions and each criteria description; criterion label names such as billing and technical stay fixed.
  • EvoPrompt evolves a population (fitness_sample_size=auto uses min(train, max(12, 4 x label_count))); GEPA uses natural-language feedback.
  • Primary metric is 1 - Brier/2 on a 0-to-1 higher-is-better scale; accuracy, NLL, gold-label probability, margins and Jev confidence are kept as diagnostics.
  • Web UI at localhost:5173 or CLI: jevopt validate and jevopt optimize with --max-metric-calls, --output, --train/--validation and --demo.
  • Requires Python 3.12+, uv and Node.js, plus TYPESAFE_API_KEY and OPTIMIZER_API_KEY; each run calls external APIs, so review the metric-call budget.

Quickstart

bash
git clone https://github.com/j341nono/jev-prompt-optimization.git
cd jev-prompt-optimization
cp .env.example .env
uv sync
uv run jevopt web

Watch out

Grounded on the truncated README and GitHub metadata reviewed 2026-10-15; the README's Scope section is cut off after one letter and no benchmark numbers are given for the optimizer's gains on real datasets. The fitness sample formula and Brier metric come straight from the README.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai