# Stop Paying LLM Prices for Yes-or-No Answers — Chinmay Goyal, Glean

## Executive summary

This talk argues that most steps in an AI product pipeline—such as query classification, expert routing, and citation checking—are bounded decisions, not generative problems. By replacing general LLMs with Jev, TypeSafe's decision model, Glean achieved significant improvements in latency (up to 8x reduction in expert routing) and reliability (99.2% success rate for follow-up suggestions). The shift also led to a massive increase in security classifier recall, rising from 31.5% to 90.2%, while reducing reliance on expensive resources like T4 GPUs.

## Key takeaways

- Exponential Improvement in Development: The use of consistent decision models (like Jev) in the evaluation pipeline leads to an exponential increase in product improvement, as developers can ship features significantly faster due to reduced variability and latency.
- High Reliability in Bounded Decisions: Jev achieved zero invalid outputs in the ranking step, compared to 90% success rate with a general purpose LLM, and maintained suggestions within tight time limits (1-2 seconds) in 99.2% of cases.
- Security and Recall Improvement: Security classifier recall in the first phase increased dramatically from 31.5% to 90.2% when replacing a virtue classifier with Jev, while also reducing resource and engineering costs.

## Technical details

- Query Classification and Expert Routing: Jev was used to route user queries to the correct expert, achieving an almost 8x reduction in latency compared to using a general purpose LLM for the same task.
- Ranking and Follow-up Suggestions (System Q): The ranking step uses Jev to decide the best suggestion from 10-15 independent sources, allowing for fine-tuning of probability thresholds based on customer deployment and usage.
- LLM-as-Judge for Citation Checking: Jev was used to check if a cited document supports the claim made in an answer (a yes/no bounded decision), resulting in far better latency and consistent, reproducible results compared to other methods.

## Practical implications

- The core principle of using decision models (Jev) for bounded tasks allows engineering teams to drastically reduce the complexity and maintenance overhead associated with scaling AI systems across thousands of customers.
- The shift from generative LLMs to decision models improves system reliability, ensuring that critical outputs (like suggestions and citations) are consistent and meet strict quality thresholds.
- The simple rule for deployment is: if the output can be listed in advance, use Jev; otherwise, use a free-form generative text LLM.

## Topics

AI Engineering, Decision Models, MLOps, LLM Efficiency, System Reliability, Jev, Glean, LLaMA, T4 GPUs

Source: https://www.youtube.com/watch?v=K5_ST-kMrvY
