aws-solutions / qnabot-on-aws

AWS QnABot is a multi-channel, multi-language conversational interface (chatbot) that responds to your customer's questions, answers, and feedback. The solution allows you to deploy a fully functional chatbot across multiple channels including chat, voice, SMS and Amazon Alexa.
https://aws.amazon.com/solutions/implementations/aws-qnabot
Apache License 2.0
391 stars 251 forks source link

Prevent loop when using slots and chaining #721

Closed amendlik closed 3 months ago

amendlik commented 4 months ago

Issue #, if available: N/A

Description of changes: When chaining items, if the first item in the chain contains slots, the response will contain 11 copies of the first answer, and never append the answer from the chained item. This PR fixes that issue.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

abhirpat commented 4 months ago

Hi @amendlik thank you for submitting PR. Could you also provide detailed steps to reduce this issue and how you've it configured for us to reproduce looping issue? Thank you.

amendlik commented 3 months ago

I've attached an export of the QNA documents to reproduce the issue. It happens any time the first document includes slots and chains to a second document. loop-bug.json

abhirpat commented 3 months ago

Hi @amendlik , this issue should be addressed with the latest release v6.0.1. Please refer to CHANGELOG for additional details about this release. Thank You!