You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn how to use Prompt flow in Azure Machine Learning studio.
5
5
services: machine-learning
6
6
ms.service: machine-learning
7
-
ms.subservice: core
7
+
ms.subservice: prompt-flow
8
8
ms.topic: tutorial
9
9
author: ishinzhang
10
10
ms.author: yijunzhang
11
11
ms.reviewer: lagayhar
12
-
ms.date: 06/30/2023
12
+
ms.date: 09/12/2023
13
13
---
14
14
15
15
# Get started with Prompt flow (preview)
@@ -81,14 +81,13 @@ In **Flows** tab of Prompt flow home page, select **Create** to create your firs
81
81
82
82
The built-in samples are shown in the gallery.
83
83
84
-
In this guide, we'll use **Web Classification** sample to walk you through the main user journey. You can select **View detail** on Web Classification tile to preview the sample. Then a preview window is popped up. You can browse the sample introduction to see if the sample is similar to your scenario. Or you can just click**Clone** to clone the sample directly, then check the flow, test it, modify it.
84
+
In this guide, we'll use **Web Classification** sample to walk you through the main user journey. You can select **View detail** on Web Classification tile to preview the sample. Then a preview window is popped up. You can browse the sample introduction to see if the sample is similar to your scenario. Or you can just select**Clone** to clone the sample directly, then check the flow, test it, modify it.
85
85
86
86
:::image type="content" source="./media/get-started-prompt-flow/sample-in-gallery.png" alt-text="Screenshot of create from galley highlighting web classification. " lightbox = "./media/get-started-prompt-flow/sample-in-gallery.png":::
87
87
88
-
After clicking **Clone**, as shown in the right pannel, the new flow will be saved in a specific folder within your workspace file share storage. You can customize the folder name acccording to your preferences.
89
-
90
-
:::image type="content" source="./media/get-started-prompt-flow/specify-flow-folder-name.png" alt-text="Screenshot of specify the flow folder name when creating a flow. " lightbox = "./media/get-started-prompt-flow/specify-flow-folder-name.png":::
88
+
After selecting **Clone**, as shown in the right panel, the new flow will be saved in a specific folder within your workspace file share storage. You can customize the folder name according to your preferences.
91
89
90
+
:::image type="content" source="./media/get-started-prompt-flow/specify-flow-folder-name.png" alt-text="Screenshot of specifying the flow folder name when creating a flow. " lightbox = "./media/get-started-prompt-flow/specify-flow-folder-name.png":::
92
91
93
92
### Authoring page
94
93
@@ -102,7 +101,7 @@ The top right corner shows the folder structure of the flow. Each flow has a fol
102
101
103
102
:::image type="content" source="./media/get-started-prompt-flow/folder-structure-view.png" alt-text="Screenshot of web classification highlighting the folder structure area." lightbox = "./media/get-started-prompt-flow/folder-structure-view.png":::
104
103
105
-
In addition to inline editting the node in flatten view, you can also turn on the **Raw file mode** toggle and click the file name to edit the file in the openning file tab.
104
+
In addition to inline editing the node in the 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.
106
105
107
106
:::image type="content" source="./media/get-started-prompt-flow/file-edit-tab.png" alt-text="Screenshot of the file edit tab under raw file mode." lightbox = "./media/get-started-prompt-flow/file-edit-tab.png":::
108
107
@@ -190,16 +189,16 @@ Select **Batch run** button, then a right panel pops up. It's a wizard that guid
190
189
191
190
You need to set a batch run name, description, then select a runtime first.
192
191
193
-
Then select **Upload new data** to upload the data you just downloaded. After uploading the data or if your colleagues in the workspace already created a dataset, you can choose the dataset from the drop-down and preview first 5 rows. The dataset selection drop down supports search and autosuggestion.
194
-
192
+
Then select **Upload new data** to upload the data you just downloaded. After uploading the data or if your colleagues in the workspace already created a dataset, you can choose the dataset from the drop-down and preview first five rows. The dataset selection drop down supports search and autosuggestion.
195
193
196
-
In addition, the **input mapping** supports mapping your flow input to a specific data column in your dataset, which means that you can use any column as the input, even if the column names do not match.
194
+
In addition, the **input mapping** supports mapping your flow input to a specific data column in your dataset, which means that you can use any column as the input, even if the column names don't match.
197
195
198
196
:::image type="content" source="./media/get-started-prompt-flow/upload-new-data-batch-run.png" alt-text="Screenshot of Batch run and evaluate, highlighting upload new data." lightbox = "./media/get-started-prompt-flow/upload-new-data-batch-run.png":::
199
197
200
198
After that, you can select the **Review+submit** button to do batch run directly, or you can select **Next** to use an evaluation method to evaluate your flow.
201
199
202
200
### Evaluate
201
+
203
202
Turn on the toggle in evaluation settings tab. The evaluation methods are also flows that use Python or LLM etc., to calculate metrics like accuracy, relevance score. The built-in evaluation flows and customized ones are listed in the drop-down.
204
203
205
204
:::image type="content" source="./media/get-started-prompt-flow/accuracy.png" alt-text="Screenshot of Web classification showing the batch run and evaluate on the evaluation settings." lightbox = "./media/get-started-prompt-flow/accuracy.png":::
@@ -218,7 +217,7 @@ When completed, select the link, go to batch run detail page.
218
217
219
218
:::image type="content" source="./media/get-started-prompt-flow/batch-run-status.png" alt-text="Screenshot of Web classification showing a successful batch run and link to detail page." lightbox = "./media/get-started-prompt-flow/batch-run-status.png":::
220
219
221
-
Select **Refresh** until the run is completed. The upper area displays the batch run information, the lower section shows the evaluation run. By clicking the link of run name, you can view the snapshot of a run and overview the output result.
220
+
Select **Refresh** until the run is completed. The upper area displays the batch run information, the lower section shows the evaluation run. By selecting the link of run name, you can view the snapshot of a run and overview the output result.
222
221
223
222
:::image type="content" source="./media/get-started-prompt-flow/refresh-until-the-evaluation-run-is-completed.png" alt-text="Screenshot of Web classification batch run detail page." lightbox = "./media//get-started-prompt-flow/refresh-until-the-evaluation-run-is-completed.png":::
description: Learn how to develop a chat flow in Prompt flow that can easily create a chatbot that handles chat input and output with Azure Machine Learning studio.
5
5
services: machine-learning
6
6
ms.service: machine-learning
7
-
ms.subservice: core
7
+
ms.subservice: prompt-flow
8
8
ms.topic: how-to
9
9
author: Zhong-J
10
10
ms.author: jinzhong
11
11
ms.reviewer: lagayhar
12
-
ms.date: 06/30/2023
12
+
ms.date: 09/12/2023
13
13
---
14
14
15
15
# Develop a chat flow
@@ -28,7 +28,7 @@ To create a chat flow, you can **either** clone an existing chat flow sample fro
28
28
29
29
:::image type="content" source="./media/how-to-develop-a-chat-flow/create-chat-flow.png" alt-text="Screenshot of the Prompt flow gallery highlighting chat flow and Chat with Wikipedia. " lightbox = "./media/how-to-develop-a-chat-flow/create-chat-flow.png":::
30
30
31
-
After clicking **Clone**, as shown in the right pannel, the new flow will be saved in a specific folder within your workspace file share storage. You can customize the folder name acccording to your preferences.
31
+
After selecting **Clone**, as shown in the right panel, the new flow will be saved in a specific folder within your workspace file share storage. You can customize the folder name according to your preferences.
32
32
33
33
:::image type="content" source="./media/how-to-develop-a-chat-flow/specify-flow-folder-name.png" alt-text="Screenshot of specify the flow folder name when creating a flow. " lightbox = "./media/how-to-develop-a-chat-flow/specify-flow-folder-name.png":::
34
34
@@ -47,7 +47,7 @@ The top right corner shows the folder structure of the flow. Each flow has a fol
47
47
48
48
:::image type="content" source="./media/how-to-develop-a-chat-flow/folder-structure-view.png" alt-text="Screenshot of web classification highlighting the folder structure area." lightbox = "./media/how-to-develop-a-chat-flow/folder-structure-view.png":::
49
49
50
-
In addition to inline editting the node in flatten view, you can also turn on the **Raw file mode** toggle and click the file name to edit the file in the openning file tab.
50
+
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.
51
51
52
52
:::image type="content" source="./media/how-to-develop-a-chat-flow/file-edit-tab.png" alt-text="Screenshot of the file edit tab under raw file mode." lightbox = "./media/how-to-develop-a-chat-flow/file-edit-tab.png":::
description: learn how to develop the standard flow in the authoring page in Prompt flow with Azure Machine Learning studio.
5
5
services: machine-learning
6
6
ms.service: machine-learning
7
-
ms.subservice: core
7
+
ms.subservice: prompt-flow
8
8
ms.topic: how-to
9
9
author: jiaochenlu
10
10
ms.author: chenlujiao
11
11
ms.reviewer: lagayhar
12
-
ms.date: 06/30/2023
12
+
ms.date: 09/12/2023
13
13
---
14
14
15
15
# Develop a standard flow (preview)
@@ -46,7 +46,7 @@ The top right corner shows the folder structure of the flow. Each flow has a fol
46
46
47
47
:::image type="content" source="./media/how-to-develop-a-standard-flow/folder-structure-view.png" alt-text="Screenshot of web classification highlighting the folder structure area." lightbox = "./media/how-to-develop-a-standard-flow/folder-structure-view.png":::
48
48
49
-
In addition to inline editting the node in flatten view, you can also turn on the **Raw file mode** toggle and click the file name to edit the file in the openning file tab.
49
+
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.
50
50
51
51
:::image type="content" source="./media/how-to-develop-a-standard-flow/file-edit-tab.png" alt-text="Screenshot of the file edit tab under raw file mode." lightbox = "./media/how-to-develop-a-standard-flow/file-edit-tab.png":::
52
52
@@ -156,7 +156,7 @@ Below are common scenarios for linking nodes together.
156
156
### Scenario 1 - Link LLM node with flow input
157
157
158
158
1. Add a new LLM node, rename it with a meaningful name, specify the connection and API type.
159
-
2. Edit the prompt box, add an input by `{{url}}`, click**Validate and parse input**, then you'll see an input called URL is created in inputs section.
159
+
2. Edit the prompt box, add an input by `{{url}}`, select**Validate and parse input**, then you'll see an input called URL is created in inputs section.
160
160
3. In the value drop-down, select ${inputs.url}, then you'll see in the graph view that the newly created LLM node is linked to the flow input. When running the flow, the URL input of the node will be replaced by flow input on the fly.
161
161
162
162
:::image type="content" source="./media/how-to-develop-a-standard-flow/link-llm-node-input-1-1.png" alt-text="picture of scenario one showing the LLM tool and editing the prompt (step1). " lightbox = "./media/how-to-develop-a-standard-flow/link-llm-node-input-1-1.png":::
@@ -165,7 +165,7 @@ Below are common scenarios for linking nodes together.
165
165
166
166
### Scenario 2 - Link LLM node with single-output upstream node
167
167
168
-
1. Edit the prompt box, add another input by `{{summary}}`, click**Validate and parse input**, then you'll see an input called summary is created in inputs section.
168
+
1. Edit the prompt box, add another input by `{{summary}}`, select**Validate and parse input**, then you'll see an input called summary is created in inputs section.
169
169
2. In the value drop-down, select ${summarize_text_content.output}, then you'll see in the graph view that the newly created LLM node is linked to the upstream summarize_text_content node. When running the flow, the summary input of the node will be replaced by summarize_text_content node output on the fly.
170
170
171
171
:::image type="content" source="./media/how-to-develop-a-standard-flow/link-llm-node-input-2.png" alt-text="Gif of scenario two editing the prompt and inputs. " lightbox = "./media/how-to-develop-a-standard-flow/link-llm-node-input-2.png":::
0 commit comments