//clika-runtime/io.clika.modelverse/RerankerModel/rerank
rerank
[common]
fun rerank(query: String, documents: List<String>, instruction: String? = null, listener: RerankListener): RerankHandle
Score documents against query. Returns at once; the worker runs the request and calls listener on its thread: RerankListener.onScores with one score per document, in the documents' order, then RerankListener.onDone with the RerankReport. instruction states the task in words when the checkpoint's default does not fit (null keeps it). A pair longer than the model's window is cut to it.