Overview

LLMOps is MLOps adapted to a nondeterministic component that changes underneath you when a provider updates or retires a model. The loop is: version the prompt and model, gate releases on evals, observe production, control cost and risk, and roll back cleanly. This page is the pillar; measurement is in llm-evaluation-in-production, monitoring in llm-observability, and application-side reliability in reliable-agents-in-production.

Version prompts and pin model IDs like code

Keep prompts in version control beside the code and tag each version. Pin the exact model ID (for Claude, an ID such as claude-sonnet-5-5, not a family nickname) so a provider change cannot alter behavior unnoticed, and record the prompt version and model ID on every request. Track provider deprecation dates and schedule the migration as a release. Prompt-level evals: prompt-evals.

Gate every release on an eval

Run the golden set in CI on every prompt, model, or retrieval change and block the merge on regression. See llm-evaluation-in-production and golden-set.

Trace before you scale

Without per-request traces a regression cannot be reproduced. What to capture: llm-observability, built on observability.

Treat cost as a first-class metric

Cap spend per user and per request, and track cost per request next to latency. Cache stable prompt prefixes (Anthropic cache reads cost 0.1 times base input; writes cost 1.25 times for the 5-minute TTL), route easy requests to cheaper models, and use the Message Batches API (50 percent discount, asynchronous) for work that can wait. More: cost-control.

Build the safety and abuse layer

Treat user and retrieved content as untrusted, filter inputs and outputs, rate-limit per user, and log refusals. Injection and data exfiltration are operational risks: prompt-injection-defense and owasp-llm-top-10.

Ship behind a flag with a fallback ladder

Deploy prompt and model changes behind a flag, canary a slice of traffic, and keep the previous version one switch away. At runtime fall back from the strong model to a cheaper one to a deterministic default when the primary is slow, rate-limited, or down. Plan the rollback before the rollout.

Verify the loop

  • The CI eval gate blocks on regression.
  • Every request carries prompt and model version in its trace.
  • Forcing a provider timeout in staging engages the fallback ladder.
  • Cost caps and abuse limits fire under load.