Skip to content
BIASED

LLMOps

Block 1 of 6~3 min

Version the entire request path

A reading-card application extracts a title from supplied text. A new prompt fixes two examples but changes a required title from Schema to Format. The average improves, yet one contract is broken. Operating an LLM application means preserving the exact request path and deciding which evidence allows that path to change.

The titles, outputs, timings and prices below are original fictional fixtures. Outputs are explicitly supplied arrays, not responses collected from a language model. They test evaluation and accounting logic without sending documents to a provider.

Make the request reproducible as an artifact

A prompt embedded in a handler can change with an unrelated deployment. Record its exact content identity together with the model identifier, decoding settings, output schema, retrieval snapshot and tool definitions. Store the evaluated combination as a release. A human-friendly alias may point to it, but the trace should preserve the resolved versions.

A new template can alter output even when the model stays fixed. A changed retrieval corpus can alter the answer without changing either template or model. The complete request path is therefore the review unit. For sensitive content, a content hash and controlled artifact store may be more appropriate than copying every prompt into broadly accessible logs.

Separate application failures from model variation

A model can return syntactically valid text that does not satisfy the task. Parsing, factual support, permissions and task success need separate observations. Stochastic decoding adds variation between calls; backend and model updates can change behaviour as well. Preserve the actual response when permitted, with its version and parameters, instead of assuming a later replay is identical.

For title extraction, exact string matching is an appropriate constructed criterion because the requirement says to preserve the title verbatim. For a summary, the criterion would need evidence, coverage and possibly human judgement. Choose the grader from the task; a convenient metric should not silently redefine success.

Version the inputs to every decision

Keep prompt content, schema and tool permissions in reviewable files. Treat a model migration as a candidate release and evaluate it on retained permitted cases. A model name alone may not identify an immutable backend; record whatever version evidence the service exposes and state any remaining limitation. For a self-hosted model, the tokenizer, weights, engine and quantization settings all belong to the execution description.

Changing one component at a time makes a failure easier to attribute. It is not always possible to freeze a remote service indefinitely, so retain a tested migration path and a fallback for cases whose requirements are no longer met.

Answers are saved on the server and tied to this browser until you sign in.

Go deeper — optional

Code and labs do not count toward the main percentage or the certificate.

  • A mandatory case, judge and retry ledgeroptional

    Titles, outputs, judge counts, spans and token prices are fictional inputs. No model, paid API or private prompt is used. A predeclared required case can block release even when average correctness improves.

    ~20 min · easier on a computer · The corresponding lesson and basic Python functions.

    Self-check in the notebook — not part of mastery or the certificate.