How to use a rerank model in Amazon Bedrock

During re:Invent 2024 it was announced that Amazon Bedrock now have support for a new kind of model — the reranker.