BaseModelBatchEmbedContentAsync Method

Embeds a batch of content using the specified Generative AI model.

Definition

Namespace: GenerativeAI
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
protected virtual Task<BatchEmbedContentsResponse> BatchEmbedContentAsync(
	string model,
	BatchEmbedContentRequest request
)

Parameters

model  String
The name of the Generative AI Model to use for embedding the content. Format: "models/{model}".
request  BatchEmbedContentRequest
The batch BatchEmbedContentRequest containing the content and optional settings for embedding.

Return Value

TaskBatchEmbedContentsResponse
The BatchEmbedContentsResponse containing the content embeddings.

See Also