EngineeringUpdated 2026-10-24

Reranking

Re-scoring and reordering retrieved passages with a stronger model after initial retrieval.

#RAG#检索#排序

In plain language

Vector search excels at recall, but similarity is not relevance. A reranker (cross-encoder or LLM) reads the question and each candidate together, judges whether it actually answers the question, and sends the best passages to the generator. It improves RAG precision at the cost of latency and compute. A common pattern retrieves 20-50 candidates, reranks and keeps the top 3-8.

Example

For “how long do refunds take,” vector search may retrieve the refund policy; reranking puts the “3-5 business days” passage first.

Recommended tools

Related terms