Nebius developer advocate AbdulMajed Raja builds a Jev-style ticket router on hosted GLM-5.3 Flash. It asks the model for a letter and reads the probabilities assigned to the possible answers. Those scores help decide which tickets to send to a human.

Give each team a letter

  • The code requests one output token and reads its logprobs, the model’s scores for possible next tokens. It keeps track of how much probability landed on declared labels before rescaling them to sum to one.
  • The four-read version rotates the answer order to reduce position bias. It maps the scores back to teams before averaging. The demo sends a ticket to review when no team clears its confidence cutoff.

Count the mistakes that pass the cutoff

  • On 100 synthetic tickets, Nebius reports 89% overall accuracy for one logprob read and 90% for the model’s stated confidence. At the same 0.90 cutoff, one read let 2 wrong routes through out of 73, versus 6 out of 84 for stated confidence.
  • Four rotated reads let 1 wrong route through out of 68 in Nebius’s run. A further adjustment to the scores, fitted on separate examples, sent more tickets through and let 3 wrong routes through out of 79.
  • The saved run reports a 3.69-second median for the four-read routing request under evaluation load. The article’s quicker standalone example measures a different run.

Caveat: We inspected the code and saved results without calling the hosted model. A valid team label can still be wrong, and a cutoff that worked on these synthetic tickets needs testing on real ones.