AbstractionMapperToGeminiEmbedContentRequest Method

Converts strings and embedding options into an EmbedContentRequest.

Definition

Namespace: GenerativeAI.Microsoft.Extensions
Assembly: GenerativeAI.Microsoft (in GenerativeAI.Microsoft.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public static EmbedContentRequest ToGeminiEmbedContentRequest(
	IEnumerable<string> values,
	EmbeddingGenerationOptions? options
)

Parameters

values  IEnumerableString
The strings to embed.
options  EmbeddingGenerationOptions
Optional properties for generation settings.

Return Value

EmbedContentRequest
An EmbedContentRequest object populated with the inputs.

See Also