UPR Reranker
Overview
The UPRReranker
class is a reranker based on paper called "Improving Passage Retrieval with Zero-shot Question Generation". It uses a language model to generate a question based on the passage and reranks the passages by the likelihood of the question.
It can enhance accuracy because it calculates likelihood original passages and related passages (generated) with user's question. Also, it is cost-effective than LLM Reranker because it doesn't generate whole passages.
Usage
To initialize an instance of UPRReranker:
To rank given set of passages:
Last updated