GenAICreateEmbeddingModel 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.
Namespace: GenerativeAIAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public EmbeddingModel CreateEmbeddingModel(
string modelName
)
- modelName String
- The name of the embedding model to initialize, used to identify the specific AI model for embeddings.
EmbeddingModelAn instance of
EmbeddingModel initialized with the specified model name and platform configurations.