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
Copy file name to clipboardExpand all lines: articles/cognitive-services/language-service/orchestration-workflow/tutorials/connect-services.md
+22-20Lines changed: 22 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Intergate custom question answering and conversational language understanding into orchestration workflows
2
+
title: Integrate custom question answering and conversational language understanding with orchestration workflow
3
3
description: Learn how to connect different projects with orchestration workflow.
4
4
keywords: conversational language understanding, bot framework, bot, language understanding, nlu
5
5
author: aahill
@@ -12,13 +12,13 @@ ms.topic: tutorial
12
12
ms.date: 05/17/2022
13
13
---
14
14
15
-
# Connect different services with orchestration workflow
15
+
# Connect different services with Orchestration workflow
16
16
17
17
Orchestration workflow is a feature that allows you to connect different projects from LUIS, conversational language understanding, and custom question answering in one project. You can then use this project for predictions under one endpoint. The orchestration project makes a prediction on which project should be called and automatically routes the request to that project, and returns with its response.
18
18
19
19
In this tutorial, you will learn how to connect a custom question answering knowledge base with a conversational language understanding project. You will then call the project using the .NET SDK sample for orchestration.
20
20
21
-
This tutorial will include creating a **chit chat** knowledge base and **email commands** project. Chit chat will deal with common niceties and greetings with static responses.
21
+
This tutorial will include creating a **chit chat** knowledge base and **email commands** project. Chit chat will deal with common niceties and greetings with static responses. Email commands will predict among a few simple actions for an email assistant. The tutorial will then teach you to call the Orchestrator using the SDK in a .NET environment using a sample solution.
22
22
23
23
24
24
## Prerequisites
@@ -27,51 +27,51 @@ This tutorial will include creating a **chit chat** knowledge base and **email c
27
27
- You will need the key and endpoint from the resource you create to connect your bot to the API. You'll paste your key and endpoint into the code below later in the tutorial. Copy them from the **Keys and Endpoint** tab in your resource.
28
28
- When you enable custom question answering, you must select an Azure search resource to connect to.
29
29
- Make sure the region of your resource is supported by [conversational language understanding](../../conversational-language-understanding/service-limits.md#regional-availability).
30
-
- Download the **OrchestrationWorkflowSample**sample in [**.NET**](https://aka.ms/orchestration-sample).
30
+
- Download the **OrchestrationWorkflowSample**[sample](https://aka.ms/orchestration-sample).
31
31
32
32
## Create a custom question answering knowledge base
33
33
34
34
1. Sign into the [Language Studio](https://language.cognitive.azure.com/) and select your Language resource.
35
-
2. Find and select the [custom question answering](https://language.cognitive.azure.com/questionAnswering/projects/) card in the homepage.
35
+
2. Find and select the [Custom question answering](https://language.cognitive.azure.com/questionAnswering/projects/) card in the homepage.
36
36
3. Click on **Create new project** and add the name **chitchat** with the language _English_ before clicking on **Create project**.
37
37
4. When the project loads, click on **Add source** and select _Chit chat_. Select the professional personality for chit chat before
38
38
39
39
:::image type="content" source="../media/chit-chat.png" alt-text="A screenshot of the chit chat popup." lightbox="../media/chit-chat.png":::
40
40
41
41
5. Go to **Deploy knowledge base** from the left navigation menu and click on **Deploy** and confirm the popup that shows up.
42
42
43
-
You are now done with deploying your knowledge base for chit chat. You can explore the type of questions and answers to expect in the **Edit knowledge base**tab.
43
+
You are now done with deploying your knowledge base for chit chat. You can explore the type of questions and answers to expect in the **Edit knowledge base**page.
44
44
45
45
## Create a conversational language understanding project
46
46
47
-
1. In Language Studio, go to the [conversational language understanding](https://language.cognitive.azure.com/clu/projects) service.
47
+
1. In Language Studio, go to the [Conversational language understanding](https://language.cognitive.azure.com/clu/projects) service.
48
48
2. Download the **EmailProject.json** sample file [here](https://aka.ms/clu-sample-json).
49
-
3. Click on the arrow next to **Create new project** and select **Import**. Browse to the downloaded EmailProject.json file you downloaded and press Done.
49
+
3. Click on the **Import** button. Browse to the EmailProject.json file you downloaded and press Done.
50
50
51
51
:::image type="content" source="../media/import-export.png" alt-text="A screenshot showing where to import a J son file." lightbox="../media/import-export.png":::
52
52
53
-
4. Once the project is loaded, click on **Training** on the left. Press on Start a training job, provide the model name **v1** and press Train. All other settings such as **Standard Training** and the evaluation settings can be left as is.
53
+
4. Once the project is loaded, click on **Training jobs** on the left. Press on Start a training job, provide the model name **v1** and press Train.
54
54
55
55
:::image type="content" source="../media/train-model.png" alt-text="A screenshot of the training page." lightbox="../media/train-model.png":::
56
56
57
-
5. Once training is complete, click to **Deployments** on the left. Click on Add Deployment and create a new deployment with the name **Testing**, and assign model **v1** to the deployment.
57
+
5. Once training is complete, click to **Deploying a model** on the left. Click on Add Deployment and create a new deployment with the name **Testing**, and assign model **v1** to the deployment.
58
58
59
59
:::image type="content" source="../media/deploy-model-tutorial.png" alt-text="A screenshot showing the model deployment page." lightbox="../media/deploy-model-tutorial.png":::
60
60
61
-
You are now done with deploying a conversational language understanding project for email commands. You can explore the different commands in the **Utterances** page.
61
+
You are now done with deploying a conversational language understanding project for email commands. You can explore the different commands in the **Data labeling** page.
62
62
63
-
## Create an orchestration workflow project
63
+
## Create an Orchestration workflow project
64
64
65
-
1. In Language Studio, go to the [orchestration workflow](https://language.cognitive.azure.com/orchestration/projects) service.
65
+
1. In Language Studio, go to the [Orchestration workflow](https://language.cognitive.azure.com/orchestration/projects) service.
66
66
2. Click on **Create new project**. Use the name **Orchestrator** and the language _English_ before clicking next then done.
67
-
3. Once the project is created, click on **Add** in the **Build schema** page.
67
+
3. Once the project is created, click on **Add** in the **Schema definition** page.
68
68
4. Select _Yes, I want to connect it to an existing project_. Add the intent name **EmailIntent** and select **Conversational Language Understanding** as the connected service. Select the recently created **EmailProject** project for the project name before clicking on **Add Intent**.
69
69
70
70
:::image type="content" source="../media/connect-intent-tutorial.png" alt-text="A screenshot of the connect intent popup in orchestration workflow." lightbox="../media/connect-intent-tutorial.png":::
71
71
72
72
5. Add another intent but now select **Question Answering** as the service and select **chitchat** as the project name.
73
-
6. Similar to conversational language understanding, go to **Training** and start a new training job with the name **v1** and press Train.
74
-
7. Once training is complete, click to **Deployments** on the left. Click on Add deployment and create a new deployment with the name **Testing**, and assign model **v1** to the deployment and press Next.
73
+
6. Similar to conversational language understanding, go to **Training jobs** and start a new training job with the name **v1** and press Train.
74
+
7. Once training is complete, click to **Deploying a model** on the left. Click on Add deployment and create a new deployment with the name **Testing**, and assign model **v1** to the deployment and press Next.
75
75
8. On the next page, select the deployment name **Testing** for the **EmailIntent**. This tells the orchestrator to call the **Testing** deployment in **EmailProject** when it routes to it. Custom question answering projects only have one deployment by default.
76
76
77
77
:::image type="content" source="../media/deployment-orchestrator-tutorial.png" alt-text="A screenshot of the deployment popup for orchestration workflow." lightbox="../media/deployment-orchestrator-tutorial.png":::
@@ -80,16 +80,18 @@ Now your orchestration project is ready to be used. Any incoming request will be
80
80
81
81
## Call the orchestration project with the Conversations SDK
82
82
83
-
1. In the downloaded **OrchestrationWorkflowSample** solution, make sure to install all the required packages. In Visual Studio, go to _Tools_, _NuGet Package Manager_ and select _Package Manager Console_ and run the following command.
83
+
1. In the downloaded sample, open OrchestrationWorkflowSample.sln in Visual Studio.
84
+
85
+
2. In the OrchestrationWorkflowSample solution, make sure to install all the required packages. In Visual Studio, go to _Tools_, _NuGet Package Manager_ and select _Package Manager Console_ and run the following command.
2. In `Program.cs`, replace `{api-key}` and the placeholder endpoint. Use the key and endpoint for the Language resource you created earlier. You can find them in the **Keys and Endpoint** tab in your Language resource in Azure.
91
+
2. In `Program.cs`, replace `{api-key}` and the `{endpoint}` variables. Use the key and endpoint for the Language resource you created earlier. You can find them in the **Keys and Endpoint** tab in your Language resource in Azure.
@@ -100,7 +102,7 @@ ConversationsProject orchestrationProject = new ConversationsProject("Orchestrat
100
102
```
101
103
102
104
4. Run the project or press F5 in Visual Studio.
103
-
5. Input a query such as "read the email from matt" or "hello how are you". You'll now observe different responses for each, a conversational language understanding **EmailProject** response from the first, and the answer from the **chitchat** for the second query.
105
+
5. Input a query such as "read the email from matt" or "hello how are you". You'll now observe different responses for each, a conversational language understanding **EmailProject** response from the first query, and the answer from the **chitchat** knowledge base for the second query.
104
106
105
107
**Conversational Language Understanding**:
106
108
:::image type="content" source="../media/clu-response-orchestration.png" alt-text="A screenshot showing the sample response from conversational language understanding." lightbox="../media/clu-response-orchestration.png":::
0 commit comments