confidence

abstract suspend fun confidence(query: String, cachedPrompt: String, similarity: Double): Double

How sure this verifier is that the response cached for cachedPrompt answers query, in [0.0, 1.0].

Parameters

similarity

the score that got this candidate here, useful for staged strategies that only spend a model call in a narrow band.