Test your LUIS app

Training and testing an app is an iterative process. After training your LUIS app, test it with sample utterances to see if the intents and entities are recognized correctly. If they're not, make updates to the LUIS app, train, and test again.

Test an utterance

  1. Access your app by selecting its name on the My Apps page.

  2. To access the Test slide-out panel, select Test in your application's top panel.

    Train & Test App page

  3. Enter an utterance in the text box and select Enter. You can type as many test utterances as you want in the Test, but only one utterance at a time.

  4. The utterance, its top intent, and score are added to the list of utterances under the text box.

    Interactive testing identifies the wrong intent

Clear test panel

To clear all the entered test utterances and their results from the test console, select Start over at the upper-left corner of the Test panel.

Close test panel

To close the Test panel, select the Test button again.

Inspect score

You inspect details of the test result in the Inspect panel.

  1. With the Test slide-out panel open, select Inspect for an utterance you want to compare.

    Inspect button

  2. The Inspection panel appears. The panel includes the top scoring intent as well as any identified entities. The panel shows the result of the selected utterance.

    Inspect button

Correct top scoring intent

  1. If the top scoring intent is incorrect, select the Edit button.

    Edit intent

  2. In the drop-down list, select the correct intent for the utterance.

    Select correct intent

Compare with published version

You can test the active version of your app with the published endpoint version. In the Inspect panel, select Compare with published. Any testing against the published model is deducted from your Azure subscription quota balance.

Compare with published

View endpoint JSON in test panel

You can view the endpoint JSON returned for the comparison by selecting the Show JSON view.

Published JSON response

View Bing Spell Check corrections in test panel

You can view the spelling corrections provided by Bing Spell Check v7 API in the JSON view of the Published panel.

To use this feature, you must have published the app, and have a Bing Spell Check service key. The service key is not stored and needs to be reset for each browser session.

Use the following to use the Bing Spell Check v7 service key.

  1. In the test panel, on the Published pane, select Additional Settings.

    Additional Settings link

  2. In the pop-up dialog, enter your Bing Spell Check service key. Enter Bing Spell Check service key

  3. Enter a query with an incorrect spelling such as book flite to seattle and select enter. The incorrect spelling of the word flite is replaced in the query sent to LUIS and the resulting JSON shows both the original query, as query, and the corrected spelling in the query, as alteredQuery.

    Corrected spelling JSON

Batch testing

See batch testing concepts and learn how to test a batch of utterances.

Next steps

If testing indicates that your LUIS app doesn't recognize the correct intents and entities, you can work to improve your LUIS app's accuracy by labeling more utterances or adding features.