skip to Main Content

I’m developing an Azure Bot using Bot Framework Composer.

I’ve got my QnA knowledgebase set-up with a number of Context-Only questions.

These questions work perfectly when testing in the QnA portal.

I’ve tested with both my original QnA knowledge base & also the Bot generated knowledge bases.

However when testing via emulator, or working with the Bot in a live environment it bypasses the Context-Only element entirely.

I need the Context-Only elements to work as we have a number of identical departments in different locations – so the same question will require a different answer depending on where our users are based.

Not sure what more info to provide, but if anyone has any insight I’d gratefully welcome it.

2

Answers


  1. Chosen as BEST ANSWER

    Managed to resolve this by adding my Bot to Bot Emulator, and adding the QnA knowledgebase as a service.

    This allowed me to trace the QnA pairs, publish & train within emulator & drive the questions down the correct Context-Only route.


  2. I reproduced the thread and tested it in QnA emulator and web chat. In both cases it worked for and got a response from the bot.

    Go to https://language.azure.com/

    enter image description here

    Choose the Custom question answering

    enter image description here

    Choose Custom question answering

    Click on “Open custom question answering

    enter image description here

    Click on “Create new project

    enter image description here

    enter image description here

    Click on “Edit knowledge base

    enter image description here

    Click on Add questions pair

    enter image description here

    enter image description here

    enter image description here

    Tested in Studio. Worked well

    enter image description here

    Click on “Deploy knowledge base

    enter image description here

    Click on create a bot.

    enter image description here

    enter image description here

    Create a bot

    enter image description here

    Go to “Test in web chat”. Test there. It worked for me.

    We can create synonyms as the context-based elements. When we have context-based, the model can be trained for short form questions, instead of complete pattern of the question.

    enter image description here

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search