Skip to content

Latest commit

 

History

History

RAG_Reranking

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Open In Colab

Re-ranking is the simplest. Idea is pretty simple.

  1. You assume that Embedding + Search algo are not 100% precise so you use Recall to your advantage and get similar high N (say 25) number of related chunks from corpus.

  2. Second step is to use a powerful model to increase the Precision. You re-rank above N queries again so that you can change the relative ordering and now select Top K queries (say 3) to pass as a context where K < N thus increasing the Precision.

Re-rank Search Results uses Reranker.

img

Open In Colab

Read Full Blog