Chinmay Goyal, a software engineer on Glean Assistant, shows AI Engineer how his team uses TypeSafe’s Jev to pick from a list of answers that the application already knows.

Give the model the choices

  • Use a decision model for jobs like labeling the intent of a query or choosing which expert answers it. Goyal reports that Jev nearly doubled the base Llama model’s quality on Glean’s intent test and reached about 90% of its fine-tuned Llama model’s score.
  • Choosing an expert took roughly one-eighth as long in Glean’s test. Goyal says the change required significant infrastructure work. For rollout, the team starts with tests with known answers, tries changes internally for weeks, and then runs customer A/B tests.

Make the suggestion deadline

  • Glean’s follow-up system gets candidate questions from roughly 10–15 sources. The ranker sees the original query, Glean’s answer and the candidates, then picks what to show.
  • With about 1.5–2 seconds to offer a suggestion, Goyal reports that 99.2% arrived on time with Jev, compared with about 90% before. The slide shows the ranker’s median falling from 4.67 to 0.67 seconds and ten invalid decisions dropping to zero in that comparison.
  • Jev returns a probability for each choice. Glean can adjust the threshold for showing a suggestion by deployment. A valid choice can still be wrong.

Separate fast checks from final judgments

  • For citation tests, Glean asks whether the cited text supports the specific claim. Goyal reports one inconsistent result in roughly 28–30 cases, a small repeatability check. Agreement between runs is separate from agreement with a human reviewer.
  • For security screening, Goyal reports that the share of positives caught by the first stage rose from 31.5% to 90.2%. A larger model still makes the second-stage assessment. The figures describe Glean’s screening test, not end-to-end protection.
  • Keep generation for tasks where the wording is the work. A fine-tuned classifier can make sense when the labels are stable and traffic is high; a promptable decision model lets the team change labels without training again.

Can the output be listed in advance? — Chinmay Goyal, 14:52