Skip to content

Commit d9ba9de

Browse files
Merge pull request #3846 from lgayhardt/patch-35
Update flow-tune-prompts-using-variants.md
2 parents 9b9b607 + a33d5e1 commit d9ba9de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/ai-foundry/how-to/flow-tune-prompts-using-variants.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.custom:
88
- ignite-2023
99
- build-2024
1010
ms.topic: how-to
11-
ms.date: 5/21/2024
11+
ms.date: 3/31/2025
1212
ms.reviewer: none
1313
ms.author: lagayhar
1414
author: lgayhardt
@@ -53,7 +53,7 @@ Benefits of using variants include:
5353
In this article, we use **Web Classification** sample flow as example.
5454

5555
1. Open the sample flow and remove the **prepare_examples** node as a start.
56-
1. Under *Tools* select **Prompt flow**.
56+
1. Under *Build and customize* select **Prompt flow**.
5757
2. Select **Create** to open the flow creation wizard.
5858
3. In the flow gallery under *Explore gallery* in the "Web Classification" box select **Clone**.
5959
4. In the flow tab, delete the **prepare_examples** node.
@@ -67,7 +67,7 @@ The classification will be based on the url, the webpage text content summary, o
6767
For a given URL : {{url}}, and text content: {{text_content}}.
6868
Classify above url to complete the category and indicate evidence.
6969
70-
The output shoule be in this format: {"category": "App", "evidence": "Both"}
70+
The output should be in this format: {"category": "App", "evidence": "Both"}
7171
OUTPUT:
7272
```
7373

@@ -147,7 +147,7 @@ When you run the variants with a few single pieces of data and check the results
147147
You can submit a batch run, which allows you test the variants with a large amount of data and evaluate them with metrics, to help you find the best fit.
148148

149149
1. First you need to prepare a dataset, which is representative enough of the real-world problem you want to solve with Prompt flow. In this example, it's a list of URLs and their classification ground truth. We use accuracy to evaluate the performance of variants.
150-
2. Select **Evaluate** on the top right of the page.
150+
2. Select **Evaluate** on the top right of the page then select **Custom Evaluation**.
151151
3. A wizard for **Batch run & Evaluate** occurs. The first step is to select a node to run all its variants.
152152

153153
To test how different variants work for each node in a flow, you need to run a batch run for each node with variants one by one. This helps you avoid the influence of other nodes' variants and focus on the results of this node's variants. This follows the rule of the controlled experiment, which means that you only change one thing at a time and keep everything else the same.

0 commit comments

Comments
 (0)