Skip to content

Lesson 36 ยท Evaluation

Comparing ChatGPT and Claude Fairly

Compare ChatGPT and Claude on your own tasks with a fair test set, blind scoring and honest statistics, then choose per task without crowning a universal winner.

"Which is better, ChatGPT or Claude?" has no single answer. Both names cover several models and app features, and both change often. A useful question is narrower: which setup does my task better today, at a price and speed I accept? You can answer that with a small, fair experiment.

This lesson applies Evaluating LLM Applications and LLM-as-judge to a two-product comparison. It declares no winner, because this tutorial has run no benchmark of its own.

Decide what you are comparing

Write down both setups completely before you test:

Item to record Example of what to write
Layer API, or the app on a named plan
Model Exact model ID or the app's mode name
Settings Reasoning effort, output limit
Tools Search on or off, file access
Prompt The full text and its version
Date When you ran it

An app with web search against a bare API call without it is not a model comparison. It may still be a fair product comparison if that is how you would really use them. Say which one you are doing. In apps, also control memory and saved instructions, so one side does not know more about you than the other.

Build a task set from real work

  1. Collect 20 to 100 inputs that look like your real inputs. Include easy, typical, difficult and unusual cases.
  2. Remove personal and confidential data unless your rules and agreements allow it to be sent to each vendor.
  3. Write what a good answer must contain before you see any output.
  4. Keep a few cases hidden while you tune prompts, so you can check them at the end.

Give both sides equal care. A prompt you polished for weeks on one assistant and pasted unchanged into the other mostly tests your tuning. Spend a similar effort on each, following each vendor's own prompting guide, and keep the task and information identical.

Score blind

Reviewers have expectations. Hide which setup wrote each answer, and show the two in random order. The script below does the shuffling. The answers are placeholders written for this lesson, not output from any product.

Python Stand-in: blind and shuffled answer pairs

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Score each answer against your written criteria: correct facts, required items present, format followed, and no invented details. For checkable properties, such as valid JSON or a passing unit test, let code decide. Writing style and self-references can reveal the source, so remove obvious signatures when you can.

If you use a model as judge, remember that a judge may favor longer answers, the answer shown first, or output that resembles its own. Swap the order, consider judges from more than one vendor, and spot-check with people.

Is the difference real?

With few tasks, a small lead can be luck. One simple check looks only at the tasks where one side won and asks how often a fair coin would give a split at least this uneven. This is an exact sign test. It assumes that the tasks are independent examples of your work.

Python How surprising is this win count?

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

All three splits are 70 percent for A, yet only the largest sample falls below the common 0.05 threshold. A low p-value still does not say that the difference matters in practice, or that it will hold for other tasks.

Also run the same input more than once. Replies can vary between runs, so one lucky answer is weak evidence. Repeats of one task are not new independent tasks, so do not count them as extra wins.

Choose per task

Report quality together with cost, delay and failure types. Count the serious failures separately: a setup that is usually excellent but sometimes invents a refund rule may be unacceptable.

Task Must have Might decide it
Support replies No invented policy Review pass rate, cost per accepted reply
Code changes Tests pass Review effort, how well it fits your tools
Long documents Facts traceable to the source Input limits on your plan, citation accuracy
Daily team use Approved data handling Admin controls, integrations, price per seat

It is a normal result to use one assistant for one job and the other for another, or either for both. Features, contracts and where your data already lives can matter more than a small quality gap. If both pass, pick the one that is simpler for your team, and keep your test set so that you can repeat the check after a model change.

Do not turn your test into a general claim. "On our 40 support tickets in December, setup A passed more reviews" is honest. "A is the better AI" is not supported. Public leaderboards have a similar limit: they measure their own tasks. See Metrics: Retrieval, Benchmarks and Statistics.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Why should reviewers not know which assistant wrote an answer?

    Blind review reduces brand bias. Random order also reduces position effects.
  2. 2. Which comparison mixes up a model test with a product test?

    Search changes what information is available, so the result cannot be credited to the models alone.
  3. 3. Setup A wins 7 tasks and B wins 3. What is a sound conclusion?

    The sign test gives a high p-value for 7 against 3.
  4. 4. Before you run any test, what should you write down?

    Criteria written in advance stop you from moving the goalposts after seeing outputs.

Summary

  • Compare complete setups: layer, model, settings, tools, prompt and date.
  • Use real tasks, equal prompt effort, blind scoring and criteria written in advance.
  • Check whether the gap could be luck, and report serious failures, cost and speed.
  • Conclusions apply to your tasks on your test date, not to the products in general.

Next: Hallucinations and How to Reduce Them

Your progress is saved in this browser. No account needed.