Sequential /Linear Chaining:
The task is divided into multiple steps.
The output of one LLM call becomes the input to the next.
Use when: A task has a clear sequence of steps.
Conditional Workflow:
A conditional workflow is a Workflow that executes specific paths or actions based on specific rules or conditions
Parallelization:
Multiple tasks execute simultaneously, and their outputs are combined.
Use when: Tasks are independent and can run concurrently.
Orchestrator – Worker:
An orchestrator breaks a complex task into subtasks, assigns them to workers and combines their results.
Use when: The subtasks cannot be fully predefined in advance.
Evaluator - Optimizer:
One LLM generates an output, while another evaluates it.
The output is refined until it meets the required quality or stopping condition.
Use when: Quality improves through iterative feedback.
Agent Loop (Tool-Calling Loop):
The LLM repeatedly decides which action to take, calls a tool, observes the result, and decides what to do next.
Use when: The next action depends on the result of the previous action.
Unlike a fixed workflow, the agent loop can dynamically choose its next step.
Human-in-the-Loop Workflow:
The workflow pauses until a person approves, rejects, or provides missing information.