Essay

Diagnosing and Redesigning a Prompting Approach for a Decomposed Workflow

You are building an internal LLM assistant that helps a finance operations team investigate invoice-payment discrepancies. A typical ticket requires (a) extracting key entities from a messy email thread, (b) reconciling amounts across two systems, (c) identifying the most likely root cause (e.g., duplicate invoice, partial payment, currency conversion, timing), and (d) drafting a customer-facing explanation.

Your first implementation uses a single prompt with the full ticket text and the instruction “Let’s think step by step and give the final answer.” It often produces plausible reasoning but (1) misses a critical sub-check (e.g., currency conversion), (2) sometimes never states a clear final conclusion, and (3) varies in format so downstream automation breaks.

Write an essay that proposes a revised prompting workflow that integrates: in-context learning (demonstrations), explicit problem decomposition, least-to-most sequencing of sub-problems, chain-of-thought prompting (including when you would use zero-shot CoT vs a demonstrated CoT example), and an iterative self-refinement loop. Your answer must explain how these elements work together (not as independent tips), what tradeoffs you are making (e.g., context length, reliability, error propagation), and include at least two concrete prompt snippets (not full prompts) that illustrate (i) how you would elicit structured intermediate reasoning while still forcing a final answer, and (ii) how you would run critique-and-revision in self-refinement without losing the decomposed structure.

Image 0

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