Share via


IEmbeddingGenerationService<TValue,TEmbedding> Interface

Definition

Represents a generator of embeddings.

public interface IEmbeddingGenerationService<TValue,TEmbedding> : Microsoft.SemanticKernel.Services.IAIService where TEmbedding : struct
type IEmbeddingGenerationService<'Value, 'Embedding (requires 'Embedding : struct)> = interface
    interface IAIService
Public Interface IEmbeddingGenerationService(Of TValue, TEmbedding)
Implements IAIService

Type Parameters

TValue

The type from which embeddings will be generated.

TEmbedding

The numeric type of the embedding data.

Derived
Implements

Properties

Attributes

Gets the AI service attributes.

(Inherited from IAIService)

Methods

GenerateEmbeddingsAsync(IList<TValue>, 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