1. Home
  2. AI Labs
  3. AI evaluation and LLMOps

AI Labs · AI evaluation and LLMOps

AI evaluation and LLMOps: know it works before your users find out it does not.

Javixor Labs builds the testing and operations layer for AI applications. We create evaluation sets from your real cases, score quality, safety, speed and cost on every change, block releases that get worse, and monitor live traffic so prompt, model and data changes never quietly break what already works.

8+AI projects shipped
10+AI features running in production
5Industries with live AI work
6 weeksTypical time from idea to working pilot

Definitions

What are AI evaluation and LLMOps?

AI evaluation and LLMOps

AI evaluation is the practice of measuring how well an AI system performs on realistic cases, scoring quality, safety, speed and cost against agreed criteria.

LLMOps is the set of practices for releasing, monitoring and improving applications built on large language models, with evaluation built into every change.

LLMOpsMLOpsDevOps
What changesPrompts, models, retrieval, toolsTrained models and dataCode and infrastructure
How quality is checkedEvaluation sets, judges, human reviewAccuracy on held out dataUnit and integration tests
OutputVaries run to runPredictionsDeterministic
Main riskSilent regressionsData driftBugs and outages
Learn moreYou are herePredictive analyticsDevOps engineers

Language model applications fail differently from ordinary software. Nothing crashes. Answers just get a little worse, or unsafe for certain inputs, and nobody notices until a customer does.

Release gate

Pick a change. Would it pass the gate?

Every change to an AI application is scored against the current version on the same test suites. Choose a change and see how each suite moves and what the gate decides.

SuiteBaseline vs candidateResult
Current versionCandidateMinimum to pass

Illustration with invented scores. Real gates use your own suites and thresholds.

Judge calibration

You grade four answers. So does an AI judge.

Teams often use a language model to grade answers at scale. Before trusting it, check it agrees with people. Mark each answer good or bad against its source, then reveal the judge.

Agreement

Grade all four

Grade every answer to compare with the judge.

Illustration with invented answers.

The LLMOps loop

Six steps that keep AI getting better, not worse.

01

Collect cases

Real questions, edge cases and past failures become the test set.

02

Define criteria

What good means: correct, grounded, safe, on brand, fast, affordable.

03

Score changes

Every prompt, model or retrieval change runs the suites.

04

Gate releases

Regressions block the release or send it for review.

05

Watch live

Traces, sampled scoring, feedback, cost and drift alerts.

06

Feed back

New failures become new test cases. The loop repeats.

What we deliver

Everything you need to ship AI with confidence.

Evaluation sets

Built from your logs and experts, covering normal use, edge cases and known failures.

Scoring and judges

Code checks, reference comparisons and calibrated AI judges for each criterion.

Safety suites

Prompt injection, data leakage, harmful content and tool misuse tests. See AI security.

Release gates

Evaluation in CI with thresholds that block or flag regressions.

Tracing and monitoring

Every request traced with sources, tool calls, scores, latency and cost.

Prompt and model management

Versioned prompts, model routing and safe rollouts with rollback.

Human review workflows

Queues for experts to grade samples and settle disagreements.

Model migration

Tested switches when providers change or retire models.

RAG evaluation

Retrieval and answer metrics for search based systems. See RAG development.

Technology

Which tools do we use for evaluation and LLMOps?

Evaluation

  • promptfoo
  • Ragas
  • DeepEval
  • OpenAI Evals
  • Inspect

Tracing and observability

  • Langfuse
  • LangSmith
  • Arize Phoenix
  • OpenTelemetry

Experiment tracking

  • MLflow
  • Weights & Biases

Safety testing

  • PyRIT
  • garak
  • Custom attack sets

Pipelines

  • GitHub Actions
  • GitLab CI
  • Azure DevOps

Gateways

  • LiteLLM
  • Cloud AI gateways
  • Custom routing

The complete guide

Evaluating and operating LLM applications: from vibes to evidence.

A guide for AI engineers, product owners and technical leaders. How to define what good means for an AI feature, build evaluation sets, choose scoring methods, use and calibrate AI judges, evaluate RAG systems and agents, handle randomness, gate releases, run online experiments, trace production traffic, manage prompts and models and build a team habit of measuring.

Chapter 01

Why do vibe checks fail for AI applications?

Short answer

Trying a handful of questions by hand feels reassuring but covers a tiny, biased sample. Changes that improve those few cases often break others, and nobody notices until users complain. Systematic evaluation replaces impressions with comparable numbers.

Most AI features start the same way. A developer writes a prompt, tries a few questions, likes the answers and ships. Later someone tweaks the prompt to fix a complaint, tries the same few questions and ships again. Each change looks fine. Over time, quality drifts in directions nobody measured.

There are several reasons this fails. The people testing ask questions they already expect to work. Language model output varies, so one good result proves little. Fixing one behaviour often changes others. And model providers update models, changing behaviour without any change on your side.

