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.
CodePudding user response:
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/
Choose the Custom question answering
Choose Custom question answering
Click on “Open custom question answering”
Click on “Create new project”
Click on “Edit knowledge base”
Click on Add questions pair
Tested in Studio. Worked well
Click on “Deploy knowledge base”
Click on create a bot.
Create a bot
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.
CodePudding user response:
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.