DavidGadyan

LLMOps Mind Map: Evals, Observability, Guardrails, Prompt Versioning, Canary Releases and Cost Control Explained

Running LLM apps in production: prompts as versioned artefacts, evaluations, tracing, guardrails, safe releases, cost control, RAG data operations and governance.

Section 4: LLMOps and AI gateways

  1. LLMOps lifecycle

    Build, eval, ship, watch

    What it is
    LLMOps is the set of practices for taking an LLM application from prototype to production and keeping it healthy: versioning prompts and configuration, evaluating quality, releasing safely, tracing every call, guarding inputs and outputs, and controlling cost.
    When to use it
    The frame for any "how would you run this in production?" question.
    1. MLOps vs LLMOps

      What changes

      What it is
      Classic MLOps centres on training your own model on your data, feature pipelines and retraining. LLMOps usually starts from a pre-trained model you call or host, so the work moves to prompts, retrieval, evaluation of free-text output, safety filters, token cost and provider model changes.
      When to use it
      The most common opening exam question on the topic.
    2. New artefacts

      Prompts, configs, indexes

      What it is
      Besides code and model weights, an LLM app ships prompts, system instructions, model name and parameters (temperature, max tokens), tool definitions, retrieval settings and a vector index. Each one changes behaviour, so each needs a version.
      When to use it
      Deciding what goes into version control and the release notes.
    3. Non-deterministic output

      Same input, new answer

      What it is
      The same prompt can produce different text, and there is often no single correct answer. Exact-match unit tests break, so quality is measured with evaluation sets, scoring rules and judges instead.
      When to use it
      Explaining why LLM apps need evals rather than only unit tests.
    4. Eval-driven development

      Measure before you change

      What it is
      Build the evaluation set first, then change prompts, models or retrieval and keep only the changes that improve the scores without regressions. It is the LLM version of test-driven development.
      When to use it
      Any prompt or model change that must not break what already works.
    5. The improvement loop

      Production feeds evals

      What it is
      Build, evaluate, deploy, monitor, improve. Failures found in production traces and user feedback become new cases in the evaluation set, so the next version is tested against them.
      When to use it
      Describing how an LLM product gets better after launch.
    6. Agents raise the stakes

      Many steps, many tools

      What it is
      An agent makes several model calls and tool calls per request. A failure can hide in any step, cost grows with the number of steps, and tools can act on real systems, so tracing, step-level evals and tool permissions matter more.
      When to use it
      Planning operations for an agentic workflow rather than a single chat call.
    7. Self-hosted serving

      See the LLM Serving map

      What it is
      When you host open-weight models yourself, LLMOps also covers the inference engine, GPUs and autoscaling. Engines, batching, quantisation and speculative decoding are in the LLM Serving map.
      When to use it
      Choosing between an API provider and self-hosting.
  2. Prompts & config

    Versioned like code

    What it is
    Prompts, model choice and parameters are treated as configuration that is versioned, reviewed, tested and released, not as strings edited in production.
    When to use it
    Stopping "someone changed the prompt and quality dropped" incidents.
    1. Prompt versioning

      Every change has an id

      What it is
      Each prompt change gets a version, an author and a diff, and every trace records which version answered. That makes it possible to compare versions on the same evaluation set and to roll back.
      When to use it
      Tracing a quality drop back to the exact prompt change.
    2. Prompt registry

      Prompts outside the code

      What it is
      A central store for prompts with versions and labels such as "production" or "staging", fetched by the app at runtime. Langfuse, LangSmith and MLflow each offer one.
      When to use it
      Letting non-developers improve prompts without a code deploy, behind review.
    3. Prompt templates

      Fixed text, variables

      What it is
      A prompt with named placeholders (user question, retrieved context, date) filled at runtime. Keeping the fixed part separate makes it testable and keeps user input in a known slot.
      When to use it
      Reusing one prompt across many requests and languages.
    4. Model version pinning

      No silent upgrades

      What it is
      Call a dated model snapshot instead of a moving alias, so the provider cannot change behaviour under you. Upgrades then become planned releases that go through the evaluation set.
      When to use it
      Keeping regulated or customer-facing output stable.
    5. Feature flags

      Switch without deploying

      What it is
      A flag decides at runtime which prompt version or model a user gets. It enables gradual rollouts, A/B tests and an instant switch back without a new deployment.
      When to use it
      Rolling a new model out to 5% of users first.
    6. Structured output

      JSON with a schema

      What it is
      Ask the model for JSON that follows a schema (many APIs can enforce it) and validate it before use. Machine-checkable output is easier to test, monitor and pass to other systems.
      When to use it
      Extraction, classification and tool calls that feed code.
  3. Evaluation

    Is it good enough?

    What it is
    Evals measure whether the app gives correct, grounded, safe and useful answers. They combine a test set, scoring methods (rules, reference answers, model judges, humans) and signals from real users.
    When to use it
    The gate before every release and the yardstick after it.
    1. Golden dataset

      Inputs + expected answers

      What it is
      A curated set of realistic inputs with expected answers or grading notes, covering common cases, edge cases and past failures. It is versioned and grows as production shows new problems.
      When to use it
      Comparing two prompts or models on the same questions.
    2. Offline evaluation

      Before release, on a set

      What it is
      Run the candidate version on a fixed dataset and score it before any user sees it. It is repeatable and safe, but only as good as the coverage of the dataset.
      When to use it
      Release gates and model comparisons.
    3. Online evaluation

      On live traffic

      What it is
      Score real production traffic: user feedback (thumbs, edits, retries), task completion, and judges run on a sample of traces. It shows real behaviour, but results arrive after users are exposed.
      When to use it
      Catching problems the offline set did not anticipate.
    4. LLM-as-judge

      A model grades a model

      What it is
      A strong model scores an answer against a rubric or a reference, or picks the better of two answers. It scales to thousands of cases cheaply, but it must itself be checked against human labels.
      When to use it
      Grading open-ended answers where exact match is useless.
      1. Judge biases

        Position, length, self

        What it is
        Model judges tend to prefer the answer shown first (position bias), longer answers (verbosity bias) and answers written by themselves (self-enhancement bias). Swap the order, use a clear rubric and calibrate on human-labelled samples.
        When to use it
        Answering "can you trust LLM-as-judge?".
        Key figures
        • Position, verbosity and self-enhancement biases of LLM judges.Source: Zheng et al. 2023, Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena
    5. Human review

      Experts label samples

      What it is
      Domain experts grade a sample of outputs. It is the most trusted signal and the reference used to calibrate automatic judges, but it is slow and expensive, so it is used on samples, not on everything.
      When to use it
      High-stakes domains (legal, medical, finance) and judge calibration.
    6. RAG metrics

      Retrieval and grounding

      What it is
      RAG is scored in two halves. Retrieval: did we fetch the right chunks (context precision, context recall)? Generation: is the answer supported by those chunks (faithfulness) and does it address the question (answer relevancy)? Ragas implements these metrics.
      When to use it
      Telling a retrieval failure from a generation failure.
      Key figures
      • Faithfulness, answer relevancy, context precision and context recall.Source: Ragas documentation
    7. Regression evals in CI

      Block bad changes

      What it is
      Every pull request that changes a prompt, model or retrieval setting runs the evaluation set in the CI pipeline, and the merge is blocked if key scores drop below a threshold.
      When to use it
      Making quality a merge requirement, like passing tests.
    8. Pairwise and A/B

      Which one is better?

      What it is
      Pairwise evaluation shows two answers to the same input and asks a judge or a human which is better; it is often more reliable than absolute scores. A/B tests do the same on live users with a business metric.
      When to use it
      Choosing between two close candidates.
  4. Observability

    See every call

    What it is
    Recording what the app did for every request: the prompt, the retrieved context, each model and tool call, tokens, latency, cost, errors and the final answer, linked as one trace.
    When to use it
    Debugging a bad answer and feeding online evals.
    1. Traces and spans

      A request as a tree

      What it is
      A trace is one request end to end; spans are its steps (retrieval, model call, tool call, guardrail check), nested in a tree with timings. Agents produce deep trees, so traces are the main debugging tool.
      When to use it
      Finding which step of a chain was slow or wrong.
    2. OpenTelemetry GenAI

      Standard span attributes

      What it is
      OpenTelemetry defines semantic conventions for generative AI: standard attribute names for the operation, the model and token usage on each span. Instrumenting with them keeps traces portable between backends.
      When to use it
      Avoiding lock-in to one tracing vendor.
      In code
      export OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317
      Key figures
      • Attributes such as gen_ai.operation.name, gen_ai.request.model, gen_ai.usage.input_tokens and gen_ai.usage.output_tokens.Source: OpenTelemetry semantic conventions for generative AI
    3. What to log per call

      Inputs, usage, outcome

      What it is
      Prompt version and rendered input, model and parameters, retrieved document ids, tool calls and results, input and output tokens, latency (including time to first token), cost, errors, guardrail decisions, user and session id, and any feedback.
      When to use it
      Designing the logging schema of a new LLM feature.
    4. Langfuse

      Open-source tracing

      What it is
      An open-source LLM engineering platform: tracing, prompt management, evaluations and datasets, cost tracking. It can be self-hosted, which suits data that must stay in-house.
      When to use it
      Self-hosted observability with prompt versions in one tool.
      In code
      from langfuse import observe
    5. LangSmith

      LangChain’s platform

      What it is
      LangChain’s platform for tracing, datasets, evaluations and prompt management. It works with or without LangChain and LangGraph code, with deepest integration for them.
      When to use it
      Teams already building with LangChain or LangGraph.
    6. Arize Phoenix

      Open-source, OTel-based

      What it is
      An open-source tool from Arize for tracing and evaluating LLM apps, built on OpenTelemetry (OpenInference instrumentation). It runs locally or self-hosted.
      When to use it
      Inspecting traces and running evals during development.
    7. MLflow tracing

      Autolog LLM calls

      What it is
      MLflow records LLM and agent calls as traces, with autologging for common libraries, next to its experiment tracking, evaluation and model registry.
      When to use it
      Teams that already run MLflow for classic ML.
      In code
      mlflow.openai.autolog()
    8. PII redaction in logs

      Traces hold user data

      What it is
      Prompts and answers often contain personal data, so traces become sensitive data stores. Mask or drop PII before storing, restrict access and set a retention period.
      When to use it
      Keeping observability compatible with GDPR.
    9. Metrics and dashboards

      Prometheus + Grafana

      What it is
      Aggregate the traces into metrics: requests, error rate, latency percentiles, tokens and cost per feature, guardrail blocks, feedback score. Prometheus stores them, Grafana shows them and alerts on thresholds.
      When to use it
      On-call alerts and weekly quality reviews.
      In code
      histogram_quantile(0.95, sum(rate(llm_request_seconds_bucket[5m])) by (le))
  5. Guardrails & security

    Safe in, safe out

    What it is
    Controls around the model: checks on what goes in (injection, PII, off-topic), on what comes out (toxicity, leaks, wrong format), on what tools may do, plus the governance that proves it.
    When to use it
    Any app exposed to users or connected to real systems.
    1. OWASP Top 10 for LLMs

      The risk checklist

      What it is
      OWASP’s list of the main security risks of LLM applications. The 2025 edition: prompt injection, sensitive information disclosure, supply chain, data and model poisoning, improper output handling, excessive agency, system prompt leakage, vector and embedding weaknesses, misinformation, unbounded consumption.
      When to use it
      A threat-modelling checklist for any LLM feature.
      Key figures
      • LLM01 is prompt injection; LLM06 is excessive agency; LLM10 is unbounded consumption.Source: OWASP Top 10 for LLM Applications 2025
    2. Direct prompt injection

      The user attacks

      What it is
      The user types instructions meant to override the system prompt ("ignore previous instructions…"). Jailbreaks are a form of it aimed at the model’s safety training.
      When to use it
      Public chatbots and any free-text input.
    3. Indirect prompt injection

      Hidden in the data

      What it is
      The malicious instructions arrive inside content the model reads: a web page, an e-mail, a retrieved document or a tool result. The user may be innocent. It is the main risk for RAG and agents that browse or read inboxes.
      When to use it
      Threat-modelling RAG pipelines and browsing agents.
    4. Input and output filters

      Check both sides

      What it is
      Input checks: injection patterns, topic scope, PII, length limits. Output checks: toxicity, leaked secrets or system prompt, schema validation, grounding against sources. Treat model output as untrusted before it reaches HTML, SQL or a shell.
      When to use it
      Defence in depth: no single filter catches everything.
    5. PII protection

      Mask before the model

      What it is
      Detect and mask personal data before it is sent to an external model or stored, and check that answers do not reveal data the user is not allowed to see.
      When to use it
      Customer support, HR and health data.
    6. Llama Guard

      A safety classifier model

      What it is
      Meta’s open-weight model that classifies prompts and responses as safe or unsafe against a taxonomy of hazard categories. It runs as a separate check before and after the main model.
      When to use it
      Self-hosted content moderation.
    7. NeMo Guardrails

      Programmable rails

      What it is
      NVIDIA’s open-source toolkit for adding programmable rails to a conversational app: input, output, dialogue and retrieval rails, written in configuration and the Colang language.
      When to use it
      Keeping a bot on topic and enforcing dialogue policies.
    8. Guardrails AI

      Validators on output

      What it is
      An open-source Python framework that wraps model calls with validators (format, PII, toxicity, competitors and others from its hub) and can re-ask or fix the output when a check fails.
      When to use it
      Validating structured output inside Python apps.
    9. Least-privilege tools

      Limit what agents can do

      What it is
      Give an agent only the tools and permissions the task needs, scope credentials per user, and require human approval for irreversible actions (payments, deletes, sending e-mail). It limits the damage of a successful injection.
      When to use it
      The answer to "excessive agency" in the OWASP list.
    10. Governance

      Prove it is controlled

      What it is
      Policies and records that show the system is used responsibly: risk classification, documentation, audit trails, data retention rules and human oversight.
      When to use it
      Audits, enterprise procurement and regulated sectors.
      1. EU AI Act

        Risk-based rules

        What it is
        The EU regulation sorts AI uses by risk: unacceptable (prohibited), high-risk (strict duties such as risk management, documentation, logging and human oversight), limited risk (transparency, e.g. telling people they talk to an AI) and minimal risk. It also sets duties for general-purpose AI model providers.
        When to use it
        Classifying a new AI feature before launch in the EU.
        Key figures
        • Regulation (EU) 2024/1689 sets four risk levels: unacceptable, high, limited and minimal.Source: European Commission, AI Act overview (Regulation (EU) 2024/1689)
      2. Model cards

        What, for whom, limits

        What it is
        A short document per model or system: intended use, training data summary, evaluation results, known limitations and risks. The idea comes from "Model Cards for Model Reporting".
        When to use it
        Documentation duties and internal model approval.
      3. Audit logs & oversight

        Who, what, when

        What it is
        Keep tamper-evident records of which model and prompt version produced which decision, who approved changes and when humans reviewed or overrode outputs, with a defined retention period.
        When to use it
        Answering an auditor or a customer complaint months later.
  6. Deployment & release

    Ship without surprises

    What it is
    Moving a new prompt, model or pipeline version to users safely: a registry of versions, automated pipelines, progressive exposure and a fast way back.
    When to use it
    Every model or prompt upgrade.
    1. Model registry

      Versions with stages

      What it is
      A catalogue of model versions with metadata, lineage and aliases such as "champion" and "challenger". Deployments refer to an alias, so promotion and rollback are a metadata change.
      When to use it
      Fine-tuned or self-hosted models with several versions.
      In code
      mlflow.register_model("runs:/<run_id>/model", "<model_name>")
    2. CI/CD for LLM apps

      Test, eval, release

      What it is
      The pipeline runs unit tests, the regression eval set and safety checks on each change, then builds and deploys. Prompt and config changes go through the same pipeline as code.
      When to use it
      Making every release repeatable and reviewed.
    3. GitOps with Argo CD

      Git is the source of truth

      What it is
      The desired state of the cluster (images, model versions, configs) lives in Git; Argo CD keeps Kubernetes in sync with it. Argo Rollouts adds canary and blue-green steps with automated analysis.
      When to use it
      Self-hosted models and services on Kubernetes.
      In code
      argocd app sync <app>
      kubectl argo rollouts promote <rollout>
    4. Shadow deployment

      Run in parallel, hidden

      What it is
      The new version receives a copy of live traffic, but its answers are only logged, never shown. You compare quality, latency and cost on real inputs with zero user risk, at the price of paying for both.
      When to use it
      A model swap where any visible mistake is costly.
    5. Canary release

      Small share first

      What it is
      Send a small share of users to the new version, watch error rate, latency, cost and quality signals, and increase the share step by step, or roll back automatically if a metric degrades.
      When to use it
      The default for most production changes.
    6. Blue-green

      Two stacks, one switch

      What it is
      Run the old (blue) and new (green) versions side by side and move all traffic at once with a router switch. Rollback is instant, but every user meets the new version at the same moment.
      When to use it
      Infrastructure changes that need a clean cut-over.
    7. A/B test

      Measure a business metric

      What it is
      Split users randomly between versions for long enough to compare a business outcome (resolution rate, conversion, satisfaction) with statistical confidence. It answers "is it better?", not "is it safe?".
      When to use it
      Choosing between two versions that both passed the evals.
    8. Rollback

      A fast way back

      What it is
      Keep the previous prompt, model alias and deployment ready so a bad release is undone in minutes: flip the flag, move the alias or roll back the deployment.
      When to use it
      Incident response after a quality or cost regression.
      In code
      kubectl rollout undo deployment/<name>
    9. Provider deprecations

      Models get retired

      What it is
      API providers retire model versions on a published schedule. Track the dates, run the eval set on the replacement early and plan the switch as a normal release, not an emergency.
      When to use it
      Any app pinned to a dated model snapshot.
  7. Cost & performance

    Tokens are the bill

    What it is
    LLM cost grows with tokens in and out, the model tier and the number of calls per request. Control it with budgets, caching, routing to cheaper models and batch processing, while watching latency and quality.
    When to use it
    Keeping unit economics positive as usage grows.
    1. Token budgets & limits

      Cap spend per user

      What it is
      Set maximum output tokens, context size limits, per-user and per-team quotas and rate limits, with alerts before a budget runs out. It also blocks runaway agent loops (unbounded consumption).
      When to use it
      Multi-tenant apps and internal platforms.
    2. Prompt caching

      Reuse the long prefix

      What it is
      Providers and engines can cache a repeated prompt prefix (system prompt, documents, tool definitions) so later calls pay less and start faster. Put stable content first and variable content last.
      When to use it
      Long system prompts and chat over the same documents.
    3. Semantic caching

      Similar question, old answer

      What it is
      Store answers with an embedding of the question and return the stored answer when a new question is similar enough. It saves calls on repetitive traffic, but a loose threshold returns wrong answers.
      When to use it
      FAQ-like support traffic.
    4. Model routing & cascades

      Cheap first, strong if needed

      What it is
      Send easy requests to a small, cheap model and hard ones to a strong model, decided by rules, a classifier or a failed check on the cheap answer. Validate the router with the eval set so quality does not slip.
      When to use it
      High-volume apps with mixed difficulty.
    5. Batch APIs

      Cheaper, not real-time

      What it is
      For work that can wait (classification, enrichment, offline evals), batch endpoints process many requests asynchronously at a discount.
      When to use it
      Nightly jobs and large evaluation runs.
      Key figures
      • The OpenAI Batch API costs 50% less than synchronous calls and completes within a 24-hour window.Source: OpenAI Batch API guide
    6. Cost attribution

      Cost per feature, team

      What it is
      Tag every call with feature, team, customer and prompt version, and compute cost from token usage, so you know which feature or tenant drives the bill and what a resolved task costs.
      When to use it
      Pricing decisions and chargeback to teams.
    7. AI gateway

      See the AI Gateways map

      What it is
      A gateway in front of all model providers centralises keys, budgets, caching, routing, fallbacks and usage logs. Products and designs are in the AI Gateways map.
      When to use it
      Several teams or apps sharing model access.
  8. RAG & data ops

    Keep knowledge fresh

    What it is
    A RAG app is only as good as its index. Data operations keep documents ingested, chunked, embedded and refreshed, and detect when the data or the questions drift.
    When to use it
    Any assistant that answers from company documents.
    1. Ingestion pipeline

      Sources to index

      What it is
      A scheduled or event-driven pipeline that pulls documents, parses them (PDF, HTML, tables), cleans them, keeps access metadata and writes chunks and embeddings to the vector store.
      When to use it
      Keeping the index in step with the source systems.
    2. Chunking strategy

      Size and overlap matter

      What it is
      How documents are split (by size, by heading, by sentence) changes what retrieval can find. Chunking settings are versioned and evaluated like prompts.
      When to use it
      Fixing answers that miss information that is in the documents.
    3. Embedding versioning

      One model per index

      What it is
      Vectors from different embedding models are not comparable. Record which model built each index; changing the model means re-embedding everything into a new index and switching over after evaluation.
      When to use it
      Upgrading the embedding model safely.
    4. Index refresh

      Add, update, delete

      What it is
      Process new, changed and deleted documents incrementally, so answers do not cite outdated or removed content, and keep document permissions in sync.
      When to use it
      Policies, prices and product docs that change often.
    5. Data and query drift

      The world moves

      What it is
      Users start asking about new topics, documents change, or a provider updates a model. Watch topic clusters of queries, retrieval scores, "no answer" rates and feedback over time to notice it.
      When to use it
      Knowing when the eval set and the index need updating.
    6. Feedback data

      Users label for you

      What it is
      Thumbs, corrections, escalations to a human and abandoned sessions are labels. Review them, turn failures into eval cases and, where it pays off, into fine-tuning data.
      When to use it
      Closing the improvement loop.
  9. Key exam points

    Short answers to learn

    What it is
    The questions that come up most on LLMOps, each with the answer in two or three sentences.
    When to use it
    Revision before an exam or an interview.
    1. LLMOps vs MLOps?

      Prompts, evals, tokens

      What it is
      MLOps trains and retrains your own models on features. LLMOps mostly adapts pre-trained models: it versions prompts and configs, evaluates free-text output with judges and humans, adds guardrails against injection, and manages token cost and provider changes.
      When to use it
      Opening question in LLMOps exams and interviews.
    2. Offline vs online eval?

      Before vs after release

      What it is
      Offline: a fixed dataset scored before release; repeatable, safe, limited by coverage. Online: real traffic scored after release with feedback and sampled judges; realistic, but users are already exposed. You need both.
      When to use it
      Designing an evaluation strategy.
    3. Limits of LLM-as-judge?

      Biased, needs calibration

      What it is
      Judges show position, verbosity and self-preference biases and can miss domain errors. Mitigate with clear rubrics, swapped order, a different model family as judge and regular checks against human labels.
      When to use it
      Defending an automated evaluation design.
    4. What to trace per call?

      Version, tokens, latency, cost

      What it is
      Prompt version and input, model and parameters, retrieved context ids, tool calls, input and output tokens, latency including time to first token, cost, errors, guardrail decisions and user feedback, all in one trace with PII masked.
      When to use it
      Observability design questions.
    5. Canary vs shadow?

      Real users vs hidden copy

      What it is
      Shadow: the new version answers a copy of traffic but nobody sees it; no user risk, double cost, no user feedback. Canary: a small share of real users sees it; real feedback, limited risk, automatic rollback on bad metrics.
      When to use it
      Release strategy questions.
    6. Direct vs indirect injection?

      User vs content

      What it is
      Direct: the user types the attack. Indirect: the attack hides in content the model reads (web pages, e-mails, retrieved documents, tool output). There is no complete fix: layer input and output filters, separate untrusted content, least-privilege tools and human approval for risky actions.
      When to use it
      Security questions on RAG and agents.
    7. Cut cost, keep quality?

      Cache, route, trim, batch

      What it is
      Measure cost per feature first, then: cache stable prompt prefixes, add semantic caching for repeated questions, route easy requests to smaller models, trim context and output length, and batch offline work. Re-run the eval set after each change.
      When to use it
      Cost optimisation questions.
    8. Detect quality drift?

      Online signals over time

      What it is
      Track online signals over time: judge scores on sampled traces, user feedback, retries and escalations, "no answer" rates, retrieval scores and query topics. Alert on changes, inspect the traces and add the failures to the eval set.
      When to use it
      Monitoring questions.
    9. Debug a bad RAG answer?

      Retrieval or generation?

      What it is
      Open the trace. If the right chunks were not retrieved, fix ingestion, chunking, embeddings or the query (context recall). If they were retrieved but the answer ignores them, fix the prompt or model (faithfulness).
      When to use it
      RAG troubleshooting questions.

