View a markdown version of this page

Updating Vocabulary Entities - Amazon Bedrock

Updating Vocabulary Entities

Use the InvokeDataAutomationLibraryIngestionJob with "UPSERT" operation type to update existing vocabulary entities for the same entityId. This will replace the entire entity with the new content.

Important

UPSERT operations are clobber-style at the entity level. The entire entity is replaced, not merged.

AWS CLI Example:

Note that this operation is same as Adding New Vocabulary Entities.

Request

aws bedrock-data-automation-data-automation invoke-data-automation-library-ingestion-job \ --library-arn "arn:aws:bedrock:us-east-1:123456789012:data-automation-library/healthcare-vocabulary" \ --entity-type "VOCABULARY" \ --operation-type "UPSERT" \ --input-configuration '{"s3Object":{"s3Uri":"s3://my-bucket/manifests/vocabulary-manifest.json"}}' \ --output-configuration '{"s3Uri":"s3://my-bucket/outputs/"}'

AWS Console Example:

  1. Navigate to the "Library details" page for your library

  2. Select the desired entity from the "Custom vocabulary lists"

  3. Make the desired modifications:

    1. Update:

      1. Select the desired phrase

      2. Update the phrase

      3. Choose the check mark to the right of the phrase

    2. Delete

      1. Select the checkbox to the left of the desired phrase(s)

      2. Choose "Delete phrases"

  4. Choose "Save updates"

Custom terminology editor showing phrase ibuprofen updated to display as paracetamol.