score question rates the context on ordered semantic levels, lowest first. Krun returns a probability
distribution over the levels and the expected score.
Complete example
context and a questions map keyed by ids you choose (severity here); the answer comes back
under the same id. A request can mix score questions with choice and
noul questions, up to 16.
Expected score
The score is the expected level index under the distribution, not the most likely level:0 and levels − 1. With a distribution like {"0": 0.0, "1": 0.57, "2": 0.43}, the score is 1.43: “between degraded and critical, closer to degraded”, which
you can threshold, average across tickets or sort by. If you need a single level, use the most likely one from
probabilities, or round the score.
Fields
confidence is 1 − Var / Varmax, where Var is the variance of the level index under probabilities and
Varmax = ((levels − 1) / 2)² is the largest variance possible. It is 1 when all probability is on one level and 0
when it is split between the lowest and the highest level. It measures how sure the model is about the score, so a
distribution split between two neighbouring levels has higher confidence than one split between the extremes.
Question fields
Ascore question is one entry of questions:
Levels
Write levels as descriptions, not bare numbers. In a request:
["0", "1", "2"] or ["low", "medium", "high"] with no context: the model reads the level text.
Krun One was trained and evaluated on 5-level scales (response quality, harm severity, sentiment). Other level
counts work the same way, but have been validated less.
expected: {"type": "score", "value": 2} (the correct level
index).