6/16
Part 3 of 7 · A score from Yes and NoLearn and do
Ask a checker model Yes or No, and read how sure it was
A second model can read the answer and its source and answer one question: is every claim in the answer supported by the source? Asked to reply with one token, Yes or No, it gives more than a verdict. OpenAI's cookbook notes that with logprobs enabled, the API returns the log probabilities of each output token (the natural log of each token's probability), and that they enable classification or confidence thresholds.
Anthropic's coding round asked for exactly this build: given a helper that returns a token probability for each input in a batch, make a binary classifier (1 report).
print(f"{yes_probability(-0.1, -2.4):.3f} {yes_probability(-1.2, -0.4):.3f}")
The checker gives Yes a log probability of −1.2 and No −0.4. What's the chance of Yes, counting only those two tokens?
Pick one to see what it prints.
Pick an answer above to see the rest