Skip to content

Commit 7ff1d39

Browse files
committed
more updates and delete view test results
1 parent 1af087a commit 7ff1d39

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

articles/ai-studio/how-to/flow-develop.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ To create a prompt flow from the gallery in Azure AI Studio:
8585

8686
Each flow is represented by a folder that contains a `flow.dag.yaml`` file, source code files, and system folders. You can add new files, edit existing files, and delete files. You can also export the files to local, or import files from local.
8787

88-
In addition to inline editing the node in flatten view, you can also turn on the **Raw file mode** toggle and select the file name to edit the file in the opening file tab.
88+
In addition to inline editing the node in the default view, you can also turn on the **Raw file mode** toggle and select the file name to edit the file in the opening file tab.
8989

9090
### Flow input and output
9191

@@ -113,7 +113,10 @@ If the condition isn't met, the node is skipped. The node status is shown as "By
113113
You can test the flow in two ways:
114114

115115
- Run **single node**.
116-
- To run a single node, select the **Run icon** on a node in the flatten view. Once running is completed, you can quickly check result in **node output section**.
116+
- To run a single node, select the **Run icon** on a node in the default view. Once running is completed, you can quickly check result in **node output section**.
117+
118+
:::image type="content" source="../media/prompt-flow/node-card-run.png" alt-text="Screenshot shows the run button in the node card.":::
119+
117120
- Run **the whole flow**.
118121
- To run the whole flow, select the **Run button** at the right top.
119122

@@ -123,24 +126,10 @@ For the whole flow run, after you execute the flow, you can see the run status i
123126

124127
##### Understand the trace view
125128

126-
The trace kind of a prompt flow is designated as **Flow**. Within the trace view, the clear sequence of the tools used for flow orchestration can be observed.
127-
128-
Each level 2 span under the flow root represents a node in the flow, executed in the form of a function call, hence the span kind is identified as **Function**. You can see the duration of each node execution in the span tree.
129-
130-
In the span tree, LLM calls are easily identifiable as the **LLM** span. These provide information about the duration of the LLM call and the associated token cost.
131-
132-
By selecting a span, you can see the detailed information on the right side. This includes input & output, Raw Json, and Exception, all of which are useful for observation and debugging.
129+
Select the Trace tab on the Outputs screen to see a graph that provides information about the duration and associated token cost of the flow. Select flow under node name to see detailed flow overview information in the right pane.
133130

134131
:::image type="content" source="../media/prompt-flow/authoring-trace.png" alt-text=" Screenshot of trace detail." lightbox="../media/prompt-flow/authoring-trace.png":::
135132

136-
> [!NOTE]
137-
> In prompt flow SDK, we defined serval span types, including **LLM**, **Function**, **Embedding**, **Retrieval**, and **Flow**. And the system automatically creates spans with execution information in designated attributes and events.
138-
>
139-
> To learn more about span types, see [Trace span](https://microsoft.github.io/promptflow/reference/trace-span-spec-reference.html).
140-
141-
After the flow run is completed, for checking the results, you can select the **View test results** button to check all historical run records in a list. By default, the run records created in the last 7 days are displayed. You can select the **Filter** to change the condition.
142-
143-
:::image type="content" source="../media/prompt-flow/authoring-test-result.png" alt-text="Screenshot of flow test result."lightbox="../media/prompt-flow/authoring-test-result.png":::
144133

145134
You can also select on the **Name** of the run record to view the detailed information in trace view.
146135

-132 KB
Loading
8.91 KB
Loading

0 commit comments

Comments
 (0)