Welcome to the Bot Framework SDK for JavaScript repository, which is the home for the libraries and packages that enable developers to build sophisticated bot applications using JavaScript.
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: '' };
If active learning options were displayed in the previous step and the user has selected an option other
than 'no match' then the training API is called, passing the user's chosen question back to the knowledgebase.
If no active learning options were displayed in the previous step, the incoming result is immediately passed to the next step.
**/
async callTrain(step) {
const dialogOptions = step.activeDialog.state[this.options];
const trainResponses = step.values[this.qnAData];
const currentQuery = step.values[this.currentQuery];
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 `/**
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: '' };
} /**
If no active learning options were displayed in the previous step, the incoming result is immediately passed to the next step. **/ async callTrain(step) { const dialogOptions = step.activeDialog.state[this.options]; const trainResponses = step.values[this.qnAData]; const currentQuery = step.values[this.currentQuery];
}`