---
title: "Reranking pattern for AI agents | Agentic Pattern Language"
description: "Retrieve many candidates, then let a reranker keep only the most relevant few for the model. Sourced from Anthropic, Dropbox, and Intercom."
url: https://agenticpatternlanguage.com/patterns/reranking/
---

24 [One call](https://agenticpatternlanguage.com/#one-call)

# Reranking

Retrieve many candidates, then let a reranker keep only the most relevant few for the model.

Anthropic, Dropbox, Intercom, Cohere, Google Cloud, Microsoft

[How to read this](https://agenticpatternlanguage.com/notation/)

## Part of

* [Retrieval-augmented generation](https://agenticpatternlanguage.com/patterns/retrieval-augmented-generation/)

## The problem

First-pass retrieval returns many chunks, sometimes hundreds, of mixed relevance.

> In traditional RAG, the AI system searches its knowledge base to find the potentially relevant information chunks. With large knowledge bases, this initial retrieval often returns a lot of chunks—sometimes hundreds—of varying relevance and importance.

Anthropic [Contextual retrieval in AI systems](https://www.anthropic.com/engineering/contextual-retrieval) Sep 19, 2024

## Therefore

> Reranking is a commonly used filtering technique to ensure that only the most relevant chunks are passed to the model.

Anthropic [Contextual retrieval in AI systems](https://www.anthropic.com/engineering/contextual-retrieval) Sep 19, 2024

> Reranking is a technique that provides a semantic boost to the search quality of any keyword or vector search system, and is especially useful in RAG systems.

Cohere [Master Reranking with Cohere Models](https://docs.cohere.com/docs/reranking-with-cohere)

> LLM reranker uses a separate call to Gemini to assess relevance of chunks to a query.

Google Cloud [Reranking for RAG Engine on Gemini Enterprise Agent Platform](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/retrieval-and-ranking?hl=en)

## In use

Intercom Fin

> In this post we share how we deployed an LLM-based reranker and the engineering needed to make it 5x faster while staying reliable on production traffic.

Intercom [Using LLMs as a Reranker for RAG: A Practical Guide](https://fin.ai/research/using-llms-as-a-reranker-for-rag-a-practical-guide/) Sep 11, 2025

## Where it breaks

Reranking adds a step and its latency, and a full model call at query time can be too slow.

> Because reranking adds an extra step at runtime, it inevitably adds a small amount of latency, even though the reranker scores all the chunks in parallel.

Anthropic [Contextual retrieval in AI systems](https://www.anthropic.com/engineering/contextual-retrieval) Sep 19, 2024

> Using LLMs directly at query time to replace traditional ranking models is not currently feasible due to context window limitations and latency constraints.

Dropbox [Using LLMs to amplify human labeling and improve Dash search relevance](https://dropbox.tech/machine-learning/llm-human-labeling-improving-search-relevance-dropbox-dash) Feb 26, 2026

> Semantic ranking uses a lot of resources and time.

Microsoft [Semantic ranking in Azure AI Search](https://learn.microsoft.com/en-us/azure/search/semantic-search-overview)

## Sources

1. [Contextual retrieval in AI systems](https://www.anthropic.com/engineering/contextual-retrieval) Anthropic, Sep 19, 2024
2. [Using LLMs to amplify human labeling and improve Dash search relevance](https://dropbox.tech/machine-learning/llm-human-labeling-improving-search-relevance-dropbox-dash) Dmitriy Meyerzon, Dropbox, Feb 26, 2026
3. [Using LLMs as a Reranker for RAG: A Practical Guide](https://fin.ai/research/using-llms-as-a-reranker-for-rag-a-practical-guide/) Ramil Yarullin, Fedor Parfenov, Intercom, Sep 11, 2025
4. [Master Reranking with Cohere Models](https://docs.cohere.com/docs/reranking-with-cohere) Cohere
5. [Reranking for RAG Engine on Gemini Enterprise Agent Platform](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/retrieval-and-ranking?hl=en) Google Cloud
6. [Semantic ranking in Azure AI Search](https://learn.microsoft.com/en-us/azure/search/semantic-search-overview) Microsoft

Added Nov 14, 2026
