Case Study

Designing a Decomposition-and-QA-Pair Workflow for Contract Review with Recursive Escalation

You are implementing an internal LLM assistant to help a legal-ops team review vendor contracts for (1) data-processing obligations, (2) security requirements, and (3) termination/liability clauses. The assistant must produce a final one-page risk summary with citations to the contract text. In a pilot, the team used a single prompt and got a confident but inconsistent summary. They then tried a fixed list of sub-questions, but the model still missed a critical cross-reference: a security addendum that changes the definition of “Confidential Information,” which in turn affects the liability cap.

Design a decomposition-based workflow that (a) generates sub-problems, (b) solves them sequentially while carrying forward context as question–answer pairs, and (c) uses recursive decomposition when a sub-problem is too complex (e.g., resolving definitions and cross-references). Your answer must specify: the initial set of sub-problems you would generate, the order you would solve them in, what each step’s stored QA pair should contain to support later steps, and one example of a sub-problem that should trigger recursive decomposition (including what the second-level sub-problems would be).

0

1

Updated 2026-02-06

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Related