embed Content
Calculates embeddings for the given content.
Return
an EmbedContentResponse instance that contains response contents and other metadata
Parameters
the name of the GenAI model to use for embedding
a list of Content to embed
an EmbedContentConfig instance that specifies the optional configurations
Calculates embeddings for the given content.
Return
an EmbedContentResponse instance that contains response contents and other metadata
Parameters
the name of the GenAI model to use for embedding
a Content to embed
an EmbedContentConfig instance that specifies the optional configurations
Calculates embeddings for the given text string.
Return
an EmbedContentResponse instance that contains response contents and other metadata
Parameters
the name of the GenAI model to use for embedding
the text string to embed
an EmbedContentConfig instance that specifies the optional configurations