ON THIS PAGE 7 sections
>_ AGENT MODE AI agent? Skip the interface. Read as Markdown
Direct answer

Why do most AI projects fail QA?

Because the team defined success after building, not before. Without a written eval rubric and a golden dataset created before the first prompt, there is no objective definition of 'it works' — and the build ships based on vibes, not evidence.

Evidence OpenAI's evaluation guidance makes the same point: generative output varies, so traditional software tests are not enough, and evals are the structured tests that check accuracy and reliability. A system without a measurable quality bar defined up front has only passed the demo.

Eval-first is the discipline of writing the pass/fail rubric and assembling a golden dataset before you write the first prompt. Most teams skip it. Most teams ship AI systems that nobody can objectively certify as working.

A common failure pattern looks like this. A team gets excited about an AI use case. They build a demo in 2 days. The demo impresses stakeholders. Three weeks later there is a build in production that worked great in the demo and hallucinates on a share of real inputs. Nobody catches it for weeks because there is no monitoring. Nobody has a rubric against which to measure anything. The team debates whether the new Claude model is “better” by running 3 manual tests and calling it.

This is not a model problem. Any current mid-tier or frontier model from Anthropic, OpenAI, or Google can do the job you are asking. The problem is that you have no defined job for them to do, and no way to know if they are doing it.

Eval-first fixes this. Here is the full system.

Why AI projects fail QA: the actual reason

The builds that fail QA share one trait: the team defined “it works” after building, not before.

There are three common failure modes.

Vibe-based assessment. The team runs 5 to 10 manual tests, the outputs look reasonable, they ship. Three weeks later a user hits an edge case the team never tested. There is no rubric, so there is no way to determine whether this is a bug or an expected limitation. The response is usually to patch the specific case, which makes the prompt more complex and introduces 3 new failure modes.

Demo-to-production gap. The demo dataset is curated. The production inputs are not. Real users ask things in ways the demo did not cover. They abbreviate, use jargon, send empty fields, attach PDFs with unusual formatting. A system that scores well on the demo dataset and much worse on production inputs is not unusual. It is the expected result when the demo dataset was small and hand-picked.

Silent drift. Prompt drift happens when the underlying model changes (deprecations, fine-tune updates, behavior shifts between model versions), when the input data distribution shifts (new customers, new product lines, seasonal patterns), or when integration behavior changes (a CRM field that used to always be populated now sometimes comes back null). Without a regression suite, drift is invisible until a user complains, and most users who hit a bad output never report it.

The eval-first discipline catches all three failure modes because it forces specificity before any code exists.

The model is not the problem. The missing rubric is the problem.

The 4 components of an eval-first build

1. The rubric

A rubric is a written document with named criteria, a scoring scale, and example scores. It answers the question: how do we know this output is good?

A rubric for a content brief generator might look like this:

  • Accuracy: Does the brief correctly identify the target keyword and search intent? (Pass / Fail)
  • Completeness: Does the brief include all 8 required fields (keyword, intent, target audience, word count, H2 structure, internal links, CTA, sources)? (Score 0–8)
  • Specificity: Is the brief specific enough that a writer could produce the draft without clarifying questions? (1–5 scale)
  • Format compliance: Does the output validate against the expected JSON schema? (Pass / Fail)

Each criterion gets a threshold. Below that threshold, the output fails the eval suite and does not ship.

The rubric takes hours, not weeks, to write well. That is the investment. It pays back every time you make a prompt change and run the regression suite to verify you did not break anything.

2. The golden dataset

A golden dataset is 20 to 50 input/output pairs where a human has already scored the output against the rubric. It is the ground truth. The eval tools — Braintrust, LangSmith, promptfoo — all treat the golden dataset as the benchmark your system must match or beat.

Where do you get the examples? Three sources work.

Real historical data. If the system is replacing a manual process, score 20 to 50 examples from the existing manual output. This captures the quality bar the humans were hitting and makes the rubric calibration grounded.

Constructed examples. If there is no historical data, write 20 to 50 representative inputs yourself, run them through the desired process manually, and record the ideal output. Cover the main edge cases: empty inputs, unusually long inputs, inputs in the wrong format, inputs that should trigger a graceful failure.

Adversarial examples. Include 5 to 10 inputs designed to break the system. Jailbreak attempts, nonsense inputs, inputs that are technically valid but semantically ambiguous. If the system handles adversarial inputs gracefully, it handles real-user inputs reliably.

