Stop Paying LLM Prices for Yes-or-No Answers

Chinmay Goyal, Glean16:05 · Nov 2026 · 6,839 views
Thumbnail for Stop Paying LLM Prices for Yes-or-No Answers Watch on YouTube
TL;DR
  1. 1

    Most AI product steps are bounded decisions such as classification, ranking, routing, and citation checks, so they do not need a full text-generating LLM.

  2. 2

    Glean uses Jev for decisions that have a known set of possible outputs, gaining lower latency, zero invalid follow-up suggestions, more consistent evaluations, and higher security-classifier recall.

  3. 3

    The practical rule is to use Jev when the output can be listed in advance, while free-form generation still belongs with a generative model.

Summary

Chinmay Goyal explains how Glean moved several product and development tasks from general-purpose LLMs to Jev, a decision model from TypeSafe. These tasks include query classification, expert routing, ranking follow-up suggestions, checking whether citations support claims, and the first phase of a security classifier. Goyal compares Jev with open models, fine-tuned models, and general-purpose LLMs. The reported benefits include lower latency, fewer infrastructure demands, predictable outputs, adjustable thresholds, and more reproducible evaluation results. Glean first tests changes on golden evaluation sets, soaks them with internal users, and then runs customer A/B tests. The talk ends with a practical selection rule: if the possible output can be listed in advance, use a decision model; if the system needs free-form text, use a generative model. Stable labels and high volume can still justify fine-tuning, while changing labels favor Jev.

Key ideas
00:38

Many AI product steps have bounded outputs

Goyal begins with a distinction between generation and decisions. Query intent classification, choosing a ranker result from several suggestions, checking whether a citation is valid, and routing a request to an expert all have a bounded answer space. Glean had been paying the full cost and latency of an LLM for these tasks. Jev fills the space between a general-purpose LLM and a fine-tuned classifier. It does not generate text, and Goyal says its prompt can be changed as the decision taxonomy changes without retraining the model each time.

02:12

Glean evaluates model changes through staged rollout

Glean does not send a change directly to its whole customer base. The team maintains a golden evaluation set for places where generative AI or other intelligence is used. It then runs the change inside Glean's own instance for several weeks, with roughly 1,500 internal users providing feedback. After working through that feedback, the team moves to an A/B test with customers. This process is meant to catch regressions before a new decision model changes the product for millions of users.

03:12

Jev improves query classification without the fine-tuning workload

For query classification, Glean compared an open-source Llama model, Jev, and a Llama model fine-tuned on Glean's own compute resources. Goyal describes Jev as the best option that does not require training in their test bed. He says it nearly doubles the output quality of the base Llama model and reaches about 90% of the quality of the fine-tuned Llama. Jev also avoids collecting and cleaning training data, repeating training as categories change, hosting the model, and paying its inference cost.

03:57

Expert routing trades implementation complexity for much lower latency

Glean routes each incoming query to the expert most likely to answer it well. The previous implementation used a general-purpose LLM. In a test bed with multiple experts, Jev produced significantly high precision with an almost eightfold reduction in latency. Integrating it required a substantial infrastructure change, which is unusual for Glean because the team prefers simple systems. Goyal says this is one of the rare cases where the latency reduction justified the added complexity.

05:27

Decision probabilities let Glean tune follow-up suggestions per customer

Glean's Q system receives suggestions from around 10 or 15 independent sources, then ranks them using the original query, Glean's answer, and the candidate suggestions. The ranker has a time limit of roughly 1.5 to 2 seconds because users should not wait several seconds after receiving an answer. Jev returned suggestions within that time limit in 99.2% of cases, compared with almost 90% for the general-purpose LLM. Jev also exposes probabilities for the available options, so Glean can adjust thresholds according to each customer's usage instead of applying one threshold everywhere.

07:44

Structured outputs removed invalid follow-up suggestions

Glean places programmatic checks around LLM outputs because a model can answer in the wrong language or violate other required criteria. With the general-purpose LLM, about 90% of suggestions were valid. Jev produced no invalid outputs in the tested cases. Goyal notes that the prompts were different, but the team tried to keep them as similar as possible. The result came from asking the decision model to choose among defined options rather than asking a generative model to produce an unconstrained response.

09:52

Consistent citation judgments make evaluation faster

Glean uses an LLM judge to check whether a cited document supports the claim made in an answer. The team repeated this evaluation because generative judges can vary between runs. Jev reduced latency and cost, and its results were more reproducible than the comparison system, which Goyal calls Luna. Across 28 or 30 use cases, only one run differed. Because the same input-output pair did not need to be run repeatedly, Goyal says developers could spend less time on evaluation and ship changes faster.

12:16

Jev raised the first-stage security recall from 31.5% to 90.2%

Glean's security checks have a recall-heavy first phase followed by a heavier LLM phase. The first phase previously used a virtual classifier hosted on T4 GPUs for each customer's separate deployment. Glean replaced that classifier with Jev and reports that recall rose from 31.5% to 90.2%. The change also reduced resource costs and removed much of the maintenance burden across customer instances. Goyal says the savings include engineering time because the team no longer needs people focused on maintaining those classifiers and GPUs.

14:31

Choose Jev when the possible output can be listed in advance

Goyal's selection rule is simple. If the output cannot be listed in advance, the problem needs free-form text generation. If it can be listed in advance, Jev is a candidate. Fine-tuning can still make sense when labels are stable and usage is high, although Goyal says stable labels are uncommon. When labels change often, Jev avoids repeated retraining. For systems that need both a bounded decision and dynamic text, he suggests a hybrid approach that combines Jev with a free-form text model.

"A simple rule that we have been using at Glean is can the output be listed in advance?"14:31
Who should watch
  • You are building an AI product that uses an LLM for classification, routing, ranking, or validation and need to reduce latency or cost.
  • Your output has a fixed set of possible decisions, but the labels or taxonomy change too often for repeated fine-tuning to be practical.
  • You maintain evaluation or security pipelines where inconsistent model judgments and per-customer classifier infrastructure create extra engineering work.