LoggingEmbeddingGenerator<TInput,TEmbedding> Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A delegating embedding generator that logs embedding generation operations to an ILogger.
generic <typename TInput, typename TEmbedding>
where TEmbedding : Embeddingpublic ref class LoggingEmbeddingGenerator : Microsoft::Extensions::AI::DelegatingEmbeddingGenerator<TInput, TEmbedding>
public class LoggingEmbeddingGenerator<TInput,TEmbedding> : Microsoft.Extensions.AI.DelegatingEmbeddingGenerator<TInput,TEmbedding> where TEmbedding : Embedding
type LoggingEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Embedding)> = class
inherit DelegatingEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Embedding)>
Public Class LoggingEmbeddingGenerator(Of TInput, TEmbedding)
Inherits DelegatingEmbeddingGenerator(Of TInput, TEmbedding)
- TInput
Specifies the type of the input passed to the generator.
- TEmbedding
Specifies the type of the embedding instance produced by the generator.
- Inheritance
Logging |
Initializes a new instance of the LoggingEmbeddingGenerator<TInput,TEmbedding> class. |
Inner |
Gets the inner IEmbeddingGenerator<TInput,TEmbedding>. (Inherited from DelegatingEmbeddingGenerator<TInput,TEmbedding>) |
Json |
Gets or sets JSON serialization options to use when serializing logging data. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from DelegatingEmbeddingGenerator<TInput,TEmbedding>) |
Dispose(Boolean) |
Provides a mechanism for releasing unmanaged resources. (Inherited from DelegatingEmbeddingGenerator<TInput,TEmbedding>) |
Generate |
Generates embeddings for each of the supplied |
Get |
Asks the IEmbeddingGenerator<TInput,TEmbedding> for an object of the specified type |
As |
Creates a new EmbeddingGeneratorBuilder<TInput,TEmbedding> using
|
Generate |
Generates embeddings for each of the supplied |
Generate |
Generates an embedding from the specified |
Get |
Asks the IEmbeddingGenerator<TInput,TEmbedding> for an object of type |
Produkt | Wersje |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: