8 instantiations of KeywordEnricher
Microsoft.Extensions.DataIngestion.Tests (8)
Processors\KeywordEnricherTests.cs (8)
20
Assert.Throws<ArgumentNullException>("chatClient", () => new
KeywordEnricher
(null!, predefinedKeywords: null, confidenceThreshold: 0.5));
28
Assert.Throws<ArgumentOutOfRangeException>("confidenceThreshold", () => new
KeywordEnricher
(new TestChatClient(), predefinedKeywords: null, confidenceThreshold: threshold));
36
Assert.Throws<ArgumentOutOfRangeException>("maxKeywords", () => new
KeywordEnricher
(new TestChatClient(), predefinedKeywords: null, maxKeywords: keywordCount));
42
Assert.Throws<ArgumentException>("predefinedKeywords", () => new
KeywordEnricher
(new TestChatClient(), predefinedKeywords: ["same", "same"], confidenceThreshold: 0.5));
50
Assert.Throws<ArgumentException>("predefinedKeywords", () => new
KeywordEnricher
(new TestChatClient(), predefinedKeywords: [$"n{illegal}t"]));
57
KeywordEnricher sut =
new
(chatClient, predefinedKeywords: null, confidenceThreshold: 0.5);
92
KeywordEnricher sut =
new
(chatClient, predefinedKeywords: predefined, confidenceThreshold: 0.5);
115
KeywordEnricher sut =
new
(chatClient, ["some"]);
6 references to KeywordEnricher
Microsoft.Extensions.DataIngestion (1)
Processors\KeywordEnricher.cs (1)
36
/// Initializes a new instance of the <see cref="
KeywordEnricher
"/> class.
Microsoft.Extensions.DataIngestion.Tests (5)
Processors\KeywordEnricherTests.cs (5)
57
KeywordEnricher
sut = new(chatClient, predefinedKeywords: null, confidenceThreshold: 0.5);
92
KeywordEnricher
sut = new(chatClient, predefinedKeywords: predefined, confidenceThreshold: 0.5);
97
Assert.Equal(["AI", "MEAI"], (string[])got[0].Metadata[
KeywordEnricher
.MetadataKey]);
98
Assert.Equal(["Animals", "Rabbits"], (string[])got[1].Metadata[
KeywordEnricher
.MetadataKey]);
115
KeywordEnricher
sut = new(chatClient, ["some"]);