2 instantiations of RelevanceTruthAndCompletenessRating
Microsoft.Extensions.AI.Evaluation.Quality (1)
RelevanceTruthAndCompletenessRating.cs (1)
15new RelevanceTruthAndCompletenessRating(
Microsoft.Extensions.AI.Evaluation.Tests (1)
RelevanceTruthAndCompletenessRatingTests.cs (1)
131new RelevanceTruthAndCompletenessRating(
35 references to RelevanceTruthAndCompletenessRating
Microsoft.Extensions.AI.Evaluation.Quality (9)
JsonSerialization\SerializerContext.cs (1)
12[JsonSerializable(typeof(RelevanceTruthAndCompletenessRating))]
RelevanceTruthAndCompletenessEvaluator.cs (6)
276RelevanceTruthAndCompletenessRating rating; 281rating = RelevanceTruthAndCompletenessRating.Inconclusive; 289rating = RelevanceTruthAndCompletenessRating.FromJson(evaluationResponseText); 303rating = RelevanceTruthAndCompletenessRating.Inconclusive; 313rating = RelevanceTruthAndCompletenessRating.FromJson(repairedJson); 318rating = RelevanceTruthAndCompletenessRating.Inconclusive;
RelevanceTruthAndCompletenessRating.cs (2)
14public static RelevanceTruthAndCompletenessRating Inconclusive { get; } = 75public static RelevanceTruthAndCompletenessRating FromJson(string jsonResponse)
Microsoft.Extensions.AI.Evaluation.Tests (26)
RelevanceTruthAndCompletenessRatingTests.cs (26)
32RelevanceTruthAndCompletenessRating rating = RelevanceTruthAndCompletenessRating.FromJson(json); 74RelevanceTruthAndCompletenessRating rating = RelevanceTruthAndCompletenessRating.FromJson(json); 110RelevanceTruthAndCompletenessRating rating = RelevanceTruthAndCompletenessRating.FromJson(json); 130RelevanceTruthAndCompletenessRating rating = 143RelevanceTruthAndCompletenessRating deserialized = RelevanceTruthAndCompletenessRating.FromJson(json); 160RelevanceTruthAndCompletenessRating rating = RelevanceTruthAndCompletenessRating.Inconclusive; 163RelevanceTruthAndCompletenessRating deserialized = RelevanceTruthAndCompletenessRating.FromJson(json); 195RelevanceTruthAndCompletenessRating rating = RelevanceTruthAndCompletenessRating.FromJson(json); 218RelevanceTruthAndCompletenessRating rating = RelevanceTruthAndCompletenessRating.FromJson(json); 241RelevanceTruthAndCompletenessRating rating = RelevanceTruthAndCompletenessRating.FromJson(json); 265RelevanceTruthAndCompletenessRating rating = RelevanceTruthAndCompletenessRating.FromJson(json); 304RelevanceTruthAndCompletenessRating rating = RelevanceTruthAndCompletenessRating.FromJson(json); 342Assert.Throws<JsonException>(() => RelevanceTruthAndCompletenessRating.FromJson(json)); 358Assert.Throws<JsonException>(() => RelevanceTruthAndCompletenessRating.FromJson(json)); 380Assert.Throws<JsonException>(() => RelevanceTruthAndCompletenessRating.FromJson(json));