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, 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, 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.
- Sign in to the Language Studio. Go to custom question answering and select your project from the list.
- Select Settings from the left navigation bar.
- Change the value of Default answer when no answer found > Select Save.