
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
What this course covers and the system you will build end to end: SupportBot, a production-style LLM support assistant with evaluation, deployment and monitoring around it.
Classic MLOps practices still apply, but LLMs change the rules: prompts as artifacts, evaluation without labels, token costs and new failure modes. The differences that shape everything after.
The full lifecycle of an LLM feature from prototype to production: prompt, evaluate, serve, monitor, iterate. A map of where each section of the course fits.
The tools you will use and what each one is for: MLflow, Ragas, DeepEval, promptfoo, vLLM, LiteLLM, Langfuse and more, organized by the problem each one solves.
Meet the course project: a retrieval-based support chatbot that you will prompt, evaluate, fine-tune, serve and monitor across the rest of the course.
Everything set up once before the real work starts: Python with uv, Docker, and the API keys the course needs.
Treat prompts like production code: files in the repo, reviewed changes and tests. Why a prompt living in a chat window is not a production asset.
Prompt templates with variables, and how to get structured JSON back instead of free text so downstream code can rely on the answer.
Version your prompts and keep them in a registry, so a change is traceable and reversible instead of a mystery edit in production.
Track prompt experiments with MLflow: parameters, outputs and scores side by side, so "which version was better" is a query, not a guess.
Build the retrieval pipeline behind SupportBot: documents in, relevant context out, and the prompt that turns it into a grounded answer.
There is no test set with right answers for open-ended generation. What makes LLM evaluation genuinely different, and the layered approach that works.
A golden dataset is the backbone of every eval: real inputs with expected behavior. How to build one that is small, honest and actually useful.
From exact match to embedding similarity: which classic and semantic metrics apply to LLM outputs, and what each one can and cannot tell you.
Using a strong model to grade your model: how LLM-as-a-judge works, and the biases to watch for when it scores answers.
Evaluate a RAG pipeline with Ragas: faithfulness, relevance and context quality measured separately, so you know which stage is failing.
Running a real evaluation suite on SupportBot with DeepEval: test cases, metrics, and results you can act on.
Flip the workflow: write the evals first, then improve the system against them. Eval-driven development turns guesswork into a measurable loop.
Catch regressions before users do with promptfoo: run your prompts against test cases on every change and compare results across versions.
Put evals into CI: a GitHub Actions workflow that runs your test suite on each change and fails the build when quality drops.
Attack your own app before someone else does: prompt injection, jailbreaks and data exfiltration attempts against SupportBot, and what holds.
Input and output guardrails that run in production: blocking injections, filtering unsafe content, and keeping private data out of the model's context.
Prompt engineering, RAG or fine-tuning? A decision framework based on the actual problem: knowledge, behavior or format, and what each option costs.
Fine-tuning is mostly data work: formats, quality checks, deduplication and train/validation splits for a dataset that teaches the behavior you want.
How parameter-efficient fine-tuning works: train small adapters instead of the full model, and why QLoRA makes it possible on modest hardware.
Run a supervised fine-tune with Hugging Face TRL: config, training loop and checkpoints, on the dataset built in the previous lecture.
Teach the model which answers are better: direct preference optimization with chosen and rejected pairs, and when DPO beats more SFT.
Is the fine-tune actually better? Evaluate it against the base model on your golden dataset, then register the winner with proper versioning.
The numbers that decide your serving setup: time to first token, tokens per second, and how batching trades latency for throughput.
Serve your model with vLLM: an OpenAI-compatible endpoint, continuous batching, and the settings that matter once real traffic arrives.
Shrink the model without wrecking it: GPTQ, AWQ and GGUF compared, and how to pick a format for your hardware and quality bar.
One API for every provider: route, fall back and log across hosted and self-hosted models through a LiteLLM gateway.
Cut cost and protect the service: response caching for repeated queries, and rate limits that keep one user from taking down the rest.
Package and deploy the LLM service: a production Dockerfile, then Kubernetes with GPU scheduling, health checks and rollouts.
Latency and errors are not enough: the LLM-specific signals worth monitoring, from token usage to answer quality over time.
Follow one request through the whole pipeline: tracing LLM calls with OpenTelemetry, so a slow or bad answer shows exactly where it went wrong.
LLM observability with Langfuse: traces, scores, cost per request and user feedback in one dashboard, wired into SupportBot.
Evaluation does not stop at deploy: thumbs up/down, implicit signals and sampling live traffic for review, turned into new test cases.
Detect when the world changes under your model: drift signals, dashboards that answer "is it healthy", and alerts that fire on the right things.
Where LLM costs actually go and how to cut them: smaller models for easy tasks, caching and batching, with the measurement that tells you it worked.
The OWASP Top 10 for LLM applications applied to SupportBot: injection, data leakage, excessive agency and the rest, with a fix or mitigation for each.
What user data touches the model, where it is stored and who can see it: PII handling, retention, and the governance basics a team will ask about.
Bias, transparency and accountability for an LLM feature, plus the compliance questions worth answering before launch.
The full loop in one pass: prompt, evaluate, fine-tune, serve, secure and monitor SupportBot as a production-style system you can show.
Where to go from here: the skills hiring teams test for in LLMOps roles, how to present your capstone, and a learning path for the next six months.
This course contains the use of artificial intelligence
LLMOps is the practice of running LLM applications in production with reliable quality, safety and cost control. This course teaches it end to end, with one project that grows section by section.
You build SupportBot, a RAG customer-support assistant for a SaaS company, and take it all the way to production. You start by treating prompts as code: templates, structured outputs with Pydantic, versioning, a prompt registry and experiment tracking with MLflow.
Next you learn to measure quality. You build a golden dataset, compare classic and semantic metrics, design LLM-as-a-judge rubrics, and evaluate retrieval and answers with Ragas and DeepEval. You then turn those scores into quality gates in GitHub Actions with promptfoo, red team the bot for prompt injection and jailbreaks, and add guardrails.
Then you fine-tune an open model with LoRA and QLoRA using Hugging Face TRL, align it with DPO, evaluate it against the base model, and register it in MLflow. You serve it with vLLM, compare GPTQ, AWQ and GGUF quantization, and put it behind a LiteLLM gateway with caching, fallbacks and rate limits. You deploy with Docker and Kubernetes.
In production you trace every request with OpenTelemetry and Langfuse, score live traffic with online evaluations and user feedback, and build Prometheus and Grafana dashboards with alerts for latency, cost and quality drift.
You finish with a cost optimization playbook, the OWASP Top 10 for LLM applications, PII handling and data governance, responsible AI practices, and a complete capstone that ties every piece together.
Every lecture includes captions and a transcript, and every command and code sample is real, so you can reuse them in your own projects at work.