View information about an agent-knowledge base association - Amazon Bedrock

View information about an agent-knowledge base association

To learn how to view information about a knowledge base, choose the tab for your preferred method, and then follow the steps:

Console
To view information about a knowledge base that's associated with an agent
  1. 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/.

  2. Select Agents from the left navigation pane. Then, choose an agent in the Agents section.

  3. Choose Edit in Agent builder

  4. In the Knowledge bases section, select the knowledge base for which you want to view information.

API

To get information about a knowledge base associated with an agent, send a GetAgentKnowledgeBase request with an Agents for Amazon Bedrock build-time endpoint. Specify the following fields:

To list information about the knowledge bases associated with an agent, send a ListAgentKnowledgeBases request with an Agents for Amazon Bedrock build-time endpoint. Specify the agentId and agentVersion for which you want to see associated knowledge bases.

Field Short description
maxResults The maximum number of results to return in a response.
nextToken If there are more results than the number you specified in the maxResults field, the response returns a nextToken value. To see the next batch of results, send the nextToken value in another request.

See code examples