13 references to ScoreAggregation
Microsoft.Extensions.AI (7)
ChatRouting\SemanticRoutingChatClient.cs (7)
52private readonly ScoreAggregation _scoreAggregation; 93ScoreAggregation scoreAggregation = ScoreAggregation.Mean, 110if (scoreAggregation is not ScoreAggregation.Mean and not ScoreAggregation.Sum) 115float scoreLimit = scoreAggregation == ScoreAggregation.Sum ? topK : 1; 260float score = _scoreAggregation == ScoreAggregation.Mean
Microsoft.Extensions.AI.Tests (6)
ChatRouting\SemanticRoutingChatClientTests.cs (6)
62scoreAggregation: (SemanticRoutingChatClient.ScoreAggregation)(-1))); 70scoreAggregation: SemanticRoutingChatClient.ScoreAggregation.Sum)); 127[InlineData(SemanticRoutingChatClient.ScoreAggregation.Mean, "code")] 128[InlineData(SemanticRoutingChatClient.ScoreAggregation.Sum, "writing")] 130SemanticRoutingChatClient.ScoreAggregation scoreAggregation, 165scoreThreshold: scoreAggregation == SemanticRoutingChatClient.ScoreAggregation.Sum ? 1.5f : 0.3f,