スキップしてコンテンツを表示

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回答
1
承認された回答

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

エキスパート

回答済み 2年前

エキスパート

レビュー済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