Evaluation brings the discipline that software testing brought to code. A fixed set of realistic cases, clear criteria and automated scoring let teams compare versions fairly, catch regressions before release and make decisions on evidence. It also speeds teams up: when every change can be checked in minutes, people experiment more confidently.

Evaluation does not need to be perfect to be useful. A first set of fifty real cases with simple scoring already beats any number of hand checks.

Chapter 02

How do you define what a good AI output is?

Short answer

Break quality into specific criteria that matter for the use case, such as correctness, grounding, completeness, safety, tone, format, speed and cost. Write each as a clear rule with examples of pass and fail, agreed with the people who own the outcome.

"Good answer" means different things in different products. A legal research tool needs precise citations. A support assistant needs short, friendly answers that follow policy. A data extraction tool needs every field exactly right. Evaluation starts by writing these expectations down.

CriterionExample rule
CorrectnessThe answer matches the expected facts
GroundingEvery claim is supported by a cited source
CompletenessAll parts of the question are answered
RefusalSays it does not know when sources lack the answer
SafetyNo harmful content, no data from other users
Tone and formatPlain language, under a set length, follows brand voice
SpeedResponds within an agreed time
CostStays within an agreed cost per request

Each criterion needs examples. "Concise" means little until you show a concise and a wordy answer side by side. Domain experts write these examples with engineers. The same examples later become guidance for AI judges and human reviewers.

Prioritise. Not every criterion matters equally. A small number of must pass criteria, such as safety and grounding, sit alongside softer goals that can trade off against speed or cost.

Chapter 03

How do you build a good evaluation set?

Short answer

Collect realistic inputs that reflect real use, add edge cases, hard cases and known failures, record expected outcomes or grading notes for each, tag cases by type and keep the set versioned and growing. Quality and coverage matter more than size.

An evaluation set is a list of test cases. Each case has an input, such as a question, document or conversation, and a way to judge the output: an expected answer, required facts, forbidden content or a rubric.

What a balanced set includes

  • Common requests in the proportions real users make them
  • Rare but important requests
  • Ambiguous or vague inputs
  • Questions with no answer in the available content
  • Inputs with typos, slang, other languages or long rambling text
  • Adversarial and safety cases
  • Every past failure that was fixed

Tags and slices

Tag each case by topic, difficulty, language, user type and risk. Scores by slice reveal problems an overall number hides: a change might improve overall quality while making answers in one language much worse.

Start with a few dozen well chosen cases and grow to a few hundred. Keep the set in version control alongside prompts and code, so every score can be traced to the exact set it ran on. Keep a separate held out set that is not used while tuning, to check you have not simply tuned to the test.

Chapter 04

Where do good test cases come from?

Short answer

From production logs, support tickets, search queries, subject experts, user research, past incidents and red team exercises. Real inputs beat invented ones, because real users phrase things in ways teams never predict.

The best evaluation sets are built from what users actually do. Invented questions tend to be clean, well phrased and similar to each other, which makes systems look better than they are.

SourceWhat it adds
Production tracesReal questions in real proportions
Low rated answersCases where the system already fails
Support tickets and search logsQuestions from before the AI existed
Subject expertsHard, high stakes cases and correct answers
IncidentsFailures that must never happen again
Red teamingMisuse and attack attempts

Production data needs care. Personal data should be removed or masked before cases enter a test set, and access to test sets should follow the same rules as the source data. Before launch, when no production traffic exists, support logs and expert interviews fill the gap, and a pilot quickly provides real cases.

Chapter 05

When should you use synthetic test data?

Short answer

Use models to generate test cases when real data is scarce, to cover rare situations or to create variations of real cases. Always review generated cases, mix them with real ones and never rely on synthetic data alone.

Language models can generate test questions quickly: from documents, from descriptions of user types or by rewriting real questions in new ways. This helps fill gaps, especially early in a project.

Good uses

  • Generating questions from each section of a document collection to check coverage
  • Creating variations of real questions with different wording, typos or languages
  • Simulating user types, such as new customers or experts
  • Producing adversarial variants of known attacks
  • Simulating multi turn conversations for chat and agent testing

Watch out for

Generated questions tend to repeat the wording of their source document, which makes retrieval look easier than it is. They can be unrealistic or too uniform. And if the same model family generates and answers questions, it may share blind spots. Review a sample of every generated batch, discard weak cases and weight real cases more heavily when making decisions.

Chapter 06

Which scoring methods should you use?

Short answer

Use the simplest method that measures each criterion reliably: code checks for formats and rules, exact or fuzzy matching for known answers, AI judges for open ended qualities and human review for subtle or high stakes judgement. Most systems combine several.

MethodGood forLimits
Code assertionsJSON validity, length, required fields, banned wordsOnly checks what can be coded
Exact matchClassifications, extracted valuesToo strict for free text
Fuzzy and semantic similarityAnswers with expected wordingSimilar text can still be wrong
Rubric AI judgeGrounding, completeness, toneNeeds calibration, costs money
Pairwise AI judgeWhich of two versions is betterPosition and length bias
Human reviewExpert judgement, final checksSlow and costly

