From f6ae234ec93613ca5e85088f4aa0427f2ec019b0 Mon Sep 17 00:00:00 2001 From: Stanislav Mykhailenko Date: Thu, 1 Aug 2024 01:29:45 +0300 Subject: [PATCH] Alter Lesson 8 Task 1 --- Lesson_8/Task_1/llmmathquiz.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Lesson_8/Task_1/llmmathquiz.cpp b/Lesson_8/Task_1/llmmathquiz.cpp index a5610da..de47f06 100644 --- a/Lesson_8/Task_1/llmmathquiz.cpp +++ b/Lesson_8/Task_1/llmmathquiz.cpp @@ -26,9 +26,9 @@ void LlmMathQuiz::submit() ui->e_user->setReadOnly(true); ui->l_opinion->setText("Generating…"); - sendPrompt("The two following lines will contain two answers. Respond with \"true\" if they are the same, and \"false\" if they are not. Always use lowercase." - + QString("\n") + ui->e_user->text() - + QString("\n") + m_llmAnswer); + sendPrompt("The two following lines will contain two answers for a mathematical task. The first value is the expected answer, and the second one is the answer provided. Respond with \"true\" if the provided answer matches the expected answer, and \"false\" if it is not. Always use lowercase." + + QString("\n") + m_llmAnswer + + QString("\n") + ui->e_user->text()); } void LlmMathQuiz::generate() @@ -44,7 +44,7 @@ void LlmMathQuiz::generate() ui->e_llm->clear(); ui->l_opinion->setText("Not checked"); - sendPrompt("Generate a mathematical task and a correct answer for it. Both the task and the answer need to take only one line. Provide the task on the first line, and the answer on the second line."); + sendPrompt("Generate a math task and a correct answer for it. The task can be anything from simple equations, to logical tasks. Both the task and the answer need to take only one line. Provide the task on the first line, and the answer on the second line. Never use equation 2x + 5 = 11."); } void LlmMathQuiz::newAnswer(QNetworkReply *reply)