Dashboard
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →

Q18IntermediateConcept

How do you design rollback for an LLM application? What exactly do you roll back?

30-second answerSay your answer out loud first, then reveal.

Rollback matrix

Changed componentRollback mechanismPrerequisite
Prompt / paramsConfig pointer to previous versionPrompt registry with history
Model / providerGateway routing configOld model still available (watch deprecations)
RAG indexSwitch alias to previous indexKeep N previous indexes during a rollback window
Embedding modelRevert alias to old index + old query embedderBoth indexes and embedders deployable
Guardrail thresholdsConfig revertVersioned guardrail configs
CodeRedeploy previous imageStandard CD history
Inference server versionBlue-green or rolling back the deploymentPrevious image cached on nodes

Tricky cases

  • Stateful agents mid-run: in-flight tasks may have started on the new version. Record the version per run; let them finish or restart safely.
  • Conversation continuity: switching versions mid-conversation can confuse users. Prefer per-session stickiness.
  • Side effects already taken (emails sent, records updated) can't be rolled back by deployment. That requires business remediation.

Slow is fine. Stopping is the only problem.