Skip to main content
Vector search is fast, but it only ranks by embedding similarity. Reranking takes the retrieved candidates, scores each candidate against the query, and returns the best subset. Use reranking when precision matters more than latency. Skip it when results are already good, latency is tight, or an extra model call is not worth the quality gain.

Retrieval reranking

Retrieve wide, rerank down.
Result shape:

Query pipeline reranking

query() wraps query embedding and retrieval in one stable pipeline shape.

Chat reranking

Chat can rerank before building the prompt context. Use Streaming if the UI should show retrieval and generation progress while reranked chat runs.

Choosing a reranker

Practical defaults

If use_rerank=True, the SDK retrieval path needs an actual reranker object or a configured reranker. REST and CLI create the reranker from provider/model fields.