File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
spring-ai-docs/src/main/antora/modules/ROOT/pages/api Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,13 @@ void testEvaluation() {
73
73
74
74
String userText = "What is the purpose of Carina?";
75
75
76
- String responseContent = ChatClient.builder(chatModel)
76
+ ChatResponse response = ChatClient.builder(chatModel)
77
77
.build().prompt()
78
78
.advisors(new QuestionAnswerAdvisor(vectorStore, SearchRequest.defaults()))
79
79
.user(userText)
80
80
.call()
81
- .content();
81
+ .chatResponse();
82
+ String responseContent = response.getResult().getOutput().getContent();
82
83
83
84
var relevancyEvaluator = new RelevancyEvaluator(ChatClient.builder(chatModel));
84
85
@@ -147,4 +148,4 @@ void testFactChecking() {
147
148
assertFalse(evaluationResponse.isPass(), "The claim should not be supported by the context");
148
149
149
150
}
150
- ----
151
+ ----
You can’t perform that action at this time.
0 commit comments