Code checks are cheap, fast and perfectly consistent, so use them wherever possible. Many quality rules can be checked in code: citations exist and point to provided sources, output parses, required fields are present, answers stay under a length limit.

For open ended qualities, AI judges make scale possible, and humans keep them honest. Chapters 7 to 9 cover both.

Chapter 07

How do you use a language model as a judge?

Short answer

Give the judge one clear criterion at a time, the input, the output, any reference answer or sources and a rubric with examples. Ask for reasoning followed by a simple verdict, such as pass or fail. Use a strong model and check it against human grades.

AI judges, often called LLM as a judge, grade outputs against criteria that are hard to check with code. They make it practical to score hundreds of cases on every change.

Design rules for judges

  • One criterion per judge prompt, not "rate overall quality"
  • Binary or small scales, such as pass or fail, rather than one to ten
  • A rubric with concrete pass and fail examples
  • The sources or reference answer the output should match
  • Reasoning before the verdict, so decisions can be inspected
  • Fixed settings and versioned prompts for consistency

Known biases

Judges tend to prefer longer answers, confident wording and, in pairwise comparisons, whichever answer appears first. They may favour outputs from their own model family. They can be fooled by fluent but unsupported claims, as the calibration demo above shows. Swapping positions in pairwise tests, controlling for length and calibrating against humans reduce these effects.

Judges are tools, not oracles. Their value comes from consistency at scale, checked regularly against people.

Chapter 08

How do you calibrate an AI judge?

Short answer

Have experts grade a sample of outputs, run the judge on the same sample and compare. Study disagreements, improve the rubric and examples, and repeat until agreement is high enough for the decision the judge supports. Recheck periodically.

A judge is only useful if it agrees with the people whose judgement it replaces. Calibration measures and improves that agreement.

A calibration routine

  1. Pick a sample of outputs that includes clear passes, clear fails and borderline cases.
  2. Have two or more experts grade each independently using the rubric.
  3. Resolve disagreements between experts, which often reveals unclear criteria.
  4. Run the judge on the same sample.
  5. Measure agreement, and look especially at cases where the judge passes what experts fail.
  6. Adjust the rubric, examples or judge model and rerun.

Which errors matter depends on the criterion. For safety, a judge that misses real failures is dangerous, while one that flags some safe outputs just creates extra review. For tone, small disagreements may be acceptable.

Calibration is not a one time task. When the application, users or judge model change, agreement can shift. A small recurring sample of human grades keeps the judge honest over time.

Chapter 09

How do you make human review practical?

Short answer

Review a smart sample rather than everything: borderline judge scores, low user ratings, new topics and random spot checks. Give reviewers a simple interface, clear rubrics and fast keyboard workflows, and use their grades to improve judges and test sets.

Human review is the most trusted signal and the most expensive. The goal is to put expert time where it matters most.

What to send for review

  • Outputs where AI judges are uncertain or disagree with each other
  • Outputs with negative user feedback
  • New or rare topics the test set does not cover well
  • High stakes cases, such as anything financial, medical or legal
  • A small random sample for unbiased monitoring

Making it efficient

Show the input, output, sources and rubric on one screen. Offer simple choices such as pass, fail and a reason tag. Allow quick notes. Rotate reviewers and occasionally give the same case to two people to check consistency. Tools such as Langfuse, LangSmith and Argilla offer annotation queues, or a simple internal tool can work well.

Every reviewed case should flow somewhere useful: into the test set, into judge calibration data or into a bug report. Review that does not change anything is wasted effort.

Chapter 10

How do you evaluate a RAG system?

Short answer

Score retrieval and generation separately. For retrieval, check whether the needed passages were found and ranked highly. For answers, check correctness, faithfulness to sources, citation accuracy and correct refusals when the content lacks the answer.

Retrieval augmented generation has two halves, and each can fail on its own. Measuring only the final answer hides which half to fix.

StageMeasureNeeds
RetrievalContext recall: needed passages retrievedLabelled supporting passages
RetrievalContext precision: retrieved passages relevantRelevance labels or a judge
RetrievalRank of first relevant passageLabelled passages
AnswerFaithfulness: claims supported by contextA judge with the context
AnswerCorrectness against expected answerReference answers
AnswerCitation accuracyCode checks plus a judge
AnswerRefusal accuracy on unanswerable casesCases with no answer

Frameworks such as Ragas and DeepEval implement many of these measures. They are a good starting point, but their judge prompts should be calibrated on your data like any other judge. Our RAG development page explains how these measures guide tuning of chunking, search and reranking.

Chapter 11

How do you evaluate AI agents?

Short answer

Test agents on realistic scenarios in safe environments. Score whether the task was completed, whether the path was sensible and efficient, whether tools were used correctly and whether any forbidden action was attempted. Run each scenario several times, because agents vary more than single answers.

