DSPy’s updated ticket-triage guide moves Jev onto dspy.LM("typesafe:jev-latest"), the framework’s standard model client. The same predictor can ask whether a ticket is urgent, how severe it is, and which team should take it. The application still sets the rules that turn the model’s probabilities into those answers.
Replace the client and keep the questions
- The migration removes
dspy.experimental.TypeSafeand thedspy[typesafe]extra. There is no compatibility shim for old imports or saved client state. Check your installed DSPy version: the 3.4.1 guide still uses the old client. - With Jev, DSPy’s adapter sends typed questions and reads the provider’s answer probabilities. With a generative model, it asks the model to write probability estimates as structured JSON. The same local rules can read either, but their probability scales may behave differently.
- Jev accepts a fixed set of possible answers for each output. Keep a free-text reply or summary in a separate predictor with a generative model.
Fit the rules, then check them on fresh tickets
Noulcompares the probability of “yes” with a threshold.Scoreuses cutoffs to turn a continuous score into a severity level.Choicecan multiply option probabilities by weights before picking a category.- ReAnchor fits those settings against a metric on labeled examples. It can reuse cached replies when the request stays identical. A changed route can send different evidence to the next predictor and make another model call.
- A valid queue name can still send the ticket to the wrong team. After a model switch, compare the old and new rules on held-out tickets. Count missed urgent cases separately so they cannot hide inside an average score.
Caveat: The guide shows how to wire the predictor and tune its rules. It reports no held-out accuracy for Jev, and we did not run either backend.