Partager via


MemoryBuilder.WithTextEmbeddingGeneration Method

Definition

Overloads

WithTextEmbeddingGeneration(ITextEmbeddingGenerationService)

Add text embedding generation.

WithTextEmbeddingGeneration<TEmbeddingGeneration>(Func<ILoggerFactory,HttpClient,TEmbeddingGeneration>)

Add text embedding generation.

WithTextEmbeddingGeneration(ITextEmbeddingGenerationService)

Add text embedding generation.

public Microsoft.SemanticKernel.Memory.MemoryBuilder WithTextEmbeddingGeneration (Microsoft.SemanticKernel.Embeddings.ITextEmbeddingGenerationService textEmbeddingGeneration);
member this.WithTextEmbeddingGeneration : Microsoft.SemanticKernel.Embeddings.ITextEmbeddingGenerationService -> Microsoft.SemanticKernel.Memory.MemoryBuilder
Public Function WithTextEmbeddingGeneration (textEmbeddingGeneration As ITextEmbeddingGenerationService) As MemoryBuilder

Parameters

textEmbeddingGeneration
ITextEmbeddingGenerationService

The text embedding generation.

Returns

Updated Memory builder including the text embedding generation.

Applies to

WithTextEmbeddingGeneration<TEmbeddingGeneration>(Func<ILoggerFactory,HttpClient,TEmbeddingGeneration>)

Add text embedding generation.

public Microsoft.SemanticKernel.Memory.MemoryBuilder WithTextEmbeddingGeneration<TEmbeddingGeneration> (Func<Microsoft.Extensions.Logging.ILoggerFactory,System.Net.Http.HttpClient?,TEmbeddingGeneration> factory) where TEmbeddingGeneration : Microsoft.SemanticKernel.Embeddings.ITextEmbeddingGenerationService;
member this.WithTextEmbeddingGeneration : Func<Microsoft.Extensions.Logging.ILoggerFactory, System.Net.Http.HttpClient, 'EmbeddingGeneration (requires 'EmbeddingGeneration :> Microsoft.SemanticKernel.Embeddings.ITextEmbeddingGenerationService)> -> Microsoft.SemanticKernel.Memory.MemoryBuilder (requires 'EmbeddingGeneration :> Microsoft.SemanticKernel.Embeddings.ITextEmbeddingGenerationService)
Public Function WithTextEmbeddingGeneration(Of TEmbeddingGeneration As ITextEmbeddingGenerationService) (factory As Func(Of ILoggerFactory, HttpClient, TEmbeddingGeneration)) As MemoryBuilder

Type Parameters

TEmbeddingGeneration

Parameters

factory
Func<ILoggerFactory,HttpClient,TEmbeddingGeneration>

The text embedding generation factory.

Returns

Updated Memory builder including the text embedding generation.

Applies to