Skip to content
GDFN domain marketplace banner

Re-Ranking

1 min read
Featured image for Re-Ranking

Re-ranking is the step that refines retrieved candidates by scoring them with a stronger model (cross-encoder, LLM, or specialized ranker) to improve relevance beyond approximate nearest-neighbor search. In RAG, re-ranking reduces noise and improves grounding by selecting passages that truly answer the query. Prompting intersects with re-ranking in two ways: the query formulation affects candidate pools, and the generation prompt determines whether the model obeys retrieved evidence. Prompt mining can jointly optimize query prompts, re-ranking prompts, and generation prompts for maximum factuality. PromptMining.com(TM) enables Mining Prompts that produce better retrieval queries and enforce strict evidence usage in the final answer.