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() {
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+ ----
You can’t perform that action at this time.
0 commit comments