Agents take several steps, call tools and change things. A good final message can hide a bad path, such as an unnecessary refund issued along the way.

What to score

  • Outcome: did the end state match the goal, checked in the test environment
  • Trajectory: were the steps reasonable, in a sensible order, without loops
  • Tool use: right tools, valid parameters, errors handled
  • Safety: no forbidden actions, approvals requested where required
  • Efficiency: number of steps, time and cost
  • Communication: clear updates and final summary

Test environments

Agents should be evaluated against sandboxes or mocked tools that behave like real systems: a test CRM, a fake payment API, a copy of a database. Each scenario sets up a starting state and checks the end state. Simulated users can drive multi turn scenarios. Because outcomes vary, run each scenario several times and report how often it succeeds. Our AI agent page covers agent design.

Chapter 12

How do you evaluate extraction and classification tasks?

Short answer

These tasks have right answers, so compare outputs to labelled data field by field or label by label. Measure precision and recall per field or class, check formats in code and look closely at the costliest error types.

Not every AI feature writes free text. Many extract fields from documents, classify tickets, route emails or tag content. These are easier to evaluate because answers can be checked exactly.

MeasurePlain meaning
Field accuracyHow often each extracted field is exactly right
PrecisionOf the items labelled X, how many really are X
RecallOf all real X items, how many were labelled X
Confusion matrixWhich classes get mixed up with which
Format validityDates, amounts and codes in the right format

Overall accuracy can hide the errors that matter. An invoice extractor that gets every field right except amounts is useless. A ticket router that confuses "cancel account" with "billing question" causes churn. Report results per field and per class, and weight evaluation toward the costly mistakes.

Normalisation matters before comparing: "1,000.00" and "1000" may be the same amount, and "Acme Ltd" and "ACME Limited" the same supplier. Agree normalisation rules with the business so scores reflect real correctness.

Chapter 13

How do you evaluate summaries and long document tasks?

Short answer

List the key facts each summary must contain, check coverage and accuracy of those facts, check that nothing unsupported was added and check length and format. Expert written fact lists make summary evaluation reliable.

Summaries are hard to grade with a single reference answer, because many different summaries can be good. Comparing wording to a reference rewards copying, not quality.

A fact based approach

For each document in the test set, experts list the facts a good summary must include, such as key dates, amounts, decisions and risks, and any facts that must never appear, such as confidential details for certain audiences. Evaluation then asks three questions: which required facts are present and correct, whether any statement is unsupported by the document and whether the summary meets length and format rules.

  • Coverage: share of required facts present
  • Accuracy: required facts stated correctly, including numbers and dates
  • Faithfulness: no claims beyond the source
  • Format: length, structure and audience rules met

Long documents add a further risk: facts near the middle or end are more often missed. Test sets should include long documents with key facts placed throughout, so this weakness shows up in scores rather than in customer complaints.

Chapter 14

How do you evaluate AI applications in several languages?

Short answer

Build test cases in every language you support, from native speakers or real traffic, score each language separately and calibrate judges per language. Quality often differs sharply between languages even when the overall score looks fine.

Models perform unevenly across languages. An assistant that answers well in English may give weaker, less grounded or less polite answers in Arabic, Hindi or German. If the test set is mostly English, these gaps stay hidden.

Good practice

  • Test cases written or reviewed by native speakers, not only machine translated
  • Cases that mix languages, as real users often do
  • Scores reported per language, with separate thresholds where needed
  • Judges checked against native speaker grades in each language
  • Checks for answering in the user's language when that is expected
  • Cultural and tone checks for formality and local conventions

Retrieval needs its own language checks: a question in one language should find relevant content written in another when the system is meant to support that. Adding a language to an application should mean adding its slice to the evaluation set and its gate to the release pipeline.

Chapter 15

What belongs in a safety evaluation suite?

Short answer

Prompt injection in every place untrusted text enters, attempts to extract other users' data or secrets, harmful and off topic content requests, tool misuse for agents, and checks that normal requests are not wrongly refused.

Safety evaluation turns security and policy requirements into tests that run on every release. Without it, a change that improves helpfulness can quietly weaken protections.

Typical safety categories

  • Direct prompt injection and jailbreak attempts
  • Hidden instructions inside documents, emails and web pages
  • Requests for other users' or customers' data
  • Attempts to reveal system prompts or secrets
  • Harmful, offensive or off brand content requests
  • Agent tool misuse and attempts to skip approvals
  • Over refusal: legitimate requests that must still be answered

Safety thresholds are usually stricter than quality thresholds. A small drop in tone may be acceptable. A new data leak is not. Tools such as PyRIT and garak generate large attack sets, while custom cases target your specific data and tools. Our AI security team builds and maintains these suites.

Chapter 16

How do you handle randomness when comparing AI versions?

Short answer

