| EmbeddingModelV1 | R Documentation |
Abstract interface for embedding models.
specification_versionThe version of this specification.
providerThe provider identifier.
model_idThe model identifier.
new()Initialize the embedding model.
EmbeddingModelV1$new(provider, model_id)
providerProvider name.
model_idModel ID.
do_embed()Generate embeddings for a value. Abstract method.
EmbeddingModelV1$do_embed(value)
valueA character string or vector to embed.
A provider-specific embedding result.
clone()The objects of this class are cloneable with this method.
EmbeddingModelV1$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.