From 5cbd9e56e41a949be220d987686c63b11bb2956b Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Mon, 27 Jul 2026 20:07:09 +0000 Subject: [PATCH] Reorder D&D extraction prompt prefixes --- .../combatturns/assets/prompts/dnd.combat_turns.yaml | 12 +++++------- .../itemevents/assets/prompts/dnd.item_events.yaml | 12 ++++++------ .../assets/prompts/dnd.npc_interactions.yaml | 12 +++++------- .../dnd/extract/npcs/assets/prompts/dnd.npcs.yaml | 12 ++++++------ .../assets/prompts/dnd.scene_descriptions.yaml | 6 +++--- .../extract/spells/assets/prompts/dnd.spells.yaml | 12 +++++------- 6 files changed, 30 insertions(+), 36 deletions(-) diff --git a/internal/modules/dnd/extract/combatturns/assets/prompts/dnd.combat_turns.yaml b/internal/modules/dnd/extract/combatturns/assets/prompts/dnd.combat_turns.yaml index c46c519..ba0e45d 100644 --- a/internal/modules/dnd/extract/combatturns/assets/prompts/dnd.combat_turns.yaml +++ b/internal/modules/dnd/extract/combatturns/assets/prompts/dnd.combat_turns.yaml @@ -20,28 +20,26 @@ inputs: messages: - role: system content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - role: user content_file: ./sharedassets/common-dnd-identity.md - cache_control: - type: ephemeral - role: user content_file: ./sharedassets/common-dnd-references.md cache_control: type: ephemeral - role: user - content_file: ./sharedassets/common-dnd-npcs.md + content_file: ./sharedassets/common-dnd-transcript.md cache_control: type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md + - role: user + content_file: ./sharedassets/common-dnd-npcs.md - role: user content_file: ./task.md - role: user content_file: ./instructions.md cache_control: type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript.md output: format: json validation_mode: json_schema diff --git a/internal/modules/dnd/extract/itemevents/assets/prompts/dnd.item_events.yaml b/internal/modules/dnd/extract/itemevents/assets/prompts/dnd.item_events.yaml index 66830d4..b4293bc 100644 --- a/internal/modules/dnd/extract/itemevents/assets/prompts/dnd.item_events.yaml +++ b/internal/modules/dnd/extract/itemevents/assets/prompts/dnd.item_events.yaml @@ -17,24 +17,24 @@ inputs: messages: - role: system content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - role: user content_file: ./sharedassets/common-dnd-identity.md - cache_control: - type: ephemeral - role: user content_file: ./sharedassets/common-dnd-references.md cache_control: type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-transcript.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md - role: user content_file: ./task.md - role: user content_file: ./instructions.md cache_control: type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript.md output: format: json validation_mode: json_schema diff --git a/internal/modules/dnd/extract/npcinteractions/assets/prompts/dnd.npc_interactions.yaml b/internal/modules/dnd/extract/npcinteractions/assets/prompts/dnd.npc_interactions.yaml index bd8ec3b..e247d30 100644 --- a/internal/modules/dnd/extract/npcinteractions/assets/prompts/dnd.npc_interactions.yaml +++ b/internal/modules/dnd/extract/npcinteractions/assets/prompts/dnd.npc_interactions.yaml @@ -20,28 +20,26 @@ inputs: messages: - role: system content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - role: user content_file: ./sharedassets/common-dnd-identity.md - cache_control: - type: ephemeral - role: user content_file: ./sharedassets/common-dnd-references.md cache_control: type: ephemeral - role: user - content_file: ./sharedassets/common-dnd-npcs.md + content_file: ./sharedassets/common-dnd-transcript.md cache_control: type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md + - role: user + content_file: ./sharedassets/common-dnd-npcs.md - role: user content_file: ./task.md - role: user content_file: ./instructions.md cache_control: type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript.md output: format: json validation_mode: json_schema diff --git a/internal/modules/dnd/extract/npcs/assets/prompts/dnd.npcs.yaml b/internal/modules/dnd/extract/npcs/assets/prompts/dnd.npcs.yaml index fc9f53c..825da41 100644 --- a/internal/modules/dnd/extract/npcs/assets/prompts/dnd.npcs.yaml +++ b/internal/modules/dnd/extract/npcs/assets/prompts/dnd.npcs.yaml @@ -17,24 +17,24 @@ inputs: messages: - role: system content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - role: user content_file: ./sharedassets/common-dnd-identity.md - cache_control: - type: ephemeral - role: user content_file: ./sharedassets/common-dnd-references.md cache_control: type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-transcript.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md - role: user content_file: ./task.md - role: user content_file: ./instructions.md cache_control: type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript.md output: format: json validation_mode: json_schema diff --git a/internal/modules/dnd/extract/scenedescriptions/assets/prompts/dnd.scene_descriptions.yaml b/internal/modules/dnd/extract/scenedescriptions/assets/prompts/dnd.scene_descriptions.yaml index 397f934..7db42f0 100644 --- a/internal/modules/dnd/extract/scenedescriptions/assets/prompts/dnd.scene_descriptions.yaml +++ b/internal/modules/dnd/extract/scenedescriptions/assets/prompts/dnd.scene_descriptions.yaml @@ -19,10 +19,12 @@ messages: content_file: ./sharedassets/common-dnd-system.md - role: user content_file: ./sharedassets/common-dnd-identity.md + - role: user + content_file: ./sharedassets/common-dnd-references.md cache_control: type: ephemeral - role: user - content_file: ./sharedassets/common-dnd-references.md + content_file: ./sharedassets/common-dnd-transcript.md cache_control: type: ephemeral - role: user @@ -31,8 +33,6 @@ messages: content_file: ./instructions.md cache_control: type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript.md output: format: json validation_mode: json_schema diff --git a/internal/modules/dnd/extract/spells/assets/prompts/dnd.spells.yaml b/internal/modules/dnd/extract/spells/assets/prompts/dnd.spells.yaml index 0d31f03..db0e0f6 100644 --- a/internal/modules/dnd/extract/spells/assets/prompts/dnd.spells.yaml +++ b/internal/modules/dnd/extract/spells/assets/prompts/dnd.spells.yaml @@ -23,20 +23,20 @@ inputs: messages: - role: system content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - role: user content_file: ./sharedassets/common-dnd-identity.md - cache_control: - type: ephemeral - role: user content_file: ./sharedassets/common-dnd-references.md cache_control: type: ephemeral - role: user - content_file: ./sharedassets/common-dnd-npcs.md + content_file: ./sharedassets/common-dnd-transcript.md cache_control: type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md + - role: user + content_file: ./sharedassets/common-dnd-npcs.md - role: user content_file: ./catalog.md - role: user @@ -45,8 +45,6 @@ messages: content_file: ./instructions.md cache_control: type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript.md output: format: json validation_mode: json_schema