Amazon Bedrock Agents offers options to choose different flows that can optimize on latency for simpler use cases in which agents have a single knowledge base. To ensure that your agent is able to take advantage of this optimization, check that the following conditions apply to the relevant version of your agent:
-
Your agent contains only one knowledge base.
-
Your agent contains no action groups or they are all disabled.
-
Your agent doesn't request more information from the user if it doesn't have enough information.
-
Your agent is using the default orchestration prompt template.
To learn how to check for these conditions, choose the tab for your preferred method, and then follow the steps:
-
Sign in to the AWS Management Console using an IAM role with Amazon Bedrock permissions, and open the Amazon Bedrock console at https://console.aws.amazon.com/bedrock/
. -
Select Agents from the left navigation pane. Then, choose an agent in the Agents section.
-
In the Agent overview section, check that the User input field is DISABLED.
-
If you're checking if the optimization is being applied to the working draft of the agent, select the Working draft in the Working draft section. If you're checking if the optimization is being applied to a version of the agent, select the version in the Versions section.
-
Check that the Knowledge bases section contains only one knowledge base. If there's more than one knowledge base, disable all of them except for one. To learn how to disable knowledge bases, see Disassociate a knowledge base from an agent.
-
Check that the Action groups section contains no action groups. If there are action groups, disable all of them. To learn how to disable action groups, see Modify an action group.
-
In the Advanced prompts section, check that the Orchestration field value is Default. If it's Overridden, choose Edit (if you're viewing a version of your agent, you must first navigate to the working draft) and do the following:
-
In the Advanced prompts section, select the Orchestration tab.
-
If you revert the template to the default settings, your custom prompt template will be deleted. Make sure to save your template if you need it later.
-
Clear Override orchestration template defaults. Confirm the message that appears.
-
-
To apply any changes you've made, select Prepare at the top of the Agent details page or in the test window. Then, test the agent's optimized performance by submitting a message in the test window.
-
(Optional) If necessary, create a new version of your agent by following the steps at Deploy and integrate an Amazon Bedrock agent into your application.