Case Study

Designing a Robust Prompting Workflow for Multi-Step Root-Cause Analysis with Limited Examples

You are rolling out an internal LLM assistant for SREs to perform root-cause analysis (RCA) from incident artifacts. The assistant receives: (1) a short incident timeline, (2) 30–60 lines of logs, and (3) a list of recent deploys. The desired output is a single RCA summary with: likely cause, supporting evidence, and a recommended next action.

Constraints: You can only include ONE short demonstration in the prompt due to context limits; the assistant must work on novel incidents; and the first pilot showed two failure modes: (a) the model jumps to a plausible cause without checking evidence across artifacts, and (b) when you add “Let’s think step by step,” it sometimes produces a long analysis but forgets to state a clear final RCA.

As the prompt/workflow designer, propose a concrete prompting plan that combines: (i) in-context learning with the single demonstration, (ii) explicit problem decomposition (including a least-to-most style progression of sub-questions), (iii) chain-of-thought elicitation (including how you would use or avoid zero-shot CoT triggers), and (iv) self-refinement (critique + revision) to reduce both failure modes. Your answer must include the exact structure of the prompt(s) you would send (section headings and what each section contains) and explain why each component is placed where it is.

0

1

Updated 2026-02-06

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Ch.3 Prompting - Foundations of Large Language Models

Ch.5 Inference - Foundations of Large Language Models

Ch.1 Pre-training - Foundations of Large Language Models

Related