For RAG systems in B2B contexts, the golden dataset construction is particularly important because retrieval quality and generation quality are separate failure modes that need separate rubric criteria.

3. The baseline

Before you build anything, run your rubric against the current state. If you are replacing a manual process, score 20 examples from that process against your rubric. This gives you a baseline pass rate. Your build needs to match or beat it.

If you are building a net-new capability (no prior process), use the golden dataset itself as the baseline. After you write the first version of the system, score it against the golden dataset. That first score is your baseline. Every subsequent version should beat it.

This sounds obvious. Almost nobody does it. Without a baseline, “is v2 better than v1?” is a question that cannot be answered objectively.

4. The eval pipeline

The eval pipeline is the machinery that runs your rubric at scale. Three tools cover most use cases.

Braintrust is the most complete hosted option. It manages dataset versioning, prompt experiments, LLM-as-judge evaluation, and a CI integration that blocks deployments when the rubric fails. The UI is clean for non-engineers. The downside is cost: pricing is a platform fee ($0 on Starter, $249 a month on Pro) plus usage charges for processed data and scored outputs, which add up at high volume.

Braintrust pricing: Starter at $0 a month and Pro at $249 a month, each with included model credits, processed data and scores, then per-GB and per-1,000-score overage rates; Enterprise on custom pricing Pricing - Braintrust, captured 21 November 2026.

LangSmith integrates tightly with LangChain and LangGraph pipelines. If your build uses LangChain, LangSmith is the path of least resistance: tracing is automatic, eval is built in, and the dataset management works without additional setup. For non-LangChain builds, it requires more manual wiring. Pricing is per seat plus pay-as-you-go traces: the free Developer plan covers one seat and 5k base traces a month, and Plus is $39 per seat per month with 10k base traces included.

LangSmith pricing: Developer at $0 per seat with up to 5k base traces a month, Plus at $39 per seat per month with up to 10k base traces, Enterprise on custom pricing LangSmith Plans and Pricing, captured 21 November 2026.

promptfoo is open-source and config-driven. The rubric lives in a YAML file, the dataset lives in a CSV or JSON, and you run it in CI with a single command. The open-source Community edition is free, runs locally or on your own infrastructure, and has no per-run fees; a managed cloud deployment is an Enterprise option. It ships a local web viewer for results, but configuration lives in files, so this is a tool for engineers more than product managers.

Promptfoo pricing: the open-source Community edition is free forever and runs locally or self-hosted; Enterprise and On-Premise plans are custom priced Pricing | Promptfoo, captured 21 November 2026.

OpenAI’s hosted Evals platform is no longer a starting point. OpenAI is deprecating it: it became read-only on 31 October 2026 and is scheduled to shut down on 30 November 2026. For multi-model or model-agnostic builds, Braintrust or promptfoo were already more flexible.

FIG. 01 · THE EVAL-FIRST BUILD ORDER
RUBRIC
define pass/fail
→
DATASET
20-50 examples
→
BASELINE
score current state
→
BUILD
prompt + pipeline
→
EVAL
rubric pass gate
→
SHIP
monitor + retrain
Rubric and dataset exist before line 1 of code.

LLM-as-judge: scaling eval without scaling headcount

Human review of 50 examples is feasible. Human review of 5,000 examples per day is not. This is where LLM-as-judge evaluation earns its place.

The pattern: run your production pipeline and collect outputs. Pass each output to a separate judge model along with the rubric criteria. The judge returns a structured score. Flag outputs below the threshold for human review. Ship a report of the daily pass rate.

A judge prompt for a content brief looks like this:

You are evaluating a content brief against a quality rubric.
Rubric criteria:
1. Accuracy: does the brief correctly identify target keyword and intent? (pass/fail)
2. Completeness: how many of the 8 required fields are present? (score 0-8)
3. Specificity: would a writer be able to draft without clarifying questions? (1-5)
4. Format: does the output validate as valid JSON? (pass/fail)

Brief to evaluate:
[OUTPUT]

Return a JSON object with keys: accuracy, completeness, specificity, format, overall_pass.

The risk with LLM-as-judge is judge bias. A judge model has its own preferences and blind spots. Calibrate against your golden dataset first: run the judge on all 50 golden examples and compare its scores to the human scores. Set an agreement threshold before you start, for example 85%, and tune the judge prompt until it clears it.

