Share via


EmbeddingGeneratorBuilder<TInput,TEmbedding> Class

Definition

generic <typename TInput, typename TEmbedding>
 where TEmbedding : Embeddingpublic ref class EmbeddingGeneratorBuilder sealed
public sealed class EmbeddingGeneratorBuilder<TInput,TEmbedding> where TEmbedding : Embedding
type EmbeddingGeneratorBuilder<'Input, 'Embedding (requires 'Embedding :> Embedding)> = class
Public NotInheritable Class EmbeddingGeneratorBuilder(Of TInput, TEmbedding)

Type Parameters

TInput
TEmbedding
Inheritance
EmbeddingGeneratorBuilder<TInput,TEmbedding>

Constructors

EmbeddingGeneratorBuilder<TInput,TEmbedding>(IServiceProvider)

Properties

Services

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
Use(Func<IEmbeddingGenerator<TInput,TEmbedding>,IEmbeddingGenerator<TInput,TEmbedding>>)
Use(Func<IServiceProvider,IEmbeddingGenerator<TInput,TEmbedding>,IEmbeddingGenerator<TInput,TEmbedding>>)
Use(IEmbeddingGenerator<TInput,TEmbedding>)

Extension Methods

UseDistributedCache<TInput,TEmbedding>(EmbeddingGeneratorBuilder<TInput, TEmbedding>, IDistributedCache, Action<DistributedCachingEmbeddingGenerator<TInput, TEmbedding>>)
UseLogging<TInput,TEmbedding>(EmbeddingGeneratorBuilder<TInput,TEmbedding>, ILogger, Action<LoggingEmbeddingGenerator<TInput,TEmbedding>>)
UseOpenTelemetry<TInput,TEmbedding>(EmbeddingGeneratorBuilder<TInput, TEmbedding>, ILoggerFactory, String, Action<OpenTelemetryEmbeddingGenerator<TInput, TEmbedding>>)

Applies to