RerankDocument - Amazon Bedrock
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

RerankDocument

Contains information about a document to rerank. Choose the type to define and include the field that corresponds to the type.

Contents

type

The type of document to rerank.

Type: String

Valid Values: TEXT | JSON

Required: Yes

jsonDocument

Contains a JSON document to rerank.

Type: JSON value

Required: No

textDocument

Contains information about a text document to rerank.

Type: RerankTextDocument object

Required: No

See Also

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