MistralAIKernelBuilderExtensions.AddMistralTextEmbeddingGeneration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an Mistral text embedding generation service with the specified configuration.
public static Microsoft.SemanticKernel.IKernelBuilder AddMistralTextEmbeddingGeneration (this Microsoft.SemanticKernel.IKernelBuilder builder, string modelId, string apiKey, Uri? endpoint = default, string? serviceId = default, System.Net.Http.HttpClient? httpClient = default);
static member AddMistralTextEmbeddingGeneration : Microsoft.SemanticKernel.IKernelBuilder * string * string * Uri * string * System.Net.Http.HttpClient -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddMistralTextEmbeddingGeneration (builder As IKernelBuilder, modelId As String, apiKey As String, Optional endpoint As Uri = Nothing, Optional serviceId As String = Nothing, Optional httpClient As HttpClient = Nothing) As IKernelBuilder
Parameters
- builder
- IKernelBuilder
The IKernelBuilder instance to augment.
- modelId
- String
The name of theMistral modelId.
- apiKey
- String
The API key required for accessing the Mistral service.
- endpoint
- Uri
Optional uri endpoint including the port where MistralAI server is hosted. Default is https://api.mistral.ai.
- serviceId
- String
A local identifier for the given AI service.
- httpClient
- HttpClient
The HttpClient to use with this service.
Returns
The same instance as builder
.