pub trait EmbeddingsClientDyn {
// Required methods
fn embedding_model<'a>(
&self,
model: &str,
) -> Box<dyn EmbeddingModelDyn + 'a>;
fn embedding_model_with_ndims<'a>(
&self,
model: &str,
ndims: usize,
) -> Box<dyn EmbeddingModelDyn + 'a>;
}πDeprecated since 0.25.0:
DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use EmbeddingsClient instead.Required MethodsΒ§
Sourcefn embedding_model<'a>(&self, model: &str) -> Box<dyn EmbeddingModelDyn + 'a>
πDeprecated since 0.25.0: DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use EmbeddingsClient instead.
fn embedding_model<'a>(&self, model: &str) -> Box<dyn EmbeddingModelDyn + 'a>
DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use EmbeddingsClient instead.Create an embedding model with the given name.
Note: default embedding dimension of 0 will be used if model is not known.
If this is the case, itβs better to use function embedding_model_with_ndims
Sourcefn embedding_model_with_ndims<'a>(
&self,
model: &str,
ndims: usize,
) -> Box<dyn EmbeddingModelDyn + 'a>
πDeprecated since 0.25.0: DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use EmbeddingsClient instead.
fn embedding_model_with_ndims<'a>( &self, model: &str, ndims: usize, ) -> Box<dyn EmbeddingModelDyn + 'a>
DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use EmbeddingsClient instead.Create an embedding model with the given name and the number of dimensions in the embedding generated by the model.