Skip to main content

EmbeddingModelRef

Type Alias EmbeddingModelRef 

Source
pub type EmbeddingModelRef = ModelRef<dyn DynEmbeddingModel>;
Expand description

Shared reference to an embedding model (or an unresolved model id).

Aliased Type§

pub struct EmbeddingModelRef(/* private fields */);

Trait Implementations§

Source§

impl<T: EmbeddingModel> From<Arc<T>> for EmbeddingModelRef

Source§

fn from(model: Arc<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: EmbeddingModel> From<T> for EmbeddingModelRef

Source§

fn from(model: T) -> Self

Converts to this type from the input type.