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.

Constructors

Link copied to clipboard
constructor(a: String, b: String, shouldMatch: Boolean, category: String = "uncategorised")

Properties

Link copied to clipboard
val a: String
Link copied to clipboard
val b: String
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String