Release strategies compared

Four ways to put a new prompt, model or pipeline version in front of users, from the safest to the most informative.

StrategyHow it worksUser riskWhat you measureUse when
ShadowNew version answers a copy of live traffic; answers are logged, never shownNoneQuality (judges), latency, cost, errors on real inputsA risky model swap you want to test on real traffic first
CanaryA small share of users gets the new version; the share grows step by stepLow, limited to the canary shareError rate, latency, cost, feedback; automatic rollback on regressionsThe default for most prompt and model changes
Blue-greenOld and new stacks run side by side; the router switches all traffic at onceEveryone at once, but instant rollbackHealth checks and error rate right after the switchInfrastructure or engine changes that need a clean cut-over
A/B testUsers are split at random between versions for a set periodMedium: half the users may get the worse versionA business metric with statistical confidenceChoosing between two versions that both passed the evals

Evaluation methods compared

No single method is enough: cheap automatic checks run on every change, humans calibrate them, and live signals catch what the test set missed.

MethodCostSpeedReliabilityBest for
Golden set, reference-based or rule checksLow once the set existsFast, runs in CIHigh for exact or structured answers, weak for open textRegression gates, extraction and classification
LLM-as-judgeMedium: one extra model call per caseFast, scales to thousands of casesGood with a clear rubric; biased without calibrationOpen-ended answers, pairwise comparisons, online sampling
Human reviewHigh: expert timeSlowHighest, the reference for the othersHigh-stakes domains and calibrating judges
Online user signalsLow: comes with the trafficContinuous, but after exposureNoisy per case, strong in aggregateDrift detection and finding new failure cases

Sources, read 2026-11-21: OWASP Top 10 for LLM Applications 2025; Regulation (EU) 2024/1689 (EU AI Act); the OpenTelemetry semantic conventions for generative AI; the Langfuse, LangSmith, Arize Phoenix, MLflow and Ragas documentation; the Llama Guard, NeMo Guardrails and Guardrails AI documentation; Zheng et al. 2023, "Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena"; the OpenAI Batch API guide; the Argo CD and Argo Rollouts documentation; Mitchell et al. 2019, "Model Cards for Model Reporting". Tools and regulations change: check the current documentation before you rely on a detail.