bedrock-claude-chat icon indicating copy to clipboard operation
bedrock-claude-chat copied to clipboard

Large amounts of files uploaded but response is SLOW

Open dezhouc2 opened this issue 1 year ago • 7 comments

Describe the bug

Sorry for the confusion, but this is not a bug. I have been using this knowledge database for a while. However, after uploading a large amount of files, the response time has become very slow, sometimes taking more than 10 seconds, which negatively impacts the user experience. In comparison, when a small amount of files are uploaded, the database responds much faster.

I'm wondering why this happens and how we (as users) can achieve quick responses even when a large number of files are uploaded.

Furthermore, the current maximum token limit is 4096. Would it be possible to increase the number of tokens?

Thank you very much!

dezhouc2 avatar May 16 '24 03:05 dezhouc2

Similar to what I experienced https://github.com/aws-samples/bedrock-claude-chat/issues/305

jeremylatorre avatar May 16 '24 09:05 jeremylatorre

Do you have any public files that can be used to reproduce the issue?

statefb avatar May 16 '24 12:05 statefb

Similar to what I experienced #305

Have you resolved this issue? Any technique or thought? thank you

dezhouc2 avatar May 16 '24 15:05 dezhouc2

Do you have any public files that can be used to reproduce the issue?

I can provide some files that are public used such as the one in the attachment. Most of my files are internal used which not public (sorry for that). Anyways, for example, once you uploaded 20 files and each has more than 200 pages. Whenever you ask a question or simple conception, the response from knowledge database is extremely SLOW.

PCI-DSS-v3_2_1-ROC-Reporting-Template.pdf

dezhouc2 avatar May 16 '24 15:05 dezhouc2

Similar to what I experienced #305

Have you resolved this issue? Any technique or thought? thank you

No, not yet. But my thought was about the cold start from the lambda in NodeJS CustomHandler. I have to try provisioned concurrency and see if it fixes my problem. For me the problem appears only on the first question, then if you you don't stop asking questions, it's only taking 5s maximum for the next ones

jeremylatorre avatar May 17 '24 08:05 jeremylatorre

NodeJS CustomHandler

May I ask you which custom handler you are reffering to?

statefb avatar May 18 '24 01:05 statefb

Lambda was a wrong lead, most-likely related to the search in vector database /conversation/related-documents

jeremylatorre avatar Jun 11 '24 15:06 jeremylatorre