GuardPair
class GuardPair(val a: String, val b: String, val shouldMatch: Boolean, val category: String = "uncategorised")
Two prompts and a verdict on whether one's cached answer may serve the other.
Parameters
a
one prompt.
b
the other.
shouldMatch
true for a paraphrase (the two need the same answer, so a guard that rejects the pair costs a hit), false for a near miss (they need different answers, so a guard that abstains lets a wrong answer through).
category
free-form label for grouping a report, such as numeric or dosage.