Develop a dag flow#
LLM apps can be defined as Directed Acyclic Graphs (DAGs) of function calls. These DAGs are flows in prompt flow.
A DAG flow
in prompt flow is a DAG of functions (we call them tools). These functions/tools connected via input/output dependencies and executed based on the topology by prompt flow executor.
A flow is represented as a YAML file and can be visualized with our Prompt flow for VS Code extension. Here is an example flow.dag.yaml
:
Please refer to our examples and guides in this section to learn how to write a DAG flow
.
Note:
promptflow also support user develop a a flow using code. learn more on comparasion of these two flow concepts.