Skip to content

Commit 93cf472

Browse files
authored
Merge pull request #98819 from diberry/diberry/1212-luis-pattern-howto
[Cogsvcs] LUIS - patterns -how-to
2 parents fd2f0e9 + fec39ce commit 93cf472

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

articles/cognitive-services/LUIS/luis-how-to-model-intent-pattern.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,27 @@ After a LUIS app receives endpoint utterances, use a [pattern](luis-concept-patt
2222
> [!CAUTION]
2323
> Patterns only include machine-learned entity parents, not subcomponents.
2424
25-
## Add template utterance to create pattern
25+
## Adding example utterances as pattern
26+
27+
If you want to add a pattern for an entity, the _easiest_ way is to create the pattern from the Intent details page. This ensures your syntax matches the example utterance.
28+
29+
1. In the [preview LUIS portal](https://preview.luis.ai), select the app from the **My Apps** page.
30+
1. On the **Intents** list page, select the intent name of the example utterance you want to create a template utterance from.
31+
1. On the Intent details page, select the row for the example utterance you want to use as the template utterance, then select **+ Add as pattern** from the context toolbar.
32+
33+
> [!div class="mx-imgBorder"]
34+
> ![Screenshot of selecting example utterance as a template pattern on the Intent details page.](./media/luis-how-to-model-intent-pattern/add-example-utterances-as-pattern-template-utterance-from-intent-detail-page.png)
35+
36+
1. In the pop-up box, select **Done** on the **Confirm patterns** page. You don't need to define the entities' subcomponents, constraints, or descriptors. You only need to list the machine-learned entity.
37+
38+
> [!div class="mx-imgBorder"]
39+
> ![Screenshot of confirming example utterance as a template pattern on the Intent details page.](./media/luis-how-to-model-intent-pattern/confirm-patterns-from-example-utterance-intent-detail-page.png)
40+
41+
1. If you need to edit the template, such as selecting text as optional, with the `[]` (square) brackets, you need to make this edit form the **Patterns** page.
42+
43+
1. In the navigation bar, select **Train** to train the app with the new pattern.
44+
45+
## Add template utterance using correct syntax
2646

2747
1. Open your app by selecting its name on **My Apps** page, and then select **Patterns** in the left panel, under **Improve app performance**.
2848

Loading
Loading

0 commit comments

Comments
 (0)