---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

1.  [](/)
2.  [Glossary](/glossary)
3.  Re-ranking

[Back to Glossary](/glossary)

# What is Re-ranking

## Re-ranking - Refining search result order after initial retrieval

A second-stage ranking process that reorders initial search results using a more computationally expensive but accurate scoring model. Re-ranking is essential for maximizing precision in multimodal retrieval pipelines where first-stage recall is prioritized over exact ordering.

![Reranking is the precision second stage of retrieval: a fast first-stage retriever recalls a broad candidate set optimized for recall, then a cross-encoder reranker reads each query-document pair together and re-scores them so the most relevant results rise to the top before they reach the model. Fast recall first, precise scoring second.](/diagrams/foundations/reranking.webp)

Reranking re-scores first-stage candidates with a cross-encoder so the best results rise to the top. [See the full diagram →](/diagrams/reranking)

### How It Works

Re-ranking takes the top-k results from a fast first-stage retrieval system and rescores them using a more powerful model. Cross-encoder rerankers process the query and each candidate document jointly, enabling fine-grained interaction between query and document tokens. This produces more accurate relevance scores than bi-encoder models that encode query and document independently.

### Technical Details

Cross-encoder rerankers (BGE-reranker, Cohere Rerank, ColBERT) take concatenated query-document pairs and output relevance scores. Processing is O(n) per query where n is the number of candidates to rerank. Typical rerank depths are 50-200 candidates. Latency adds 50-200ms for reranking 100 candidates. Learning-to-rank (LTR) models combine multiple features (BM25 score, semantic score, metadata) into a final ranking.

### Best Practices

*   Use a two-stage pipeline: fast retrieval (bi-encoder + ANN) then accurate reranking (cross-encoder)
*   Rerank a sufficient number of candidates (50-200) to not miss relevant results
*   Choose reranker model size based on latency budget and accuracy requirements
*   Combine multiple signals (semantic score, keyword score, recency) in learning-to-rank

### Common Pitfalls

*   Reranking too few candidates, missing relevant results that the first stage retrieved
*   Reranking too many candidates, adding unnecessary latency without improving results
*   Using a reranker trained on general data for a specialized domain without fine-tuning
*   Not measuring the marginal improvement of reranking to justify the added latency

### Advanced Tips

*   Use multimodal rerankers that jointly score text and visual features for cross-modal retrieval
*   Implement cascaded reranking with progressively more expensive models at each stage
*   Apply distillation from cross-encoder rerankers to improve bi-encoder quality for the first stage
*   Use user feedback (clicks, dwell time) to train personalized reranking models

[One-click templatesStart from a templateEach template deploys a working search app on your own files.Browse templates](/templates)

[Put it to work: search your own files](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=glossary_onramp&utm_campaign=mvs_onramp)

### Related Terms

[ACID](/glossary/acid)[API](/glossary/api)[Blob Storage](/glossary/blob-storage)[CLIP](/glossary/clip)[Embedding](/glossary/embedding)