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
401 stars 253 forks source link

QNA Bot with bedrock knowledgebase and connect feature. #773

Closed dangollayan closed 4 days ago

dangollayan commented 1 month ago

Describe the bug The bot sometimes returns a blank response when using the Bedrock knowledge base as a fallback feature.

To Reproduce Ask the bot a question that triggers the Bedrock knowledge base fallback feature.

Expected behavior The bot should display the results retrieved from the Bedrock knowledge base.

Please complete the following information about the solution:

Screenshots Sample screenshot of empty response image Logs of empty response: image Connect flow I used: image

Additional context Based on testing and log analysis, the response is blank if the Bedrock knowledge base processing time exceeds 6-7 seconds.

fhoueto-amz commented 1 month ago

Thanks. We will revert back.

abhirpat commented 1 month ago

Hi @dangollayan, thank you for reporting this. To help further investigate it -

  1. You mentioned you see response blank in connect. Could you please try comparing in QnABot's chat client? Does it show blank as well?
  2. Also, in your logs, could you also please provide an expansive screenshot of last line that says "INFO final:". It's the final response that is sent to clients that we need to look at.
  3. Have you checked logs from connect chat side to see if there any errors? You can also try to see browser console logs in chrome developer tools and network logs.
abhirpat commented 1 month ago

Hi @dangollayan wanted to check-in to see if you had a chance to see my previous message.

dangollayan commented 1 month ago

Hi @dangollayan wanted to check-in to see if you had a chance to see my previous message.

Hi, sorry for the late response and thank you for looking out for our problem

  1. Yes, it shows blank also
  2. in the screenshot I sent, in the cloudwatch logs, there's "final:" part
  3. I'll get back to you ASAP
abhirpat commented 3 weeks ago

Hi @dangollayan, checking-in again if you have any further updates on the information I requested.

  1. Thanks
  2. I'll need expanded view of "final" (click dropdown on that line please) so I can look at the response.
  3. Also, on the frontend chat client side, I need to see browser console logs in chrome developer tools and network logs.
fhoueto-amz commented 4 days ago

closing this ticket