Run enough cases, repeat runs where outputs vary, compare versions on the same cases, look at which cases changed rather than only overall scores and treat small differences with caution until they hold across repeated runs.

Language model outputs vary between runs, and judges vary too. A version that scores slightly higher once may score slightly lower next time. Decisions based on noise waste effort and can push quality backwards.

Practical rules

  • Compare versions on exactly the same cases and settings
  • Use lower randomness settings for evaluation where the product allows it
  • Repeat runs for small sets or high variance tasks
  • Look at paired results: which cases flipped from pass to fail and why
  • Use simple statistical checks before declaring a winner on close results
  • Grow the test set where results are unstable

Looking at flipped cases is often more useful than any statistic. If a change fixes ten cases and breaks two, reading those two tells you whether the trade is acceptable. A difference that rests on one or two noisy cases is not a reason to ship or to block.

Chapter 17

How do evaluation gates work in a release pipeline?

Short answer

Every change to prompts, models, retrieval or tools triggers the evaluation suites in CI. Results are compared with the current version and with minimum thresholds. Hard failures block the release, softer regressions require review and clear improvements pass.

Release gates make evaluation a habit instead of an occasional project. They run automatically, so nobody has to remember.

A typical gate

CheckRule
Safety suiteMust pass in full, any new failure blocks
Must pass casesCritical cases that may never fail
Quality scoresAbove minimum, and not significantly worse than current
Speed and costWithin budget
Flipped casesListed in the pull request for review

Suites can be tiered: a fast smoke suite on every commit, the full suite before release and expensive extended suites nightly. Results appear in the pull request, so reviewers see the impact of a prompt change the same way they see failing unit tests.

Tools such as promptfoo, DeepEval and custom scripts run in GitHub Actions, GitLab CI or Azure DevOps. What matters is that prompts and settings live in version control, so every change goes through the gate.

Chapter 18

What is online evaluation, and when should you A/B test AI?

Short answer

Online evaluation scores live traffic, using sampled judging, user feedback and business outcomes. A/B tests compare versions on real users. Use them after offline evaluation passes, to confirm that improvements on test sets also improve real results.

Offline evaluation on test sets is necessary but not sufficient. Real users ask different questions, and the business cares about outcomes such as resolved tickets, completed tasks or conversions, not test scores.

Online signals

  • Judges scoring a sample of live responses for faithfulness and safety
  • User feedback such as ratings and reports
  • Behaviour: copies, edits, retries, abandonment
  • Business outcomes: resolution, escalation, conversion, time saved

A/B tests and gradual rollouts

An A/B test sends a share of traffic to the new version and compares outcomes. For AI changes, a gradual rollout often comes first: a small share of users, watched closely, then wider release. Shadow testing, where the new version runs on real traffic without showing results to users, is useful for checking safety and cost before any exposure. Outcome measures move slowly, so tests need enough traffic and time to be meaningful.

Chapter 19

What should you trace in a production LLM application?

Short answer

Every request end to end: input, prompt version, model and settings, retrieved sources, tool calls, intermediate steps, output, scores, feedback, latency, tokens and cost, linked by a trace ID and protected like the data it contains.

When something goes wrong in an AI application, the question is always "what exactly happened in that request?" Tracing answers it.

Trace fieldWhy it matters
Prompt and versionWhich instructions produced this output
Model and settingsWhich model, temperature and limits were used
Retrieved contextWhat sources the model saw
Tool callsWhat the system did, with inputs and results
OutputWhat the user received
Scores and feedbackHow it was judged
Latency and tokensWhere time and money went
User and sessionContext for debugging, protected for privacy

Platforms such as Langfuse, LangSmith and Arize Phoenix are built for LLM tracing, and OpenTelemetry standards for generative AI let traces flow into general observability tools such as Datadog and Grafana. Traces contain user data, so masking, access control and retention limits apply. Good traces turn hours of debugging into minutes and provide the raw material for new test cases.

Chapter 20

How do you turn user feedback into better tests?

Short answer

Collect light feedback in the interface, review negative and surprising cases regularly, find patterns, add representative cases to the evaluation set with correct expectations and fix the cause. The test set grows from real failures.

User feedback is the cheapest source of new test cases, if someone acts on it. Most teams collect thumbs down clicks and never look at them.

A weekly feedback loop

  1. Pull negative ratings, reports and heavily edited outputs from traces.
  2. Group them by cause: retrieval miss, wrong instruction, missing content, tone, safety.
  3. For each group, add a few representative cases to the test set with correct expectations.
  4. Fix the cause in prompts, retrieval, content or tools.
  5. Confirm the fix with the gate, which now includes the new cases.

Some feedback reveals content gaps rather than AI problems: the answer was not in the documents. These go to content owners. Over months, this loop makes the test set an accurate map of where the application has struggled, which is exactly what a regression suite should be.

Chapter 21

How should prompts be managed in production?

Short answer

