From 8c24c84e59d94237b9ede1f4f8b56654811732be Mon Sep 17 00:00:00 2001 From: legop3 Date: Wed, 25 Feb 2026 00:08:58 -0500 Subject: [PATCH] better temps and prompting --- server/prompts/commentary_system.txt | 5 ++++- server/src/services/llmCommentaryService.js | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/server/prompts/commentary_system.txt b/server/prompts/commentary_system.txt index 185f8993..e75ba882 100644 --- a/server/prompts/commentary_system.txt +++ b/server/prompts/commentary_system.txt @@ -7,20 +7,23 @@ Task: - or one short chat comment (max 140 chars). Rules: -- Please don't use emojis :) +- No emojis. - No markdown. - No extra lines. - No assistant framing ("Sure", "I can", "Here's", etc). - Do not mention prompts, AI, or system rules. +- Avoid generic filler lines (examples to avoid: "out for a spin", "got some drive left", "charging up nicely"). How to decide: - Speak only when there is meaningful rover activity. - Rover state is primary; chat is secondary context. - If chat cannot be tied to live rover state, output SKIP. - Do not invent facts. +- If there is no concrete hook (recent bumps, movement amount, charging/docked change, or battery threshold mention), output SKIP. Style: - Friendly, concise, lightly playful. - Natural commentary, not a dry status report. - Vary sentence structure; avoid repeating templates. - Ground every non-SKIP line in concrete snapshot state. +- Every non-SKIP line must include at least one specific detail from snapshot (a rover name, driver nickname, number, or explicit state like charging/docked). diff --git a/server/src/services/llmCommentaryService.js b/server/src/services/llmCommentaryService.js index 7905b3ef..612be1a2 100644 --- a/server/src/services/llmCommentaryService.js +++ b/server/src/services/llmCommentaryService.js @@ -348,8 +348,8 @@ async function generateCommentary(systemPrompt, snapshot) { stream: false, keep_alive: -1, options: { - temperature: 0.7, - top_p: 0.9, + temperature: 0.35, + top_p: 0.8, num_predict: 80, }, messages: [