1

Currently, I am working on a chatbot project that answers based on a knowledge base that is uploaded as a PDF to the QnAMaker service. However, I have learnt that Azure uses a Deep Learning feature to extract the short answers from the long answer passages that are ranked through the Search Cognitive Service.

May I please know how I could enable this feature.

Reference documentation: https://learn.microsoft.com/en-us/azure/cognitive-services/qnamaker/reference-precise-answering

Result (with Span enabled):

enter image description here

Result (with Span disabled):

enter image description here

Raakesh S
  • 21
  • 2

1 Answers1

1

You can enable precise answers when using the Text Analytics resource with Custom question answering feature. The answerSpanRequest parameter has to be updated for the same.

{
    "question": "How long it takes to charge surface pro 4?",
    "top": 3,
    "answerSpanRequest": {
        "enable": true,
        "topAnswersWithSpan": 1
    }
}

Similarly, the users can choose to disable precise answers by not setting the answerSpanRequest parameter.

{
    "question": "How long it takes to charge surface pro 4?",
    "top": 3
}
Ram
  • 2,459
  • 1
  • 7
  • 14