Forum Discussion

wilzuluaga's avatar
wilzuluaga
Copper Contributor
Nov 12, 2020

QnA maker bot returns both short and long answer in Test in Web Chat

Hi.

I created a knowledge base at qnmaker.ai and followed some basic steps in order to create a bot without coding yet. However, when I'm testing it in Test in Web Chat in Azure, it's returning me both short and long answer, as I show in the following picture.

 

 

IMPORTANT NOTE: It's not returning in all questions two answers, just with some of them.

I just want to get the long answers

  • maumak's avatar
    maumak
    Mar 17, 2021

    julianportelli 

    I was finding the same issue, running within the test web bot and Teams. I eventually found a solution.

    If you navigate to the bot's app service in Azure portal, go to the configuration settings and add the key value pair EnablePreciseAnswer:false then this will remove the precise answer or short answer from the response. You will need to save the change and restart the app service for the change to take effect.

  • julianportelli's avatar
    julianportelli
    Copper Contributor
    Hi
    Have you received any update on this? I am facing this issue myself and can't seem to find a solution either.
    • maumak's avatar
      maumak
      Copper Contributor

      julianportelli 

      I was finding the same issue, running within the test web bot and Teams. I eventually found a solution.

      If you navigate to the bot's app service in Azure portal, go to the configuration settings and add the key value pair EnablePreciseAnswer:false then this will remove the precise answer or short answer from the response. You will need to save the change and restart the app service for the change to take effect.

      • lzheng88's avatar
        lzheng88
        Copper Contributor

        maumak Can you specify where you added the key value pair? I went to Azure Portal>Bot Services>Configuration (under settings), but do not see somewhere for a value pair input. I see headings 'Messaging endpoint', 'Application Insights instrumentation key', 'Application Insights API key', 'Application Insights Application ID', 'Schema Transformation Version', and then below a button for adding OAuth Connection Settings. I am also on the free 30 day trial so if there's another heading, perhaps I don't have permissions?

Resources