Freigeben über


BertOnnxTextEmbeddingGenerationService Class

Definition

Provides a text embedding generation service using a BERT ONNX model.

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

Properties

Attributes

Gets the AI service attributes.

Methods

Create(Stream, Stream, BertOnnxOptions)

Creates a new instance of the BertOnnxTextEmbeddingGenerationService class.

Create(String, String, BertOnnxOptions)

Creates a new instance of the BertOnnxTextEmbeddingGenerationService class.

CreateAsync(Stream, Stream, BertOnnxOptions, CancellationToken)

Creates a new instance of the BertOnnxTextEmbeddingGenerationService class.

CreateAsync(String, String, BertOnnxOptions, CancellationToken)

Creates a new instance of the BertOnnxTextEmbeddingGenerationService class.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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