@@ -10,7 +10,7 @@ public sealed class MyTests
10
10
// <SnippetPrivateMembers>
11
11
private static ChatConfiguration ? s_chatConfiguration ;
12
12
private static IList < ChatMessage > s_messages = [
13
- new ChatMessage (
13
+ new ChatMessage (
14
14
ChatRole . System ,
15
15
"""
16
16
You're an AI assistant that can answer questions related to astronomy.
@@ -28,7 +28,7 @@ Keep your responses concise and try to stay under 100 words.
28
28
public static async Task InitializeAsync ( TestContext _ )
29
29
{
30
30
/// Set up the <see cref="ChatConfiguration"/>,
31
- // which includes the <see cref="IChatClient"/> that the
31
+ /// which includes the <see cref="IChatClient"/> that the
32
32
/// evaluator uses to communicate with the model.
33
33
s_chatConfiguration = GetOllamaChatConfiguration ( ) ;
34
34
@@ -39,7 +39,7 @@ public static async Task InitializeAsync(TestContext _)
39
39
ResponseFormat = ChatResponseFormat . Text
40
40
} ;
41
41
42
- /// Fetch the response to be evaluated
42
+ // Fetch the response to be evaluated
43
43
// and store it in a static variable.
44
44
ChatResponse response = await s_chatConfiguration . ChatClient . GetResponseAsync ( s_messages , chatOptions ) ;
45
45
s_response = response . Message ;
@@ -49,7 +49,7 @@ public static async Task InitializeAsync(TestContext _)
49
49
// <SnippetGetChatConfig>
50
50
private static ChatConfiguration GetOllamaChatConfiguration ( )
51
51
{
52
- /// Get a chat client for the Ollama endpoint.
52
+ // Get a chat client for the Ollama endpoint.
53
53
IChatClient client =
54
54
new OllamaChatClient (
55
55
new Uri ( "http://localhost:11434" ) ,
@@ -72,7 +72,7 @@ public async Task TestCoherence()
72
72
/// Retrieve the score for coherence from the <see cref="EvaluationResult"/>.
73
73
NumericMetric coherence = result . Get < NumericMetric > ( CoherenceEvaluator . CoherenceMetricName ) ;
74
74
75
- /// Validate the default interpretation
75
+ // Validate the default interpretation
76
76
// for the returned coherence metric.
77
77
Assert . IsFalse ( coherence . Interpretation ! . Failed ) ;
78
78
Assert . IsTrue ( coherence . Interpretation . Rating is EvaluationRating . Good or EvaluationRating . Exceptional ) ;
0 commit comments