Skip to content

Commit cd15b65

Browse files
jee14tzolov
authored andcommitted
modify a document
1 parent cec7631 commit cd15b65

File tree

1 file changed

+4
-3
lines changed
  • spring-ai-docs/src/main/antora/modules/ROOT/pages/api

1 file changed

+4
-3
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/testing.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,13 @@ void testEvaluation() {
7373
7474
String userText = "What is the purpose of Carina?";
7575
76-
String responseContent = ChatClient.builder(chatModel)
76+
ChatResponse response = ChatClient.builder(chatModel)
7777
.build().prompt()
7878
.advisors(new QuestionAnswerAdvisor(vectorStore, SearchRequest.defaults()))
7979
.user(userText)
8080
.call()
81-
.content();
81+
.chatResponse();
82+
String responseContent = response.getResult().getOutput().getContent();
8283
8384
var relevancyEvaluator = new RelevancyEvaluator(ChatClient.builder(chatModel));
8485
@@ -147,4 +148,4 @@ void testFactChecking() {
147148
assertFalse(evaluationResponse.isPass(), "The claim should not be supported by the context");
148149
149150
}
150-
----
151+
----

0 commit comments

Comments
 (0)