ExternalSourcesRetrieveAndGenerateConfiguration - Amazon Bedrock

ExternalSourcesRetrieveAndGenerateConfiguration

The configurations of the external source wrapper object in the retrieveAndGenerate function.

Contents

modelArn

The modelArn used with the external source wrapper object in the retrieveAndGenerate function.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 1011.

Pattern: ^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}))$

Required: Yes

sources

The document used with the external source wrapper object in the retrieveAndGenerate function.

Type: Array of ExternalSource objects

Array Members: Fixed number of 1 item.

Required: Yes

generationConfiguration

The prompt used with the external source wrapper object with the retrieveAndGenerate function.

Type: ExternalSourcesGenerationConfiguration object

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: