This hands-on lab guides you through creating a model to enhance the Natural Language Processing capabilities of your applications, using Microsoft's Language Understanding Intelligent Service (LUIS).
In this lab, you will build, train and publish a LUIS model to help your bot (which will be created in a future lab) communicate effectively
This workshop is meant for an AI Developer on Azure. Since this is a short workshop, there are certain things you need before you arrive.
You should have some experience developing bots with Microsoft's Bot Framework. We won't spend a lot of time discussing how to design them or how dialogs work. If you are not familiar with the Bot Framework, you should take this Microsoft Virtual Academy course prior to attending the workshop.
Also, you should have experience with the portal and be able to create resources (and spend money) on Azure. We will not be providing Azure passes for this workshop.
We're going to build an end-to-end scenario that allows you to pull in your own pictures, use Cognitive Services to find objects and people in the images, obtain a description and tags, and store all of that data into a NoSQL Store (CosmosDB). We'll use that NoSQL Store to populate an Azure Search index, and then build a Bot Framework bot using LUIS to allow easy, targeted querying.
Note: In this lab, we will only be creating the LUIS model that you will use in a future lab to build a more intelligent bot.
In lab01.1-computer_vision
, we built a simple C# application that allows you to ingest pictures from your local drive, then invoke the Computer Vision Cognitive Service to grab tags and a description for those images.
Once we had this data, we processed it and stored all the information needed in CosmosDB, our NoSQL PaaS offering.
Now that we have it in CosmosDB, we'll build an Azure Search Index on top of it (Azure Search is our PaaS offering for faceted, fault-tolerant search - think Elastic Search without the management overhead) (tomorrow morning). We'll show you how to query your data, and then build a Bot Framework bot to query it. We'll then extend this bot with LUIS to automatically derive intent from your queries and use those to direct your searches intelligently.
Note: In this lab, we will only be creating the LUIS model that you will use in a future lab to build a more intelligent bot.
This lab was modified from this Cognitive Services Tutorial.
There are several directories in the resources folder:
- assets, instructor, case: You can ignore these folders for the purposes of this lab.
- code: In here, there are several directories that we will use:
- LUIS: Here you will find the LUIS model for the PictureBot. You will create your own, but if you fall behind or want to test out a different LUIS model, you can use the .json file to import this LUIS app.
Over the course of the remainder of the workshop, we will collect various keys. It is recommended that you save all of them in a text file, so you can easily access them throughout the workshop.
Keys
- LUIS API:
- Cosmos DB Connection String:
- Azure Search Name:
- Azure Search Key:
- Bot App Name:
- Bot App ID:
- Bot App Password: