class_docstr: Base class for reranker models
class_docstr_tok: ["Base","class","for","reranker","models"]
code: def on_request(self, request: RequestDelegate, db_row: DatabaseRow):
      db_row.topk = (
          request.topk if request.topk else request.default_topk
      )
      request.topk = request.topn
  
file_path: nboost/nboost/plugins/rerank/base.py
imports: from typing import List, Tuple
  import time
  from nboost.plugins import Plugin
  from nboost.delegates import RequestDelegate, ResponseDelegate
  from nboost.helpers import calculate_mrr
  from nboost.database import DatabaseRow
  from nboost import defaults
  import numpy
label_desc: Use image node_id 1 for calling the RerankModelPlugin obj's underlying member method code with example usage: obj.on_request(request, db_row) without return types