botframework-sdk
botframework-sdk copied to clipboard
QnaMakerDialog class will always return one result even if QnA returns multiple answers
Version
4.15.1
Describe the bug
QnaMakerDialog class takes the first element in the response list from QnA query, even if there are multiple possible answers returned by the service. This makes the top argument in the class constructor useless.
To Reproduce
Initialize a QnaMakerDialog with top argument >1 and run the Dialog with a question that could have multiple answers.
Expected behavior
Not sure if this is by design or the dialog should send an activity per QnA answer returned.
Additional context
This problem was identified during the investigation of this issue
Tracking Status
Dotnet SDK TODO
- [ ] PR
- [ ] Merged
Javascript SDK TODO
- [ ] PR
- [ ] Merged
Python SDK TODO
- [ ] PR
- [ ] Merged
Java SDK TODO
- [ ] PR
- [ ] Merged
Samples TODO
- [ ] PR
- [ ] Merged
Docs TODO
- [ ] PR
- [ ] Merged
Tools TODO
- [ ] PR
- [ ] Merged