From 1f95c4d1eaf0e59292c1c038f62ceb6c30f95775 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 1 Apr 2026 13:16:43 +0200 Subject: [PATCH] Explanation: capture ALL content verbatim until next question Updated extraction prompt to be explicit that explanation must include every section between the correct answer line and the next question: - Explanation paragraph - Critique section (if present) - Learning Points (if present) - Content Specifications / American Board of Pediatrics specs - Suggested Reading references - Any other content No summarizing, skipping, or shortening of any text. Keep all section headers verbatim. Co-Authored-By: Claude Sonnet 4.6 (1M context) --- backend/app/services/ai_service.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/backend/app/services/ai_service.py b/backend/app/services/ai_service.py index 44a1d2d..9747598 100644 --- a/backend/app/services/ai_service.py +++ b/backend/app/services/ai_service.py @@ -33,7 +33,7 @@ Your task: extract every question and return ONLY a JSON object in this exact fo "question_type": "mcq", "options": ["