liveBook · Manning

LLMOps

As explained in Building Reliable AI Systems

LLMOps is the engineering discipline of managing large language models in production, including their deployment, evaluation, and ongoing operation.

LLMOps is the engineering discipline of running large language models reliably in production. A support assistant may pass internal tests yet give inconsistent answers and generate a $47,000 monthly bill once real users arrive. Its behavior depends on prompts, context, user phrasing, load, and model updates; an apparently healthy service can still produce wrong answers or leak sensitive information. section 10.0 section 10.1

LLMOps draws on DevOps and MLOps but shifts attention toward prompt management, retrieval-augmented generation evaluation, and usage and cost monitoring. Uptime and latency remain useful, but they cannot establish whether responses are good, safe, or helpful. section 10.1

A production system connects five layers:

  • Input processing validates requests, routes them, and builds context. section 10.1
  • Model execution manages hosted APIs or self-hosted models and retrieval through vector databases. section 10.1
  • Output processing evaluates responses, applies safety checks, and formats results. section 10.1
  • Monitoring tracks performance, response quality, and user satisfaction. section 10.1
  • Continuous improvement uses those measurements for A/B testing, prompt optimization, and model updates. section 10.1

Deployment choices trade speed and capability against control and complexity. Hosted APIs enable rapid deployment but limit cost control and data privacy; self-hosting provides more control but adds infrastructure work. A hybrid architecture can route simple queries to economical local models, reserve premium APIs for complex requests, and use fallbacks when needed. Monitor tokens, cost per interaction, quality scores, ratings, session patterns, and escalations; set alerts for runaway spending. Maintain quality through prompt and input controls, automated detection, and systematic correction, supported by prompt versioning, shadow testing, and continuous evaluation. section 10.7

Figure 10.1 Complete LLMOps architecture for production AI systems
figure

The architecture diagram shows the five layers and the feedback loop from monitoring to improvement. section 10.1

How Building Reliable AI Systems covers it

How deep it goes
Explains a five-layer architecture and operational trade-offs, but does not specify implementation code in the supplied passages.
Examples
Uses a support assistant that passed internal tests before producing unpredictable results and a $47,000 monthly bill.
What it assumes
Assumes an evaluation foundation for finding failures before users encounter them; extends it with deployment and monitoring infrastructure.
What you can do after
Operate/configure it with model routing, quality monitoring, cost alerts, and continuous improvement processes.
How it connects
Connects prompt management, retrieval-augmented generation, model routing, observability, quality assurance, and continuous evaluation.

Also explained in

Compare how 6 books explain LLMOps →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Reliable AI Systems. The section links point to the parts of the book it draws on.