8 instantiations of KeywordEnricher
Microsoft.Extensions.DataIngestion.Tests (8)
Processors\KeywordEnricherTests.cs (8)
20Assert.Throws<ArgumentNullException>("chatClient", () => new KeywordEnricher(null!, predefinedKeywords: null, confidenceThreshold: 0.5)); 28Assert.Throws<ArgumentOutOfRangeException>("confidenceThreshold", () => new KeywordEnricher(new TestChatClient(), predefinedKeywords: null, confidenceThreshold: threshold)); 36Assert.Throws<ArgumentOutOfRangeException>("maxKeywords", () => new KeywordEnricher(new TestChatClient(), predefinedKeywords: null, maxKeywords: keywordCount)); 42Assert.Throws<ArgumentException>("predefinedKeywords", () => new KeywordEnricher(new TestChatClient(), predefinedKeywords: ["same", "same"], confidenceThreshold: 0.5)); 50Assert.Throws<ArgumentException>("predefinedKeywords", () => new KeywordEnricher(new TestChatClient(), predefinedKeywords: [$"n{illegal}t"])); 57KeywordEnricher sut = new(chatClient, predefinedKeywords: null, confidenceThreshold: 0.5); 92KeywordEnricher sut = new(chatClient, predefinedKeywords: predefined, confidenceThreshold: 0.5); 115KeywordEnricher 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)
57KeywordEnricher sut = new(chatClient, predefinedKeywords: null, confidenceThreshold: 0.5); 92KeywordEnricher sut = new(chatClient, predefinedKeywords: predefined, confidenceThreshold: 0.5); 97Assert.Equal(["AI", "MEAI"], (string[])got[0].Metadata[KeywordEnricher.MetadataKey]); 98Assert.Equal(["Animals", "Rabbits"], (string[])got[1].Metadata[KeywordEnricher.MetadataKey]); 115KeywordEnricher sut = new(chatClient, ["some"]);