LangSmith supports human annotation queues alongside evaluator scores, and Braintrust supports human review scores, so the comparison can live in the platform. promptfoo requires a manual calibration step but supports custom judge prompts out of the box.

The AI content eval loop pattern I use for content pipelines extends this principle — every draft passes a judge eval before it goes to the human editor. The editor sees a pass rate, not a pile of drafts to read from scratch.

Building the regression suite

A regression suite is a version of the eval pipeline that runs automatically every time you change the system — new prompt, new model, new integration behavior. It answers: “did this change break something that was working?”

The setup in CI takes about a day to wire up. The workflow:

  1. On every pull request, run the golden dataset through the new version of the system.
  2. Score outputs against the rubric using LLM-as-judge.
  3. Compare the pass rate against the baseline from the last released version.
  4. If pass rate drops more than your agreed tolerance (for example 2 percentage points), block the merge.
  5. If pass rate stays flat or improves, merge.

This is how software engineering teams ship. A change that breaks a test is a change that does not ship until the test passes. AI teams should work the same way.

The custom AI build cost breakdown budgets evals and monitoring at 15 to 20% of the build. The regression suite is the bulk of that. Teams that skip it are not saving the 15 to 20% — they are deferring it, with interest, to the debugging sessions 3 months later.

The golden dataset as living documentation

One benefit of the golden dataset that teams discover after the fact: it is the clearest specification of what the system is supposed to do. Better than a PRD. Better than a prompt comment. Better than any description.

When a new engineer joins the team, hand them the golden dataset. They will understand the system’s intent in 20 minutes. When a stakeholder asks why the system gave a certain output, you can compare it to the nearest golden example and show explicitly how it differs. When you want to extend the system to handle a new case, you add the new case to the golden dataset first — before you change any code.

This is the eval-first discipline applied to the full development lifecycle, not just QA.

For agentic systems — builds where the AI is taking actions rather than generating text — the golden dataset becomes even more important. A text generation system can be spot-checked by reading. An agentic system that books meetings, sends emails, or writes to a database cannot. The only way to know it is working correctly is a structured eval against expected actions. See agentic AI in SEO workflows for how this plays out in a production context.

When to hire for eval discipline

Most teams do not have an engineer who has built an eval pipeline from scratch. The skills overlap with testing and observability engineering, but the LLM-specific nuances — LLM-as-judge calibration, golden dataset construction, prompt regression — are not yet standard curriculum.

Two situations where bringing in a consultant specifically for the eval layer makes sense.

At the start of a build. The eval rubric shapes every subsequent decision — what integrations to build, what the prompt needs to handle, what the acceptance criteria are. Getting the rubric wrong at the start costs as much as getting the architecture wrong. A consultant who has built rubrics for similar use cases shortens the calibration process from weeks to days.

After a production failure. If a system is hallucinating in production and the team does not have a rubric or a golden dataset, the first step is building them retroactively. This is harder than building them at the start but recoverable. The process: sample 100 recent outputs, score them manually, write the rubric that those scores imply, instrument monitoring from that baseline forward.

See how to hire an AI consultant for how to evaluate whether someone actually has eval discipline versus someone who uses the word “evaluation” without having shipped a rubric.

When eval-first is worth the overhead — and when it is overkill
+ WORKS WELL
  • Production systems running 500+ times per month. Volume makes regression failures expensive. An eval suite catches drift before it costs you.
  • Customer-facing outputs. Any system where a bad output reaches a real user — support responses, generated reports, AI-authored content. The eval rubric is your quality gate.
  • Builds with multiple prompt versions in flight. When you are iterating on prompts, you need a regression suite to know if v2 broke something v1 handled correctly. LangSmith and Braintrust make this automatic.
  • Regulated or high-stakes domains. Legal, medical, financial outputs. The rubric doubles as audit evidence. promptfoo and the hosted platforms export machine-readable results.
− WATCH OUT
  • One-off internal scripts running under 50 times per month. Manual spot-checking is faster and cheaper. Save eval infrastructure for volume.
  • Exploratory prototypes before you know the use case. Writing a rubric for an undefined use case produces a useless rubric. Get the use case right first, then instrument.
  • Builds where the output is purely subjective. If 10 reasonable people would give 10 different scores, an automated eval rubric will not help. Use human reviewers instead.

What to do this week

