Programmatically updating answer for an unanswered question in Custom Question Answering

Anirban Paul 1 Reputation point
2021-12-06T11:03:04.723+00:00

I have created a custom question answering project using Microsoft Conginitive Services and deployed the same. Now I would like to create an UI where an user can see the unanswered questions and update the knowledge base with appropriate answer using the UI itself.

From the deployment details, I am able to extract the Ocp-Apim-Subscription-Key. But I am little confused about the appropriate way of API call in my UI to track and update the unanswered questions.

Could not find many write-up or examples regarding this. Please guide me regarding the same.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,196 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,321 Reputation points Microsoft Employee
    2021-12-07T14:12:21.98+00:00

    You can review the guidelines mentioned in the development lifecycle document mentioned here. Basically, you have to use the generateAnswer API and with isTest field passed in the request check all questions that are unanswered and update them in your KB. Once you are satisfied with the response publish the same so your production app or bot responds with updated KB.

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.