Treat prompts as code: version them, review changes, test them with the evaluation gate, deploy them through the same pipeline and keep the ability to roll back. Separate prompt templates from application code so they can change safely.

Prompts are often the most frequently changed part of an AI application, and the least controlled. A quick edit in a dashboard can change behaviour for every user with no record of why.

Good prompt management

  • Prompts stored in version control or a prompt registry with history
  • Changes reviewed like code, with evaluation results attached
  • Each trace records the prompt version used
  • Environments for development, staging and production
  • Gradual rollout and instant rollback
  • Shared components for common instructions, such as safety rules and tone

Prompt registries in tools such as Langfuse and LangSmith let teams edit prompts outside code while keeping versioning and tracing. Whatever the tool, every change should pass through evaluation before reaching users.

Chapter 22

How do you migrate to a new model safely?

Short answer

Run the new model on the full evaluation suites, review cases that changed, adjust prompts where the model behaves differently, test speed and cost, shadow it on live traffic, then roll out gradually with monitoring and a rollback plan.

Model changes happen constantly. Providers release better and cheaper models, retire old versions and sometimes change behaviour behind the same name. Each switch is a risk, and each is also an opportunity to improve quality or cut cost.

Migration steps

  1. Run the candidate on all suites with the current prompts.
  2. Study flipped cases: the new model may follow instructions differently.
  3. Tune prompts for the new model and rerun.
  4. Compare speed, cost and rate limits under realistic load.
  5. Shadow test on live traffic, scoring outputs without showing them.
  6. Roll out to a small share of users, watch, then expand.
  7. Keep the old model available until the new one is proven.

An AI gateway with model routing makes migration much easier, because applications do not call models directly. Pinning specific model versions, where providers allow it, avoids surprise changes. Our enterprise AI page covers gateways and model strategy.

Chapter 23

How should speed and cost be evaluated?

Short answer

Treat them as quality criteria with budgets. Measure time to first token, total response time and cost per request on the evaluation set and in production, broken down by step, and include them in release gates.

A version that is slightly better but twice as slow or expensive may be the wrong choice. Speed and cost belong in evaluation from the start, not as an afterthought when the bill arrives.

MeasureWhy it matters
Time to first tokenHow quickly users see something happening
Total response timeHow long until the answer is complete
Slowest responsesLong tails frustrate users most
Tokens per requestMain driver of model cost
Cost per request and per outcomeWhether the feature pays for itself
Steps per task for agentsLoops and waste multiply cost

Breaking time and cost down by step, such as retrieval, reranking, generation and checks, shows where to optimise. Often a smaller model for one step, fewer retrieved passages or caching gives large savings with no quality loss, which evaluation can confirm.

Chapter 24

What kinds of drift affect LLM applications in production?

Short answer

Input drift, as users ask new kinds of questions; content drift, as documents change; model drift, as providers update models; and tool drift, as connected systems change. Monitor each with sampled scoring, topic tracking and alerts.

An AI application can degrade without any change by your team. The world around it moves.

Types of drift

  • Input drift: new products, seasons or events bring new questions
  • Content drift: policies and documents change, some answers become outdated
  • Model drift: provider updates change behaviour behind the same model name
  • Tool drift: APIs and systems the application uses change their responses
  • User drift: new user groups with different expectations and language

Detecting it

Track topic clusters of incoming questions and alert on new or growing ones. Score a sample of live outputs continuously and watch for downward trends. Run the full evaluation suite on a schedule even when nothing changed on your side, which catches model and tool drift. Watch feedback rates per topic. When drift appears, new cases join the test set and fixes go through the usual gate.

Chapter 25

Who should own AI evaluation in a team?

Short answer

Engineers own the evaluation infrastructure and gates, product owners own the criteria and thresholds, domain experts own correct answers and grading, and security owns safety suites. One named person should own the evaluation set for each application.

Evaluation fails when it belongs to nobody. Test sets go stale, judges drift and gates get bypassed under deadline pressure.

RoleResponsibility
AI engineersPipelines, judges, tracing, gates, tooling
Product ownerCriteria, priorities, thresholds, trade offs
Domain expertsCorrect answers, grading, edge cases
SecuritySafety suites and attack cases
Evaluation set ownerCoverage, freshness, growth from feedback

Culture matters as much as roles. Teams that look at evaluation results in every review, celebrate added test cases and treat a bypassed gate as an incident build reliable AI. In larger organisations, a central platform team provides shared evaluation tools while each application team owns its own sets and thresholds.

Chapter 26

What does setting up evaluation and LLMOps look like in practice?

Short answer

Trace production, build a first test set from real cases, baseline the current version, add judges and safety suites, wire gates into CI, then run the feedback loop every week.

Illustrative example

This insurance software company is an invented composite based on typical evaluation projects. It is not a real client.

A software company sells a claims platform with an AI assistant that summarises claim files and drafts letters. After a model update, customers report summaries missing key dates. The team has no way to tell how widespread the problem is or whether their fix helped.

Visibility

