You make 50 million yes/no and routing decisions a day with an LLM. Would you use a decision endpoint that returns probabilities, structured output with a label, or logprobs you read yourself? How do you set and maintain the thresholds?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
At that volume this is a classifier problem that happens to use an LLM, so I want a calibrated score per decision and a threshold I chose deliberately, not a label the model chose for me.
Full worked answer with diagram
At that volume this is a classifier problem that happens to use an LLM, so I want a calibrated score per decision and a threshold I chose deliberately, not a label the model chose for me.
The three options:
- Structured output with a label (
{"route": "billing"}). Easy and portable, but you get a hard decision with no confidence, so you cannot trade precision for recall, cannot build an abstain band, and cannot tell a 51% call from a 99% one. Asking the model to also output a "confidence" number is not a fix: verbalised confidence is poorly calibrated. You also pay output tokens on every call. - Logprobs you read yourself. Frame the answer as a single token and read its probability. This is the classic approach and works well on self-hosted models and on APIs that still expose logprobs, but many current frontier models do not (GPT-6 Astra returns none), and you own the plumbing: label tokens, tokenization quirks, renormalising over valid labels only.
- A decision endpoint. OpenAI's Decisions API, generally available after a DevDay 2026 preview, returns predicate answers as a probability and choice and score answers as a probability distribution plus a confidence value. It runs only on gpt-6-luna, does not charge for output tokens, and OpenAI claims it is about 10x faster than the Responses API. Its docs tell you to set thresholds from labelled examples, weighing false positives against false negatives.
For 50M decisions a day I would test the decision endpoint first, because cost and latency dominate at this scale and it returns exactly the artifact I need. The trade-offs: it locks you to one provider and one model, so the portable fallback (logprobs on a self-hosted open model, or a small fine-tuned classifier) should stay warm in shadow. And at this volume, check whether a distilled classifier trained on the LLM's labels would do the job at a fraction of the cost; the LLM may be the labeller rather than the production model.
Setting thresholds:
- Build a labelled set from real traffic, stratified by route, a few thousand items at least for the rare classes.
- Check calibration with a reliability plot before trusting raw probabilities. RLHF-tuned models are often overconfident; if needed, fit temperature or isotonic scaling on a held-out split.
- Pick the threshold from costs, not from 0.5: if a false positive costs 10x a false negative, the threshold should move a long way. Define an abstain band in the middle that routes to a bigger model or a human, and size it to your escalation capacity.
Maintaining them:
- Monitor the score distribution daily. A shift in the histogram is your earliest drift signal, before labels arrive.
- Re-label a small random sample continuously and track precision and recall per class.
- Recalibrate on every model snapshot change. A new snapshot can shift scores without changing accuracy, and an unchanged threshold on shifted scores is a silent policy change.
Worth sketching. Drawing it is optional, but it shows that the threshold sits outside the model and is owned by you.
flowchart LR
A["Request"] --> B["Decision endpoint<br/>returns probability"]
B --> C{"Above upper<br/>threshold?"}
C -->|"yes"| D["Act automatically"]
C -->|"no"| E{"Below lower<br/>threshold?"}
E -->|"yes"| F["Reject or default route"]
E -->|"no"| G["Abstain band:<br/>bigger model or human"]
What a good answer covers
- At that volume this is a classifier problem that happens to use an LLM, so I want a calibrated score per…
- Structured output with a label ({"route": "billing"})
- Logprobs you read yourself
- A decision endpoint
- For 50M decisions a day I would test the decision endpoint first, because cost and latency dominate at…
Key terms: Structured output with a label · Logprobs you read yourself · A decision endpoint · Monitor the score distribution daily
In the glossary: Structured output · Logprobs · Calibration · Temperature · Precision and recall · Accuracy
Interviewer follow-ups to expect
How would you detect that a new model snapshot shifted the score distribution without changing accuracy?
When would you replace the LLM with a distilled classifier trained on its labels?
How do you size the abstain band against human review capacity?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep