BackendReranking class abstract

Optional native cross-encoder capability. Existing backends need not implement it.

Constructors

BackendReranking()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createRerankingContext(int modelHandle, ModelParams params) → Future<int>
Creates a fresh explicit RANK context for the owning reranker loader.
getRerankingCapabilities(int contextHandle) → Future<LlamaRerankingCapabilities>
Probes the actual loaded context; interface presence is not evidence of support.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rerank(int contextHandle, String query, List<String> documents) → Future<BackendRerankingOutput>
Scores complete query/document pairs in input order, preserving all classes.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited