Notebook demos hide the hard part. The hard part starts when a second engineer changes a system prompt on Friday, a retrieval index rebuilds on Saturday, and Monday’s support queue fills with “the bot got weird.” An LLMOps guide is the operating system for that reality: how to move from exploratory notebooks to production systems you can version, evaluate, observe, and roll back.
LLMOps borrows from MLOps—pipelines, registries, CI—but adds LLM-specific failure modes: prompt drift, tool-call side effects, token cost cliffs, and evals that are partly subjective. This guide focuses on application teams shipping assistants, RAG apps, and light agents—not training foundation models from scratch.
A working definition of LLMOps
LLMOps is the discipline of building, deploying, monitoring, and improving LLM applications with the same rigor you apply to other production software. It covers data and prompt versioning, model/adapter promotion, offline and online evaluation, tracing, safety filters, cost attribution, and incident response. If your process cannot answer “what changed?” after a quality drop, you are not doing LLMOps yet.
Short courses can introduce the pipeline shape. DeepLearning.AI’s LLMOps course (with Google Cloud) walks supervised tuning, Kubeflow-style orchestration, BigQuery prep, and safety scores in roughly 90 minutes—useful orientation, not a complete ops manual. Pair classroom ideas with the production checklist below. If you adopt Kubeflow-style orchestration, keep the upstream Kubeflow Pipelines docs beside vendor tutorials so abstractions do not lock you to one cloud screenshot.
The production stack map
| Layer | What you control | Common failure |
|---|---|---|
| Interface | Chat UI, API contracts, auth | Silent schema breaks |
| Orchestration | Prompt templates, tools, harness loop | Unbounded retries / context rot |
| Knowledge | Chunking, indexes, ACLs | Stale or over-permissioned retrieval |
| Models | Base IDs, adapters, routers | Untracked upgrades |
| Eval & release | Golden sets, canaries, flags | Ship on vibes |
| Observe | Traces, costs, safety scores | No slice-by-prompt visibility |
Notice how many layers are not “the model.” That is the point. Teams that only swap GPT-class providers—see Hugging Face vs OpenAI—without fixing versioning still page on weekends.
Version everything that changes answers
Treat these as first-class artifacts with IDs in every log line:
- Prompt template + few-shot pack hash
- Retriever config + index build ID
- Base model ID and any LoRA/adapter ID
- Tool schema version / MCP allowlist revision
- Eval suite version that gated the release
Store prompts in git or a registry with code review. Do not edit production strings in a vendor console without a PR. When adapters enter the picture, follow the promotion habits in the LoRA fine-tuning guide so training experiments do not leapfrog eval.
Evaluation gates that unblock shipping
Offline evals catch regressions before users do. Online evals catch distribution shift. You need both.
- Freeze a golden set that mirrors real tickets, not toy questions.
- Score with task metrics first (exact fields, citations present, tool args valid).
- Add LLM-as-judge only with spot-checked rubrics and known failure modes.
- Run the suite on every prompt, index, or model change in CI.
- Canary to 5–10% traffic; compare satisfaction, escalation rate, and cost per successful task.
- Promote or auto-rollback based on pre-agreed thresholds—not Slack opinions.
For RAG-heavy products, retrieval quality needs its own tests—chunking, hybrid search, rerankers—before you blame the generator. Link those suites to your broader AI engineering roadmap rather than inventing a one-off spreadsheet per launch.
Observability: traces over vanity dashboards
Token charts without traces are decoration. For each request, capture: routed model, prompt version, retrieved chunk IDs, tool calls, latency breakdown, token totals, safety scores, and final user-visible outcome. OpenTelemetry-style spans around tool execution make agent incidents debuggable.
When the product is agentic, the harness is part of the observability boundary. Read what is an agent harness and harness engineering in practice so you instrument the loop, not only the final message.
Cost control without starving quality
Cost work starts with attribution: which feature, tenant, and prompt version spends tokens. Then apply levers in order of leverage:
- Cache deterministic subprompts and retrieval where safe.
- Route easy tasks to smaller/cheaper models; reserve frontier models for hard slices.
- Tighten max tokens and stop conditions; kill runaway agent loops.
- Shrink context: better chunking beats stuffing whole PDFs—pair with vector database design.
- Prefer adapters or better prompts over forever-upsizing context windows.
Publish a weekly cost-per-successful-task number next to quality. Teams that only watch raw token spend cut the wrong things.
Safety, permissions, and data boundaries
Production LLM apps need allowlists for tools, redaction before prompts leave trust zones, and output filters for categories you refuse. Safety scores from cloud pipelines are a start—not a substitute for threat modeling prompt injection through retrieved documents. Keep human approval on write actions until evals prove otherwise.
If your architecture mixes private corpora with public models, document residency and subprocessors the way security expects. LLMOps without a data classification table will stall in review after the demo.
Release patterns that survive contact with users
Use feature flags for prompt packs and adapters. Prefer blue/green or weighted canaries over big-bang swaps. Maintain a one-step rollback: previous prompt+model+index triple. Write incident runbooks for “hallucinated policy,” “tool storm,” and “cost spike” with owners and SLAs.
Change advisory boards do not need to be heavy. A 15-minute review asking “what evals ran?” and “what is the rollback?” prevents most drama. Pair that with clear product primitives from prompt engineering so people stop hot-fixing tone in production.
Choosing where to fine-tune inside the ops loop
Fine-tuning enters LLMOps when behavior must persist beyond prompts. Keep knowledge in retrieval; keep agency in the harness; use SFT/LoRA for style and format. The decision tree in RAG vs fine-tuning vs agents should be linked from your internal wiki so newcomers do not invent a fourth strategy every quarter.
90-day maturity path
- Days 1–30: put prompts in git, add request IDs, ship a 50-case golden set, log model+prompt versions.
- Days 31–60: CI eval gate, canary flags, basic cost attribution, tool allowlists.
- Days 61–90: online eval samples, incident runbooks, adapter/model registry, quarterly regression day.
Skip buying a giant “AI platform” until those habits exist. Tools amplify process; they do not create it.
Learning resources that map to real work
For a guided cloud lab on tuning pipelines, see our DeepLearning.AI LLMOps course review. For broader curriculum choices, use the best LLM courses 2027 roundup. For transformer intuition that helps when reading serving papers, keep transformers explained for builders nearby. Full Stack Deep Learning’s public materials (including the LLM Bootcamp) remain useful for product-shaped thinking even as tools age.
FAQ
What is LLMOps?
LLMOps is the set of practices for shipping and running LLM-powered systems safely: versioning prompts/models/data, evaluation gates, observability, cost control, safety monitoring, and rollback.
How is LLMOps different from classic MLOps?
You still need pipelines and registries, but non-determinism, prompt/version sprawl, tool-calling side effects, and token economics dominate. Eval sets and traces matter as much as accuracy dashboards.
What should I version first?
Version the prompt template, retrieval index build, model/adapter IDs, and the eval suite together. Logging only the model name is not enough when prompts change daily.
Do I need Kubeflow to practice LLMOps?
No. Kubeflow appears in some courses (including DeepLearning.AI’s short LLMOps course), but the principles transfer to lighter CI + feature flags + a model registry.
Where do agents fit?
Agents amplify operational risk because tools create side effects. Treat harness changes as production changes—see harness engineering in practice.
When is fine-tuning part of LLMOps?
When adapters or SFT jobs enter the release train. Gate them with the same promotion rules as code; our LoRA fine-tuning guide covers the training side.
AI Generated Apps AI Code Learning Technology

3 comments
Pingback: SFT Playbook for LLM Apps: Data, Mixes, and Checks
Pingback: When Fine-Tuning Fails: Diagnosis and Cheaper Fixes
Pingback: LLM Quality Scorecard: What to Check Before You Ship