Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 2.14 KB

File metadata and controls

43 lines (29 loc) · 2.14 KB
title description ms.service ms.topic ms.date author ms.author ms.custom
Get default answer - custom question answering
The default answer is returned when there is no match to the question. You may want to change the default answer from the standard default answer in custom question answering.
azure-ai-language
how-to
12/19/2023
jboback
jboback
language-service-question-answering

Change default answer for custom question answering

The default answer for a project is meant to be returned when an answer is not found. If you are using a client application, such as the Azure AI Bot Service, it may also have a separate default answer, indicating no answer met the score threshold.

Default answer

Default answer Description of answer
KB answer when no answer is determined No good match found in KB. - When the custom question answering API finds no matching answer to the question it displays a default text response. In custom question answering, you can set this text in the Settings of your project.

Client application integration

For a client application, such as a bot with the Azure AI Bot Service, you can choose from the following scenarios:

  • Use your project's setting
  • Use different text in the client application to distinguish when an answer is returned but doesn't meet the score threshold. This text can either be static text stored in code, or can be stored in the client application's settings list.

Change default answer in Language Studio

The project default answer is returned when no answer is returned from custom question answering.

  1. Sign in to the Language Studio. Go to custom question answering and select your project from the list.
  2. Select Settings from the left navigation bar.
  3. Change the value of Default answer when no answer found > Select Save.

[!div class="mx-imgBorder"] Screenshot of project settings with red box around the default answer

Next steps