Adding activeLearning capabilities to qnaMakerRecognizer #4055
Labels
feature-request
A request for new functionality or an enhancement to an existing one.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Use this query to search for the most popular feature requests.
Is your feature request related to a problem? Please describe.
I am migrating a bot using botframework 4.3 to use AdaptiveDialogs, the issue comes when I try to maintain the same functionality in QnA dialogs, I reviewed the source and I see that you are not checking if the activeLearning feature is enabled so it can't be used with qnaMakerRecognizer
Describe the solution you'd like
Please add the corresponding logic for checking if activeLearning is enabled using getAnswersRaw instead of getAnswers in the recognize method, as well as the callTrainAsync method for sending the suggestions to QnAMaker
Describe alternatives you've considered
Keep everything using the old code, or copy the files from your package into a local folder, so I can modify them and use that instead
Additional context
`/**
* Queries the knowledgebase and either passes result to the next step or constructs and displays an active learning card
* if active learning is enabled and multiple score close answers are returned.
**/
async callGenerateAnswer(step) {
const dialogOptions = step.activeDialog.state[this.options];
dialogOptions.qnaMakerOptions.qnaId = 0;
dialogOptions.qnaMakerOptions.context = { previousQnAId: 0, previousUserQuery: '' };
The text was updated successfully, but these errors were encountered: