calibrate

suspend fun calibrate(pairs: List<PromptPair>, range: ClosedFloatingPointRange<Double> = DEFAULT_RANGE, step: Double = DEFAULT_STEP, maxFalseHitRate: Double = 0.0): CalibrationReport

Embeds every pair once, then evaluates every threshold in range.

Costs one embedding call per distinct prompt, batched through Embedder.embedAll.

Parameters

maxFalseHitRate

the share of near-misses you are willing to serve wrongly. 0.0 — no wrong answers — is the default, and the right starting point.