Ask a question to get started
Enter to sendā¢Shift+Enter new line
BedrockRerank()
BaseDocumentCompressor
The ARN of the reranker model.
Bedrock client to use for compressing documents.
Number of documents to return.
AWS region to initialize the Bedrock client.
AWS profile for authentication, optional.
Initialize the AWS Bedrock client.
Returns an ordered list of documents based on their relevance to the query.
Compress documents using Bedrock's rerank API.
Document compressor that uses AWS Bedrock Rerank API.