Modify an agent-knowledge base association
To learn how to modify an agent-knowledge base association, choose the tab for your preferred method, and then follow the steps:
- Console
-
To modify an agent-knowledge base association
-
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.
-
Choose Edit in Agent builder
-
In the Action groups section, select an action group to edit. Then choose Edit.
-
Edit the existing fields as necessary. For more information, see Augment response generation for your agent with knowledge base.
-
To control whether the agent can use the knowledge base, select Enabled or Disabled. Use this function to help troubleshoot your agent's behavior.
-
To remain in the same window so that you can test your change, choose Save. To return to the Working draft page, choose Save and exit.
-
To apply the changes that you made to the agent before testing it, choose Prepare in the Test window or at the top of the Working draft page.
-
- API
-
To modify the configuration of a knowledge base associated with an agent, send an UpdateAgentKnowledgeBase request with an Agents for Amazon Bedrock build-time endpoint. Because all fields will be overwritten, include both fields that you want to update as well as fields that you want to keep the same. You must specify the
agentVersion
asDRAFT
. For more information about required and optional fields, see Augment response generation for your agent with knowledge base.To apply the changes to the working draft, send a PrepareAgent request with an Agents for Amazon Bedrock build-time endpoint. Include the
agentId
in the request. The changes apply to theDRAFT
version, which theTSTALIASID
alias points to.