Share via


EmbeddingGeneratorExtensions Class

Definition

Provides a collection of static methods for extending IEmbeddingGenerator<TInput,TEmbedding> instances.

public ref class EmbeddingGeneratorExtensions abstract sealed
public static class EmbeddingGeneratorExtensions
type EmbeddingGeneratorExtensions = class
Public Module EmbeddingGeneratorExtensions
Inheritance
EmbeddingGeneratorExtensions

Methods

GenerateAndZipAsync<TInput,TEmbedding>(IEmbeddingGenerator<TInput,TEmbedding>, IEnumerable<TInput>, EmbeddingGenerationOptions, CancellationToken)

Generates embeddings for each of the supplied values and produces a list that pairs each input value with its resulting embedding.

GenerateEmbeddingAsync<TInput,TEmbedding>(IEmbeddingGenerator<TInput,TEmbedding>, TInput, EmbeddingGenerationOptions, CancellationToken)

Generates an embedding from the specified value.

GenerateEmbeddingVectorAsync<TInput,TEmbedding>(IEmbeddingGenerator<TInput, Embedding<TEmbedding>>, TInput, EmbeddingGenerationOptions, CancellationToken)

Generates an embedding vector from the specified value.

Applies to