Skip to content

/AWS1/CL_BDA=>UPDATEKNOWLEDGEBASE()

About UpdateKnowledgeBase

Updates the configuration of a knowledge base with the fields that you specify. Because all fields will be overwritten, you must include the same values for fields that you want to keep the same.

You can change the following fields:

  • name

  • description

  • roleArn

You can't change the knowledgeBaseConfiguration or storageConfiguration fields, so you must specify the same configurations as when you created the knowledge base. You can send a GetKnowledgeBase request and copy the same configurations.

Method Signature

IMPORTING

Required arguments:

IV_KNOWLEDGEBASEID TYPE /AWS1/BDAID /AWS1/BDAID

The unique identifier of the knowledge base to update.

IV_NAME TYPE /AWS1/BDANAME /AWS1/BDANAME

Specifies a new name for the knowledge base.

IV_ROLEARN TYPE /AWS1/BDAKNOWLEDGEBASEROLEARN /AWS1/BDAKNOWLEDGEBASEROLEARN

Specifies a different Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.

IO_KNOWLEDGEBASECONF TYPE REF TO /AWS1/CL_BDAKNOWLEDGEBASECONF /AWS1/CL_BDAKNOWLEDGEBASECONF

Specifies the configuration for the embeddings model used for the knowledge base. You must use the same configuration as when the knowledge base was created.

IO_STORAGECONFIGURATION TYPE REF TO /AWS1/CL_BDASTORAGECONF /AWS1/CL_BDASTORAGECONF

Specifies the configuration for the vector store used for the knowledge base. You must use the same configuration as when the knowledge base was created.

Optional arguments:

IV_DESCRIPTION TYPE /AWS1/BDADESCRIPTION /AWS1/BDADESCRIPTION

Specifies a new description for the knowledge base.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_BDAUPKNOWLEDGEBASERSP /AWS1/CL_BDAUPKNOWLEDGEBASERSP