KeywordEnricher Constructor

Definition

Initializes a new instance of the KeywordEnricher class.

public KeywordEnricher(Microsoft.Extensions.DataIngestion.EnricherOptions options, ReadOnlySpan<string> predefinedKeywords, int? maxKeywords = default, double? confidenceThreshold = default);
new Microsoft.Extensions.DataIngestion.KeywordEnricher : Microsoft.Extensions.DataIngestion.EnricherOptions * ReadOnlySpan<string> * Nullable<int> * Nullable<double> -> Microsoft.Extensions.DataIngestion.KeywordEnricher
Public Sub New (options As EnricherOptions, predefinedKeywords As ReadOnlySpan(Of String), Optional maxKeywords As Nullable(Of Integer) = Nothing, Optional confidenceThreshold As Nullable(Of Double) = Nothing)

Parameters

options
EnricherOptions

The options for generating keywords.

predefinedKeywords
ReadOnlySpan<String>

The set of predefined keywords for extraction.

maxKeywords
Nullable<Int32>

The maximum number of keywords to extract. When not provided, it defaults to 5.

confidenceThreshold
Nullable<Double>

The confidence threshold for keyword inclusion. When not provided, it defaults to 0.7.

Remarks

If no predefined keywords are provided, the model will extract keywords based on the content alone. Such results may vary more significantly between different AI models.

Applies to