Insights
Why AI Architecture Starts with Evaluation
A component built on a language model has no testable specification until its evaluation exists. Writing the cases and the acceptance bar first turns model, retrieval and prompt choices into measured architecture decisions.
- Published
- Reading time
- 3 min read
- Evaluation
- Architecture
- Generative AI
Most architecture work starts from requirements that can be tested: a response-time target, a recovery objective, an access rule. A component built on a language model breaks that habit. The same input can produce different outputs, and "the answer looks right" is not something a reviewer can verify twice in the same way. Until an evaluation exists, the system has no specification for its most important behavior.
Evaluation is the specification
OpenAI's evaluation guide starts from that nondeterminism: because a model can return different outputs for the same input, conventional software tests are not enough. Its workflow defines the objective and collects a dataset before it defines metrics, compares runs and evaluates continuously. Anthropic's documentation puts the order plainly: building an LLM application "starts with clearly defining your success criteria and then designing evaluations to measure performance against them."
The idea predates generative AI. Google's Rules of Machine Learning lists "First, design and implement metrics" as its second rule, before any rule about models. NIST's AI Risk Management Framework states that AI systems "should be tested before their deployment and regularly while in operation."
What changes when the evaluation comes first
An evaluation set written early does three architectural jobs.
- It makes options comparable. Prompting, retrieval, fine-tuning, a smaller model or a larger one can run against the same cases. The choice becomes a measured trade-off instead of a preference.
- It defines the interfaces. To grade an answer, the team must decide what the system returns: citations, a refusal reason, a structured field, a confidence signal. Those decisions shape the components behind it.
- It sets the release gate. A change to a prompt, a model version or an index ships when it meets the agreed bar on the same cases, not when a demonstration looks better.
What a first evaluation needs
A useful first set is small and specific. It covers the main task, the known edge cases and the requests the system must refuse. Each case states what a correct outcome is, in terms a reviewer can check. OpenAI's guide lists "vibe-based evals" and datasets that do not reflect production traffic among the patterns to avoid.
Automated grading helps a set grow, within limits. The MT-Bench study found that strong model judges reached over 80% agreement with human preferences, about the level at which humans agree with each other. The same study documented position, verbosity and self-enhancement biases. An automated grader should be calibrated against human judgments before it is trusted, with a human-reviewed sample kept after that.
The cost of starting elsewhere
Without an evaluation, the first design is usually chosen by demonstration. Every later change, such as a cheaper model, a new chunking strategy or an extra tool, has to be argued again, because there is no shared measure of better or worse. Evaluation then arrives late, after the interfaces are fixed, and the team discovers that the system never returned what a reviewer would need to check it.
Starting with evaluation does not slow the design down. It gives every later decision a test to pass. The Architecture Lab study How to Evaluate an LLM System walks through the components of such a loop.

