Every "we switched providers and quality dropped" story I hear has the same root: the evaluation was vibes, run once, on the day the account was created.

You do not need a benchmark suite. You need twenty prompts you wrote yourself, a fixed scoring rule, and the discipline to run them before and after.

The shape of the harness

  • golden.jsonl - 20 prompts, one per line, each with an id, a task type, and a short "what good looks like" note
  • runner - sends each prompt to a base URL, stores the raw output plus usage, latency, and model id
  • scorer - a rule per task type, not a single score
  • report - a table: old provider vs new provider, per prompt, per rule

Twenty is deliberate. At 20 you can read every output yourself, and you will. At 500 you will read the mean and learn nothing.

What to put in the prompt set

Weight it to what your product actually does, and make roughly a third of it adversarial:

  1. Instruction following - three constraints in one prompt ("answer in one sentence, no lists, mention the price")
  2. Structured output - strict JSON, no prose around it
  3. Long input - your real 40k-token document, asking for one specific fact
  4. Refusal behaviour - a request the model should decline, and one it should not decline but looks similar
  5. Tool calls - a function signature with an ambiguous argument
  6. Language mixing - one mixed Chinese/English prompt, since tokenizers disagree
def run(base, key, prompt, model): t0 = time.perf_counter() r = request(base, key, model, prompt) return { "model": model, "out": r["choices"][0]["message"]["content"], "usage": r.get("usage"), "latency": round(time.perf_counter() - t0, 2), "finish": r["choices"][0].get("finish_reason"), } 

Score by rule, not by preference

Each task type gets a mechanical check: valid JSON, contains the three constraints, cites the right fact, declines or does not decline as specified. Mechanical rules let you compare months apart and across providers, and they fail loudly instead of quietly.

Keep one free-text column for your own notes. That column is where the real insight lives, but it must not be the scoring input.

Compare on cost of a passing answer

The number worth tracking is cost per passing output, not cost per token:

cost = (usage["prompt_tokens"] * p_in + usage["completion_tokens"] * p_out) / 1e6 cpa = cost / max(1, passed) # cost per passing answer 

A provider that is 30% cheaper per token but needs two retries to produce a passing answer is more expensive. That single ratio catches it, and a price page never will.

Run it on the day you switch, and then monthly

Models change under you - new snapshots, new routing, new quota sources. A monthly run on the same 20 prompts is the only thing that tells you whether the change was yours or theirs.

The failure modes worth logging, because they show up in support tickets and nowhere else: truncation at the token limit, JSON wrapped in prose, silent language drift, and refusals that arrive as empty content.

Our own notes on the symptoms and their usual causes are in the FAQ; if you want the short version for a specific model, the English site lists per-model behaviour.

I maintain LONG AI, a gateway over 109 models. This harness is what we run before re-pointing a model at a different upstream seller.