Passer au contenu

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

1 réponse
1
Réponse acceptée

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

EXPERT

répondu il y a 2 ans

EXPERT

vérifié il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.