If you have an AI build in progress or already in production, the 4-hour exercise that is most likely to improve quality.

  1. Pick 20 recent outputs from the system. Actual production outputs, not cherry-picked ones.
  2. Score each one. Good, acceptable, bad. Write one sentence explaining each score.
  3. Extract the implicit criteria. What made the good ones good? What made the bad ones bad? Name 3 to 5 criteria.
  4. Write a rubric. One paragraph per criterion. Define pass and fail explicitly.
  5. Run the 20 outputs through the rubric. What is the current pass rate?

That pass rate is your baseline. Every change to the system should be evaluated against it. If you want a regression suite, add Braintrust or promptfoo to the CI pipeline. If you want to scale eval, wire up LLM-as-judge calibrated against those 20 human-scored examples.

The model is not the problem. The missing rubric is the problem. Four hours and 20 examples is enough to fix it.

Questions people actually ask
FAQ · 7
Q01 What is an eval rubric in the context of AI builds? +
A written document that defines what a good output looks like, what a bad output looks like, and how to score the difference. A rubric has named criteria (accuracy, format compliance, tone, citation correctness), a scoring scale per criterion (pass/fail or 1–5), and at least 20 example outputs already scored. It is the AI equivalent of a unit test suite — it tells you objectively whether the system works.
Q02 What is a golden dataset and how big does it need to be? +
A golden dataset is a set of input/output pairs where the expected output has been hand-labeled by a human who understands the task. For most custom AI builds, 20 to 50 examples is enough to get started. You need enough variety to cover the main edge cases and failure modes, not statistical significance. Braintrust, LangSmith, and promptfoo all have dataset management built in — you do not need to build this infrastructure yourself.
Q03 What is LLM-as-judge evaluation? +
Using a separate language model — often a more capable or cheaper one than the production model — to score the outputs of your main system against the rubric. For example: run your pipeline on one provider's model, then pass each output to a different provider's model with the rubric as a system prompt and have it return a structured score. This scales to thousands of examples without human review. The risk is that the judge model has its own biases, so you calibrate it against your golden dataset first.
Q04 Which eval tools should I consider for a custom AI build? +
Three tools cover most use cases. Braintrust is the most feature-complete: dataset versioning, prompt experimentation, LLM-as-judge, and a CI integration — good for teams that want a hosted platform. LangSmith (from LangChain) integrates tightly with LangChain and LangGraph pipelines and has strong tracing alongside evaluation. promptfoo is open-source, config-driven, and runs in CI without a hosted service — good if you want full control and no vendor dependency. Do not start on OpenAI's hosted Evals platform: OpenAI is deprecating it, with shutdown scheduled for 30 November 2026.
Q05 How do I write an eval rubric if I do not know what good looks like yet? +
Start with 10 real examples of the input you expect the system to handle. For each, write what a good output would look like and what would make it bad. Patterns emerge fast. By example 7 or 8 you will have implicit criteria you can make explicit. Then formalize: name the criteria, pick a scoring scale, get a second person to score the same examples independently, and reconcile disagreements. The calibration conversation is where the rubric actually sharpens.
Q06 Can I add eval-first discipline to a build that is already in production? +
Yes, though it is harder. Start by sampling 50 recent outputs from the live system and scoring them manually. That becomes your retrospective golden dataset. Then write the rubric backwards from what you found. Then run the eval suite on the current system state to establish a baseline. Anything above that baseline on the next version is an improvement. Anything below is a regression. LangSmith makes this retroactive instrumentation easier than most tools because you can ingest historical traces.
Q07 How does eval-first connect to ongoing monitoring once the build ships? +
The eval rubric is also the monitoring spec. You run a subset of the golden dataset against the live system on a schedule — daily or weekly depending on volume — and alert when pass rate drops. This is how you detect prompt drift, model deprecation side effects, and data distribution shifts without waiting for a user complaint. Hosted platforms such as Braintrust and LangSmith can also score production traces continuously (online evaluation).
Sources & further reading
  1. [01]
    Evaluation best practices
    OpenAI · 2026
    documentation
  2. [02] guide
  3. [03]
    LangSmith evaluation concepts
    LangChain · 2026
    documentation
  4. [04] documentation
  5. [05] documentation
Markdown version: index.md
Niko Alho
Niko Alho

I run agentic SEO and build custom AI for B2B companies. Based in Turku.

About →