From 9929efee275fff530d70d994b57dcf020e73cc03 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 29 Jun 2025 18:06:35 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20ENHANCE:=20Subject-aware=20AI=20res?= =?UTF-8?q?ponses=20for=20Math=20vs=20Science?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit IMPROVEMENTS: 🔢 Math Questions: - Detects math questions (contains +, -, numbers, sum, total, count) - AI responses focus on mathematical thinking and counting - 'yes' → 'Great! Math is fun when we take it step by step.' - Answer reveals show '🔢 Mathematical Solution' not 'Scientific Explanation' - Button text: 'Show Solution!' instead of 'Reveal Answer!' 🔬 Science Questions: - Maintains scientific focus for how/why questions - AI responses focus on scientific discovery and exploration - Proper 'Scientific Explanation' labeling for science topics 🎯 Better Fallback Responses: - Math-specific encouragement for numbers and counting - Subject-appropriate emojis and language - More relevant feedback for different question types BEFORE: '10+5' → 'Scientific Explanation' ❌ NOW: '10+5' → '🔢 Mathematical Solution' ✅ --- html/kidsai/index.html | 6 ++-- html/kidsai/script-new.js | 39 +++++++++++++++++--- html/kidsai/server.js | 76 +++++++++++++++++++++++++++++++++------ 3 files changed, 102 insertions(+), 19 deletions(-) diff --git a/html/kidsai/index.html b/html/kidsai/index.html index b583adb..4260c67 100755 --- a/html/kidsai/index.html +++ b/html/kidsai/index.html @@ -176,9 +176,9 @@ }, 100); - - - + + +