Skip to content

Two undocumented Bedrock limits: pages per minute and Lambda execution time

1

We have stumbled upon what seem to be undocumented Bedrock limits. Context: we process 15000+ pages of complex PDFs (technical manuals). Whatever we do, execution times are huge (8+ hours in this case).

Upon further investigation, we found out that document parsing using foundation models stays flat at 30 pages per minute. We had 0 throttles and 30 of 10,000 RPM used, nothing in our code limits it. Is there a way to increase this limit, as it would speed up the whole process significantly?

Secondly, an even more interesting limit was found - we use POST_CHUNKING transformation Lambdas for contextual enrichment of each document. However, while we expected that standard 900 s limit will be enforced, it turns our that Bedrock times out on large documents at 300 sec with the following message: "Lambda ... timed out. Ensure the function does not run for longer than 5 minutes." Anyone had this problem before? I cannot find this documented anywhere.

1 Answer
0

Hello.

As you pointed out, upon reviewing the documentation, I could not find any mention of the 30 pages-per-minute parsing speed or the 300-second timeout for the POST_CHUNKING Lambda function as explicitly configurable quotas.

For Bedrock Knowledge Bases, you can use options such as Foundation Models, Amazon Bedrock Data Automation, or a default parser to analyze PDF documents.
While the official AWS documentation explains the differences between these analysis methods and their respective limitations, it does not explicitly state the fixed processing speed limit of 30 pages per minute for analysis performed using Foundation Models.
Could you verify whether the overall analysis speed changes depending on whether multiple small PDF files are submitted versus a smaller number of large PDF files?
If parallel processing occurs with multiple files—leading to an increase in overall throughput—it is possible that the document-level processing method is a contributing factor.
https://docs.aws.amazon.com/bedrock/latest/userguide/kb-advanced-parsing.html

As for Lambda, the maximum execution time is typically 15 minutes, so it is possible that Bedrock imposes some kind of limitation.
However, this limitation is not mentioned in the documentation.

If you are processing more than 15,000 pages, rather than simply extending the Lambda timeout, why not consider an architecture that breaks the processing down into smaller units?
You could split large PDFs into chapters or sections, then compare the analysis speed and the efficiency of parallel processing.
Note, however, that splitting files will not necessarily result in faster processing; it also depends on the limitations of the Knowledge Bases themselves.

EXPERT

answered a month ago

EXPERT

reviewed a month ago

  • We have tried with files of all sizes, and the speed does not change in any scenario. Splitting files and parallelization does not help, as you already mentioned - this impacts speed whichever strategy we choose. Also, if we end up doing so much manual work and circumvent Bedrock's mechanisms, why use Bedrock at the first place? I understand the need for service quotas in order to protect the system - however, these quotas should be documented and somewhat flexible.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.