botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

QnAMakerOptions interface is missing properties

Open Tush-r opened this issue 7 years ago • 5 comments

Issue

QnAMakerOptions interface is missing certain properties like, RankerType and isTest.

These properties/ parameters are mentioned here:

  • https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/concepts/best-practices#searching-for-answers
  • https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/how-to/metadata-generateanswer-usage#match-questions-only-by-text

Other links

QnAMaker rest api: https://docs.microsoft.com/en-us/rest/api/cognitiveservices/qnamakerruntime/runtime/generateanswer#request-body

JavaScript docs: https://docs.microsoft.com/en-us/javascript/api/botbuilder-ai/qnamakeroptions?view=botbuilder-ts-latest

.NET docs: https://docs.microsoft.com/en-us/dotnet/api/microsoft.bot.builder.ai.qna.qnamakeroptions?view=botbuilder-dotnet-stable

Tush-r avatar Sep 06 '19 07:09 Tush-r

@trojenguri, could you take a look at this question from @Tush-r and let them know why this is and if we've got any plans to address?

cleemullins avatar Sep 06 '19 17:09 cleemullins

For Bot SDK, we thought of allowing only to Production endpoint. So, we didn't gave "isTest" flag. And "RankerType" is the new field that we added. We will add this support later.

gurvsing avatar Sep 09 '19 08:09 gurvsing

@trojenguri, when will the new properties be available for use? Could you provide an ETA for customer? Please update, thanks!

tsuwandy avatar Sep 09 '19 14:09 tsuwandy

ETA would be by end of Oct. In next release of SDK.

gurvsing avatar Sep 10 '19 07:09 gurvsing

@trojenguri, when will the new properties be available for use? Could you provide an ETA for customer? Please update, thanks!

The properties can still be used in TypeScript by type casting the QnAMakerOptions object as any. In C# it may be possible by extending the QnAMakerOptions class.

Thanks for your support.

Tush-r avatar Sep 20 '19 12:09 Tush-r