Skip to content

Commit 9b5d00e

Browse files
nodeeeeeeclaude
andcommitted
Restore full image requirements in English chunk prompts
English chunk and slide_only prompts now include: visual element types, exact path copying from Available images list, do-not-invent-paths rule, and the inline placement / no-clustering rule. Previously these were shortened and missing the path-copying requirement. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f93fdc9 commit 9b5d00e

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

note_generation.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,10 @@
230230
Requirements:
231231
- The section heading for this segment is `### {lec_num}.{chunk_idx} {chunk_title}` (**do not output this line** — it is added by the caller).
232232
- Detail level: {detail}/10. {detail_instruction}
233-
- Images: **insert all images that contain visual elements** (diagrams, charts, graphs, code screenshots, architecture drawings, data visualizations, etc.). Skip pure text slides. Copy exact paths from "Available images". CRITICAL: place each image **inline next to the paragraph that explains it** — NEVER cluster multiple images together. Each image must have explanatory text before and after it. Format: `![Slide N](path) *(caption)*` or `![Frame N](path) *(caption)*`
233+
- Images: **insert all images that contain visual elements** (diagrams, charts, graphs, code screenshots, architecture drawings, data visualizations, mathematical derivations, etc.). Skip images of pure text, bullet points, or administrative/non-course elements.
234+
Copy the exact path from the "Available images" list above (including the images/L** subdirectory). Do not invent paths.
235+
**CRITICAL: place each image inline, immediately after the paragraph that explains the concept it illustrates — NEVER cluster multiple images together. Each image must have explanatory text both above and below it.**
236+
Format: `![Slide N](path) *(caption)*` or `![Frame N](path) *(caption)*`
234237
- Code examples must be complete and compilable (with necessary includes/imports), using the correct language tag (```c, ```cpp, ```python).
235238
- Only cover the content in this segment; do not introduce material from other lectures.
236239
""",
@@ -249,7 +252,10 @@
249252
Requirements:
250253
- The section heading is `### {lec_num}.{chunk_idx} {chunk_title}` (**do not output this line**).
251254
- Detail level: {detail}/10. {detail_instruction}
252-
- Images: **insert all images that contain visual elements** (diagrams, charts, graphs, code screenshots, architecture drawings, data visualizations, etc.). Skip pure text slides. Copy exact paths from "Available images". CRITICAL: place each image **inline next to the paragraph that explains it** — NEVER cluster multiple images together. Format: `![Slide N](path) *(caption)*` or `![Frame N](path) *(caption)*`
255+
- Images: **insert all images that contain visual elements** (diagrams, charts, graphs, code screenshots, architecture drawings, data visualizations, mathematical derivations, etc.). Skip images of pure text, bullet points, or administrative/non-course elements.
256+
Copy the exact path from the "Available images" list above (including the images/L** subdirectory). Do not invent paths.
257+
**CRITICAL: place each image inline, immediately after the paragraph that explains the concept it illustrates — NEVER cluster multiple images together. Each image must have explanatory text both above and below it.**
258+
Format: `![Slide N](path) *(caption)*` or `![Frame N](path) *(caption)*`
253259
- Code examples must be complete and compilable, using the correct language tag (```c, ```cpp, ```python).
254260
""",
255261
verify="""\

0 commit comments

Comments
 (0)