Amazon Bedrock: Issues with hitting the 20 node limit

0

Enter image description here

Is there a way to optimize this prompt flow? I'm running into the 20 node limit and I barely got started. A bunch of things are not intuitive to me, and I can't seem to fix it to help rationalize this flow to stay under the limit.

For example,

  1. all of the individual conditions in the condition node can theoretically go to the same Agent or KB. However, it won't let me do that. It forces the each condition to have 1:1 mapping with the Agent or KB. Can multiple conditions go to one Agent or KB?

  2. Does each individual prompt need to have their own flow output? Can they just go to one output node? This is again eating into my 20 node limit.

Thanks

asked 2 months ago76 views
1 Answer
1
Accepted Answer

Hi,

To overcome the 2 limitations that you see, I would suggest you to consider adding AWS Step Functions to your use case: see https://docs.aws.amazon.com/step-functions/latest/dg/sample-bedrock-prompt-chaining.html

  1. You can use Step Functions to chain multiple flows into one. (With the additional flexibility brought by the flow control mechanism brought by the Step Functions).You can generate the mapping of the flows to the right agent, KB, etc. by using Amazon States Language to describe them programmatically. See https://docs.aws.amazon.com/step-functions/latest/dg/statemachine-structure.html
  2. You can overcome the limit of 20 by creating multiple flows under the limit of 20 and combine them via Step Functions organizing their sequencing.

Best,

Didier

profile pictureAWS
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago

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.

Guidelines for Answering Questions