embed Content
Asynchronously embeds content given a GenAI model and a text string.
Return
a com.google.genai.types.EmbedContentResponse instance that contains the embedding.
Parameters
the name of the GenAI model to use for embedding
the text string to send to the embedding model
Asynchronously embeds content given a GenAI model and a list of text strings.
Return
a com.google.genai.types.EmbedContentResponse instance that contains the embedding.
Parameters
the name of the GenAI model to use for embedding
the list of text strings to send to the embedding model
Asynchronously embeds content given a GenAI model and a content object.
Return
a com.google.genai.types.EmbedContentResponse instance that contains the embedding.
Parameters
the name of the GenAI model to use for embedding
a com.google.genai.types.Content to send to the embedding model