From cd15b65c7aac7f2cced2c8d10aa2d2960b5a3838 Mon Sep 17 00:00:00 2001 From: jiseunghyeon <3aroa2@gmail.com> Date: Fri, 1 Nov 2024 21:01:13 +0900 Subject: [PATCH] modify a document --- .../src/main/antora/modules/ROOT/pages/api/testing.adoc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 +----