create_reranker
Function
Creates a reranker and returns an instance by calling the static method create of LocalReranker or TEIReranker.
Prototype
@classmethod def create_reranker(cls, **kwargs):
Parameters
Parameter |
Data Type |
Required/Optional |
Description |
|---|---|---|---|
similarity_type |
String |
Required |
Reranker type used in kwargs. Possible values are:
|
**kwargs |
Any |
Optional |
Except similarity_type, other parameters are used to create a reranker.
|
Parent topic: RerankerFactory