IGenerativeAICreateEmbeddingModel Method

Creates and initializes an embedding model for use in embedding-related AI tasks. The created model is configured with the provided model name and integrates with the underlying platform adapter.

Definition

Namespace: GenerativeAI
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
EmbeddingModel CreateEmbeddingModel(
	string modelName
)

Parameters

modelName  String
The name of the embedding model to initialize, used to identify the specific AI model for embeddings.

Return Value

EmbeddingModel
An instance of EmbeddingModel initialized with the specified model name and platform configurations.

See Also