Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

KeywordEnricher Class

Definition

Namespace:
Microsoft.Extensions.DataIngestion
Assembly:
Microsoft.Extensions.DataIngestion.dll
Package:
Microsoft.Extensions.DataIngestion v10.7.0-preview.1.26309.5
Source:
KeywordEnricher.cs

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.

Enriches chunks with keyword extraction using an AI chat model.

public ref class KeywordEnricher sealed : Microsoft::Extensions::DataIngestion::IngestionChunkProcessor<System::String ^>
public sealed class KeywordEnricher : Microsoft.Extensions.DataIngestion.IngestionChunkProcessor<string>
type KeywordEnricher = class
 inherit IngestionChunkProcessor<string>
Public NotInheritable Class KeywordEnricher
Inherits IngestionChunkProcessor(Of String)
Inheritance

Remarks

It adds "keywords" metadata to each chunk. It's an array of strings representing the extracted keywords.

Constructors

Name Description
KeywordEnricher(EnricherOptions, ReadOnlySpan<String>, Nullable<Int32>, Nullable<Double>)

Initializes a new instance of the KeywordEnricher class.

Properties

Name Description
MetadataKey

Gets the metadata key used to store the keywords.

Methods

Name Description
ProcessAsync(IAsyncEnumerable<IngestionChunk<String>>, CancellationToken)

Processes chunks asynchronously.

ProcessAsync(IAsyncEnumerable<IngestionChunk<T>>, CancellationToken)

Processes chunks asynchronously.

(Inherited from IngestionChunkProcessor<T>)

Applies to


Feedback

Was this page helpful?