The GitHub Actions job "Tests (AMD)" on 
airflow.git/feat/bedrock-rerank-operator has failed.
Run started by GitHub user gauravSsinha (triggered by potiuk).

Head commit for run:
05fb65713ea0151e2ef0da411277cdbb86c99d9b / gauravSsinha 
<[email protected]>
feat(providers/amazon): add BedrockRerankOperator for document reranking

Add BedrockRerankOperator that uses the Bedrock Agent Runtime Rerank
API to score and reorder documents by relevance to a query. This is
useful for improving RAG pipeline quality by filtering and prioritizing
retrieved results before passing them to a generative model.

Features:
- Configurable model_id (defaults to cohere.rerank-v3-5:0)
- number_of_results parameter to limit returned documents
- Template-able query, documents, and model_id
- Returns ranked results with relevance scores

Example usage in a DAG:
    rerank = BedrockRerankOperator(
        task_id='rerank_results',
        query='What is serverless computing?',
        documents=[{'textDocument': {'text': doc}} for doc in retrieved_docs],
        model_id='cohere.rerank-v3-5:0',
        number_of_results=5,
    )

Signed-off-by: Gaurav Kumar Sinha <[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/26695780561

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to