Share via


AzureOpenAITextEmbeddingGenerationService Class

Definition

Azure OpenAI text embedding service.

public sealed class AzureOpenAITextEmbeddingGenerationService : Microsoft.SemanticKernel.Embeddings.IEmbeddingGenerationService<string,float>, Microsoft.SemanticKernel.Embeddings.ITextEmbeddingGenerationService
type AzureOpenAITextEmbeddingGenerationService = class
    interface ITextEmbeddingGenerationService
    interface IEmbeddingGenerationService<string, single>
    interface IAIService
Public NotInheritable Class AzureOpenAITextEmbeddingGenerationService
Implements IEmbeddingGenerationService(Of String, Single), ITextEmbeddingGenerationService
Inheritance
AzureOpenAITextEmbeddingGenerationService
Implements

Constructors

AzureOpenAITextEmbeddingGenerationService(String, AzureOpenAIClient, String, ILoggerFactory, Nullable<Int32>)

Initializes a new instance of the AzureOpenAITextEmbeddingGenerationService class.

AzureOpenAITextEmbeddingGenerationService(String, String, String, String, HttpClient, ILoggerFactory, Nullable<Int32>)

Initializes a new instance of the AzureOpenAITextEmbeddingGenerationService class.

AzureOpenAITextEmbeddingGenerationService(String, String, TokenCredential, String, HttpClient, ILoggerFactory, Nullable<Int32>)

Initializes a new instance of the AzureOpenAITextEmbeddingGenerationService class.

Properties

Attributes

Gets the AI service attributes.

Methods

GenerateEmbeddingsAsync(IList<String>, Kernel, CancellationToken)

Generates an embedding from the given data.

Extension Methods

GenerateEmbeddingAsync<TValue,TEmbedding>(IEmbeddingGenerationService<TValue,TEmbedding>, TValue, Kernel, CancellationToken)

Generates an embedding from the given value.

GetApiVersion(IAIService)

Gets the API version from service's Attributes

GetEndpoint(IAIService)

Gets the endpoint from service's Attributes.

GetModelId(IAIService)

Gets the model identifier from service's Attributes.

Applies to