A class representing a toolkit for reranking documents
using Jina Reranker.This class provides methods for reranking documents (text or images)
based on their relevance to a given query using the Jina Reranker model.
Initializes a new instance of the JinaRerankerToolkit class.Parameters:
timeout (Optional[float]): The timeout value for API requests in seconds. If None, no timeout is applied. (default: :obj:None)
model_name (str): The reranker model name. (default: :obj:"jinaai/jina-reranker-m0")
device (Optional[str]): Device to load the model on. If None, will use CUDA if available, otherwise CPU. Only effective when use_api=False. (default: :obj:None)
use_api (bool): A flag to switch between local model and API. (default: :obj:True)