Skip to content

Commit 1bb62cb

Browse files
committed
Clarify follow‑up question prompt
Update `ChatManager::followUpQuestions` to explicitly request up to five follow‑up questions from the user’s perspective. - Replace the generic “Generate up to five questions” with “Generate up to five follow up questions”. - Add the clause “The questions are from the user point of view.” - Remove the redundant “Please” and streamline the wording. - Keep the JSON array return format and the “no markdown” restriction. These changes make the prompt clearer and better aligned with the intended user‑centric interaction.
1 parent df8a5b0 commit 1bb62cb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llamachatmanager.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,10 @@ void ChatManager::followUpQuestions(const QString &convId,
314314
QJsonArray parts;
315315
QJsonObject txt;
316316
txt["type"] = "text";
317-
txt["text"] = "Generate up to five questions in the context of the "
318-
"current conversation. Only questions, no explanations. "
319-
"Please return the questions in the form of a JSON array as plain text strings, "
317+
txt["text"] = "Generate up to five follow up questions in the context of the "
318+
"current conversation. The questions are from the user point of view. "
319+
"Only questions, no explanations. "
320+
"Return the questions in the form of a JSON array as plain text strings, "
320321
"no markdown.";
321322
parts.append(txt);
322323
QJsonObject prompt;

0 commit comments

Comments
 (0)