@@ -56,8 +56,8 @@ public class BasicEvaluationTest {
5656 protected void evaluateQuestionAndAnswer (String question , String answer , boolean factBased ) {
5757 assertThat (question ).isNotNull ();
5858 assertThat (answer ).isNotNull ();
59- logger .info ("Question: " + question );
60- logger .info ("Answer:" + answer );
59+ logger .info ("Question: {}" , question );
60+ logger .info ("Answer:{}" , answer );
6161 PromptTemplate userPromptTemplate = new PromptTemplate (this .userEvaluatorResource ,
6262 Map .of ("question" , question , "answer" , answer ));
6363 SystemMessage systemMessage ;
@@ -70,7 +70,7 @@ protected void evaluateQuestionAndAnswer(String question, String answer, boolean
7070 Message userMessage = userPromptTemplate .createMessage ();
7171 Prompt prompt = new Prompt (List .of (userMessage , systemMessage ));
7272 String yesOrNo = this .openAiChatModel .call (prompt ).getResult ().getOutput ().getContent ();
73- logger .info ("Is Answer related to question: " + yesOrNo );
73+ logger .info ("Is Answer related to question: {}" , yesOrNo );
7474 if (yesOrNo .equalsIgnoreCase ("no" )) {
7575 SystemMessage notRelatedSystemMessage = new SystemMessage (this .qaEvaluatorNotRelatedResource );
7676 prompt = new Prompt (List .of (userMessage , notRelatedSystemMessage ));
0 commit comments