Skip to main content

//clika-runtime/io.clika.modelverse/TextRankingPipeline

TextRankingPipeline

[common]
class TextRankingPipeline : Pipeline

Reranking over a RerankerModel: a query and documents answer one relevance score per document, in the documents' order (text-ranking and its alias reranking); a higher score is a better match, and the caller sorts.

Properties​

NameSummary
model[common]
open override val model: RerankerModel
The loaded model the pipeline runs.
task[common]
val task: String
The task the pipeline serves, in transformers' spelling.

Functions​

NameSummary
close[common]
open fun close(): <Error class: unknown class>
invoke[common]
operator fun invoke(query: String, documents: List<String>, instruction: String? = null): FloatArray