Share via


VertexAITextEmbeddingGenerationService Class

Definition

Represents a service for generating text embeddings using the Vertex AI Gemini API.

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

Constructors

VertexAITextEmbeddingGenerationService(String, Func<ValueTask<String>>, String, String, VertexAIVersion, HttpClient, ILoggerFactory)

Initializes a new instance of the VertexAITextEmbeddingGenerationService class.

VertexAITextEmbeddingGenerationService(String, String, String, String, VertexAIVersion, HttpClient, ILoggerFactory)

Initializes a new instance of the VertexAITextEmbeddingGenerationService 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