pub trait RerankingClient {
type RerankModel: RerankModel;
// Required method
fn rerank_model(&self, model: impl Into<String>) -> Self::RerankModel;
}Expand description
A provider client with reranking capabilities.
Required Associated Types§
Sourcetype RerankModel: RerankModel
type RerankModel: RerankModel
The type of RerankModel used by the Client.
Required Methods§
Sourcefn rerank_model(&self, model: impl Into<String>) -> Self::RerankModel
fn rerank_model(&self, model: impl Into<String>) -> Self::RerankModel
Create a reranking model with the given model identifier.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".