chrysopedia/prompts
jlightner c344b8c670 fix: Moment-to-page linking via moment_indices in stage 5 synthesis
When the LLM splits a category group into multiple technique pages,
moments were blanket-linked to the last page in the loop, leaving all
other pages as orphans with 0 key moments (48 out of 204 pages affected).

Added moment_indices field to SynthesizedPage schema and synthesis prompt
so the LLM explicitly declares which input moments each page covers.
Stage 5 now uses these indices for targeted linking instead of the broken
blanket approach. Tags are also computed per-page from linked moments
only, fixing cross-contamination (e.g. "stereo imaging" tag appearing
on gain staging pages).

Deleted 48 orphan technique pages from the database.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 00:34:37 -05:00
..
README.md fix: restore complete project tree from ub01 canonical state 2026-03-31 02:10:41 +00:00
stage2_segmentation.txt fix: restore complete project tree from ub01 canonical state 2026-03-31 02:10:41 +00:00
stage3_extraction.txt fix: restore complete project tree from ub01 canonical state 2026-03-31 02:10:41 +00:00
stage4_classification.txt fix: restore complete project tree from ub01 canonical state 2026-03-31 02:10:41 +00:00
stage5_synthesis.txt fix: Moment-to-page linking via moment_indices in stage 5 synthesis 2026-04-01 00:34:37 -05:00

Prompt templates for LLM pipeline stages

These files are bind-mounted read-only into the worker container.