Skip to main content

One post tagged with "Design"

How to design an LLM workflow.

View All Tags

Task Decomposition: Splitting LLM Workflows into Single-Purpose Steps Using agent-actions (Part 1)

· 27 min read
One prompt vs seven steps: a six-job prompt decomposed into seven steps that each ask for one thing

Task decomposition is a technique that engineering has relied on for a long time. In its general form, it means breaking an assigned job down into a planned sequence of subtasks, so that each subtask is small enough for one part of a system to carry out and manage on its own (ScienceDirect). The technique appears in fields as different as robotics, human reliability analysis and parallel computing, and the way it is applied in those fields carries over closely to LLM workflows. In each case, the subtasks that result are either independent of one another, in which case they can be carried out at the same time, or sequentially dependent, in which case the output of one becomes the input of the next. Each subtask is then assigned to whichever resource is best suited to perform it, and the decomposition is considered complete when every subtask has been reduced to a single unit of work, such as one piece of information to gather, one decision to make or one action to take.