Tracing is added, recording the prompt version, model, input documents and output for each request. Within days, the team can search for summaries of a given claim type and see exactly what happened.

First evaluation set

Claims experts select real claim files across types and difficulty, and write the key facts each summary must include. Code checks confirm required dates and amounts appear. A calibrated judge checks that nothing is stated that the documents do not support. A safety suite tests that summaries never include another customer's data.

Gates and loop

Every prompt and model change now runs the suites in CI. The fix for missing dates is confirmed across all claim types before release. Negative feedback is reviewed weekly and new cases are added. When the provider later announces a model retirement, the migration is tested and rolled out in stages without customer impact.

Chapter 27

What are the most common AI evaluation mistakes?

Short answer

Testing by hand, invented test cases only, vague criteria, trusting judges without calibration, single runs on noisy results, no safety suite, evaluation outside the release pipeline and test sets that never grow.

A few questions tried by hand before release.A versioned test set run on every change.
Only clean, invented questions.Real cases from logs, tickets and experts.
"Rate this answer from one to ten."One clear criterion per check, pass or fail.
AI judges trusted blindly.Calibrate against human grades and recheck.
Shipping on a tiny score difference.Repeat runs and read the flipped cases.
No safety cases in the suite.Injection, leakage and misuse tested every release.
Prompts edited live in a dashboard.Versioned prompts through the release gate.
Feedback collected and ignored.Weekly review that adds new test cases.
Chapter 28

What should you ask an AI evaluation partner?

Short answer

Ask how they build test sets, define criteria, calibrate judges, evaluate RAG and agents, cover safety, handle randomness, integrate with your pipeline and production monitoring and what your team keeps.

  1. Where will test cases come from, and how will they reflect real use?
  2. How will criteria and thresholds be agreed with our product and domain owners?
  3. How will AI judges be calibrated against human grades?
  4. How will retrieval and answers be measured separately?
  5. How will agents be tested safely?
  6. Which safety cases will be included?
  7. How will results handle randomness between runs?
  8. How will evaluation run in our CI and in production?
  9. How will our team maintain and grow the test sets afterwards?
  10. Who owns the test sets, judges, pipelines and dashboards?

We answer these in writing before any engagement starts. To build in house, you can hire AI/ML engineers or QA automation engineers who join your team for as long as you need them.

Glossary

Evaluation and LLMOps terms, in plain English.

The vocabulary of testing and running AI applications, explained simply. Type to filter.

AI evaluation
Measuring how well an AI system performs on realistic cases against agreed criteria.
LLMOps
Practices for releasing, monitoring and improving applications built on large language models.
Evaluation set
A versioned collection of test cases with expected outcomes or grading rules.
Golden answer
An expert approved correct answer used for comparison.
Held out set
Test cases kept aside and not used while tuning, to check for overfitting.
Slice
A subset of test cases sharing a tag, such as a topic or language.
Synthetic data
Test cases generated by a model rather than collected from real use.
Code assertion
A programmatic check, such as valid format or required field present.
LLM as a judge
Using a language model to grade outputs against criteria.
Rubric
Written criteria with examples used to grade outputs consistently.
Pairwise comparison
Judging which of two outputs is better.
Calibration
Checking and improving how well a judge agrees with human grades.
Position bias
A judge's tendency to prefer whichever answer appears first.
Faithfulness
Whether every claim in an output is supported by its sources.
Context recall
Whether retrieval found the passages needed to answer.
Trajectory evaluation
Scoring the steps an agent took, not just its final result.
Precision
Of the items labelled a certain way, how many were right.
Recall
Of all the items that should be labelled a certain way, how many were found.
Regression
Something that used to work and now does not.
Release gate
An automated check that blocks or flags releases that fail evaluation.
Flipped case
A test case whose result changed between two versions.
Online evaluation
Scoring live production traffic rather than a fixed test set.
Shadow testing
Running a new version on real traffic without showing its output to users.
A/B test
Comparing two versions by sending each to part of the real traffic.
Trace
A record of every step in one request, from input to output.
Prompt registry
A versioned store of prompts used by applications.
Drift
Gradual change in inputs, content, models or tools that affects quality.
Time to first token
How long before the first part of a response appears.

Questions

AI evaluation and LLMOps, answered.

What are AI evaluation and LLMOps services?

They set up the testing and operations layer for AI applications: evaluation sets built from real cases, scoring for quality, safety, speed and cost, release gates in your pipeline, tracing and monitoring in production and a feedback loop that turns new failures into new tests.

Why do AI applications need special testing?

Because their output varies and they rarely fail loudly. A prompt tweak or model update can make answers slightly worse or unsafe for some inputs without any error. Only systematic evaluation on realistic cases shows that before users do.

What is an evaluation set?

An evaluation set is a collection of realistic inputs with expected outcomes or grading criteria. It covers normal use, edge cases, safety tests and past failures, and it is run on every change to compare versions.

What is LLM as a judge?

