Rhys Lindmark runs Kevin Madura’s DSPy workshop classifier against Jev on the same 68 synthetic support emails. Both systems label urgency, sentiment and applicable categories. The project saves its predictions, so you can see which labels improved after tuning and which got worse.

Rewrite the prompt or change the cutoff

  • The DSPy program calls a language model separately for urgency, sentiment and categories. GEPA, a prompt optimizer, uses labeled examples to rewrite the three sets of instructions.
  • Jev answers in one request per email. It picks urgency and sentiment from menus and scores each category separately. The tuned version leaves the questions and scores alone. It learns category cutoffs and weights for the urgency and sentiment options in code.

The average improved, but some positives disappeared

  • Lindmark’s composite gives equal weight to urgency accuracy, sentiment accuracy and accuracy across all yes/no category flags. From his saved results, we recomputed 79.3% → 88.1% for DSPy and 77.6% → 87.1% for Jev. Neither figure is the share of emails with every label correct.
  • We also counted the errors for the customer-feedback label in Lindmark’s saved Jev predictions. Tuning cut false positives from 33 to 2 but raised missed positives from 0 to 7. Check the errors per label before adopting the rule that wins on the average.

Caveat: We replayed the scoring and Jev cutoff fitting offline without fresh model calls. The synthetic holdout measures label agreement, not how well the probabilities predict real-world outcomes.