export async function compare(variants, cases, check) {
const results = {};
for (const [name, run] of Object.entries(variants)) {
const rows = [];
for (const c of cases) {
let output;A small test harness for prompts: same cases, every change
About forty lines of code that run the same cases against several variants and count passes, failures and missing results separately. Tried on our semantic search and on a small local model, where it caught a problem nobody was looking for.