diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/testing.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/testing.adoc index 9fb9be50b..b34530a48 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/testing.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/testing.adoc @@ -73,12 +73,13 @@ void testEvaluation() { String userText = "What is the purpose of Carina?"; - String responseContent = ChatClient.builder(chatModel) + ChatResponse response = ChatClient.builder(chatModel) .build().prompt() .advisors(new QuestionAnswerAdvisor(vectorStore, SearchRequest.defaults())) .user(userText) .call() - .content(); + .chatResponse(); + String responseContent = response.getResult().getOutput().getContent(); var relevancyEvaluator = new RelevancyEvaluator(ChatClient.builder(chatModel)); @@ -147,4 +148,4 @@ void testFactChecking() { assertFalse(evaluationResponse.isPass(), "The claim should not be supported by the context"); } ----- \ No newline at end of file +----