It means using a language model to grade another model's outputs against criteria, which makes scoring large test sets practical. Judges must be checked against human grades on a sample, because they can be biased or inconsistent.

Can you evaluate an AI system that is already live?

Yes. We start from production traces and feedback, build a first test set from real cases, measure the current version as a baseline and then add gates and monitoring.

How do you test a new model before switching?

We run the candidate model on your full evaluation suites, compare quality, safety, speed and cost with the current model, review differences in detail and then roll it out gradually with monitoring and a rollback plan.

How much do evaluation and LLMOps cost?

Ballpark: $18 to $34 an hour per engineer. Cost is priced to your scope: number of applications, test set size, criteria, safety coverage and integrations. You get a written estimate before anything starts. These are ballpark figures. Your final cost is confirmed after the proposal discussion. Try the cost calculator.

Which tools do you use?

We are tool neutral and use what fits your stack, often promptfoo, Ragas, DeepEval, Langfuse, LangSmith, Arize Phoenix and MLflow, with pipelines in GitHub Actions, GitLab CI or Azure DevOps.

Who owns the test sets and pipelines?

You do. Test sets, scoring code, prompts, dashboards and pipelines belong to you by contract, and an NDA is signed before you share any details.

What is the difference between LLMOps and MLOps?

MLOps manages trained machine learning models: data pipelines, training, deployment and drift. LLMOps manages applications built on large language models, where prompts, retrieval, tools and provider models change often and outputs vary, so evaluation sets, judges and tracing take centre stage.

How many test cases do we need?

Start with a few dozen well chosen real cases, which already beats hand testing. Grow to a few hundred covering your main topics, edge cases and safety risks. Coverage of the right situations matters more than raw size.

Can AI judges replace human reviewers?

Not entirely. Calibrated judges handle volume and consistency, while humans set the standard, review borderline and high stakes cases and recheck judges regularly. The two work best together.

How do you evaluate a chatbot?

With multi turn test conversations covering common questions, follow ups, unanswerable questions, handoff to people and misuse attempts, scored for correctness, grounding, tone and safety, plus live signals such as resolution and escalation. See AI chatbot development.

How do you evaluate an AI agent?

In sandboxed environments with realistic scenarios, checking the end state, the steps taken, tool use, approvals and cost, and running each scenario several times because agent behaviour varies.

Do you work with Langfuse or LangSmith?

Yes. We set up tracing, prompt management, datasets and annotation in Langfuse, LangSmith, Arize Phoenix or similar tools, depending on your stack and hosting needs, including self hosted options.

How long does it take to set up evaluation?

A first test set, baseline and tracing for one application are a common first milestone, followed by gates and monitoring. Dates are set in your written estimate before work starts.

What happens when our model provider updates a model?

Your suites run against the new version, we review the cases that changed, adjust prompts if needed and roll out gradually. Scheduled runs also catch silent changes behind the same model name.

Can evaluation reduce our AI costs?

Often, yes. With reliable evaluation you can safely test smaller models, shorter prompts, fewer retrieved passages and caching, and keep only the savings that do not hurt quality.

How do you protect personal data in test sets and traces?

Personal data is masked or removed before cases enter test sets, traces are access controlled and retained only as long as agreed, and sensitive applications can use self hosted tooling.

Can evaluation help with AI regulation and audits?

Yes. Documented test sets, results per release, safety testing and monitoring records provide evidence that AI systems are tested and controlled, which supports governance frameworks and audits.

What is a release gate for AI?

An automated check in your pipeline that runs evaluation suites on every change and blocks or flags releases that fail safety rules, drop below thresholds or get significantly worse than the current version.

Can you evaluate AI features we bought from a vendor?

Yes, where you can send inputs and read outputs. Testing vendor AI on your own cases shows whether it meets your standards and gives evidence for vendor conversations.

Do we need evaluation for a simple internal tool?

A light version, yes. Even a small set of real cases and a few checks run on each change prevents the slow quality drift that makes internal tools lose users.

How do we get started with AI evaluation?

Tell us which AI application matters most and share some real examples of good and bad outputs. A delivery lead replies within one working day. We usually begin with a short audit and baseline, with a written estimate.

How do you evaluate AI summaries?

Experts list the key facts each summary must include and anything it must leave out. Evaluation checks which required facts appear correctly, whether anything unsupported was added and whether length and format rules are met.

Can you set up evaluation for several AI applications at once?

Yes. Shared tooling, judges and pipelines are set up once as a platform service, while each application gets its own test sets, criteria and thresholds owned by its team. See enterprise AI.

What is shadow testing for AI?

Shadow testing runs a new version on real traffic in the background without showing its output to users. Its responses are scored and compared with the live version, which checks quality, safety and cost before any user is exposed.

Stop guessing. Start measuring.

Tell us which AI application worries you most. A delivery lead replies within one working day.

Or email sales@javixorlabs.com
Request a matchDevelopers