How to Evaluate LLMs for Your Own Task: A Practical Guide and Scorecard
A step-by-step method for comparing LLMs on your own task: build a fixed test set, record exact configurations, measure correctness, refusals, latency and cost per accepted result, and download a scorecard to copy.
Short version: a leaderboard cannot tell you which model works on your documents, your code or your customers' questions. A small, fixed test set with answers written before you look at any output can. This guide gives a method you can run in a day, a worked example with the arithmetic shown, and a scorecard you can copy.
This is a method guide, not a benchmark: it contains no model rankings and none of the example numbers below are measurements of any real model.
Step 1: define the task and what "accepted" means
Write one sentence for the task ("extract the renewal date and cite the clause") and one for acceptance ("a reviewer would sign it off without editing"). If you cannot define acceptance, you cannot compare models, and every later metric depends on it.
Decide up front what is unacceptable, for example an invented citation or a wrong number. Those are failures regardless of how good the rest looks.
Step 2: build a fixed test set
- Size: 30–50 cases is a practical starting point for a pilot. It is enough to reveal large differences and obvious failure modes, not enough for statistical certainty. Add cases where the models disagree.
- Coverage: typical cases, hard cases, cases where the correct answer is "the document does not say", and malformed or hostile input (including text that tries to give the model instructions).
- Provenance: use documents you are permitted to use, or synthetic ones. Do not put confidential or regulated material into a service you have not approved for it.
- Answers first: write the expected result for each case before running any model. If you judge outputs first, you will rationalize them.
- Two sets: a development set to tune prompts, and a held-out set you do not touch until the final comparison. Otherwise you are measuring how well you tuned to the test.
Step 3: fix the configuration and record it
For every run, record the provider, exact model ID, date, prompt, settings (reasoning or effort level, temperature where applicable), tools, retrieval setup and any structured-output schema. Model aliases and defaults change, so a result without its configuration cannot be reproduced.
Use the same instructions and the same inputs for every candidate. If tools differ in what source material they can reach (a platform with a built-in legal database versus a bare API), record that; it is a product comparison, not a controlled model comparison.
Step 4: measure what matters
| Measure | How to record it |
|---|---|
| Correctness | Against the pre-written answer: correct, partly correct, wrong |
| Source support | Whether each claim traces to the supplied material; count unsupported claims |
| Format validity | Does it parse and match the schema? Record this separately from correctness |
| Refusals and abstentions | Refused when it should answer? Answered when it should say it does not know? |
| Latency | Median (p50) and the slow tail (p95), not just the average |
| Cost | Token cost for the whole workflow, including retries and multiple calls |
| Reviewer time | Minutes to check and correct each output |
| Stability | Repeat a subset of cases several times and note whether results change |
Format validity is not correctness. A structured-output mode can guarantee well-formed JSON while the values are wrong; see the worked example in the data extraction guide.
Latency: why the tail matters
p50 is the median: half of requests are faster. p95 is the value that 95% of requests are at or under, so one in twenty is slower. A worked example with 20 hypothetical request times in seconds, sorted:
1.1, 1.2, 1.2, 1.2, 1.2, 1.2, 1.3, 1.3, 1.3, 1.3, 1.4, 1.4, 1.4, 1.4, 1.5, 1.5, 1.6, 1.7, 2.9, 4.8
Using the nearest-rank method, p50 is the 10th value (1.3 s) and p95 is the 19th value (2.9 s). The mean is 1.60 s and the maximum is 4.8 s. The average looks fine; a user who hits the tail waits more than twice as long. With only 20 samples the p95 is a rough indicator, so collect more before promising a latency target.
Cost per accepted result
Token cost alone misleads. Use:
cost per accepted result = (total token cost + total review cost) ÷ number of accepted results
Hypothetical example: 50 cases. Model A costs $0.002 per case in tokens, and 41 of 50 outputs are accepted as they stand; the other 9 need 4 minutes of correction at a reviewer cost of $30 an hour ($2.00 per correction). Model B costs $0.020 per case, and 48 of 50 are accepted; 2 need correction.
- Model A: token cost 50 × $0.002 = $0.10; correction cost 9 × $2.00 = $18.00; total $18.10. If corrected outputs count as accepted, that is $18.10 ÷ 50 = $0.362 per accepted result.
- Model B: token cost 50 × $0.020 = $1.00; correction cost 2 × $2.00 = $4.00; total $5.00 ÷ 50 = $0.100 per accepted result.
Here the model that is ten times dearer per call is cheaper overall. With different error rates the answer flips, which is the point: measure it. Use the cost calculator for the token component at your volume.
Score critical fields separately from overall quality
Before running the evaluation, identify the errors that would make an output unusable even if everything else looks good. A wrong currency, reporting period or account identifier may require rejection regardless of the average field score.
Use a field-level worksheet alongside the case-level scorecard:
| Case ID | Field | Expected value | Predicted value | Evidence correct? | Critical? | Outcome |
|---|---|---|---|---|---|---|
| Synthetic-01 | Currency | USD | USD | Yes | Yes | Pass |
| Synthetic-01 | Reporting period | Q2 | Q1 | No | Yes | Fail |
| Synthetic-01 | Reference number | Absent | Absent | Not applicable | No | Pass |
These rows illustrate the format; they are not model results. In this example, the reporting-period failure blocks acceptance even though two of three fields pass.
For extraction tasks, distinguish precision from recall: precision asks how many populated predictions were correct; recall asks how many expected populated fields were recovered correctly. Score absent fields separately so a system does not look accurate simply because most optional fields are empty.
For a release decision, retain the test-set version, schema version, model configuration and critical-error policy. Re-run the affected cases when any of these change, and use new held-out examples when tuning has exposed the original test answers. Passing a finite test is evidence for a decision, not a guarantee that production will never fail.
Step 5: decide with thresholds you set in advance
Before running the comparison, write the pass conditions: for example, "no unsupported claims on the hard cases", "at least 90% accepted", "p95 under 4 seconds", "cost per accepted result under X". Then pick the cheapest configuration that passes. If nothing passes, change the approach (retrieval, prompt, human step, a stronger tier) and test again on fresh cases.
Common ways evaluations go wrong
- Judging on a few impressive demos rather than a fixed set.
- Tuning on the test set, then reporting the result as if it were unseen.
- Comparing different conditions: different prompts, tools, reasoning settings or source access across candidates.
- Using an LLM as the only judge. Model judges have known biases and should be checked against human labels on a sample before you rely on them [1].
- Ignoring the tail: averages for latency and cost hide the cases that cause incidents.
- Treating a vendor or leaderboard score as your result. Use scores to build a shortlist, then test.
Copy the scorecard
The CSV below has the columns used in this guide, plus two example rows showing how to fill it in. Use one file per task; add one row per case per model per run. It is a plain text file with no sign-up.
Download the evaluation scorecard (CSV)
Apply the method to your use case
- Coding: a small test with automated tests is in the coding guide.
- Legal documents: the trial worksheet and contract-review checks are in the legal guide.
- Extraction: per-field accuracy and null handling are in the data extraction guide.
- Finance: period, unit and calculation checks are in the finance guide.
- Invoices: line items, exceptions and cost per accepted invoice are in the invoice processing guide.
- Summaries: a faithfulness checklist is in the summarization guide.
- Retrieval: test retrieval and answer quality separately; see the RAG guide.
- Feedback analysis: topic precision, recall and counting rules are in the customer feedback analysis guide.
- Support bots: a rubric and cost example are in the customer support guide.
FAQ
How many test cases do I need?
Thirty to fifty is a reasonable starting pilot. It reveals large differences, not small ones; add cases where candidates disagree and repeat the comparison on a fresh held-out set before a big decision.
Should I use an LLM to grade the outputs?
Only as a helper, and only after checking its grades against human labels on a sample. For anything high-stakes, a qualified human reviewer decides what counts as correct.
Can I reuse a public benchmark instead?
Benchmarks can inform a shortlist, but they measure a fixed set of tasks under specific conditions, which may not match your data or configuration.
Sources
Sizing up models for a project?
Use the picker to get a recommendation for your use case, or run the numbers on API cost before you commit.
Evaluating or building an AI workflow? Discuss it with us.