Migrate registry extraction to native correction and explicit empty fallbacks

This commit is contained in:
2026-11-22 00:50:54 +00:00
parent 5d3696d4a0
commit 303d6589c5
36 changed files with 1107 additions and 1121 deletions

View File

@@ -0,0 +1,7 @@
Revise the previous item registry using these findings:
{{ input "guidance" }}
Return the complete replacement registry, not only the changed records. Keep the
original transcript and reference context and return only JSON matching the
original response contract.

View File

@@ -17,7 +17,7 @@ prompts:
messages:
- role: system
content_file: ../../../shared/prompts/common-dnd-system.md
- role: user
- role: system
content_file: ../../../shared/prompts/common-dnd-identity.md
- role: user
content_file: ../../../shared/prompts/common-dnd-references.md
@@ -27,9 +27,9 @@ prompts:
content_file: ../../../shared/prompts/common-dnd-transcript-chunk.md
cache_control:
type: ephemeral
- role: user
- role: system
content_file: ../../../shared/prompts/common-dnd-extraction-evidence.md
- role: user
- role: system
content_file: ./instructions.md
cache_control:
type: ephemeral
@@ -37,3 +37,17 @@ prompts:
format: json
validation_mode: json_schema
schema_path: dnd/item-registry/extract/schemas/dnd_item_registry_llm.v1.json
- id: dnd.item_registry.repair
default_profile: notarius/dnd-extraction
inputs:
- name: guidance
required: true
content_type: text/plain
messages:
- role: user
content_file: ./correction.md
output:
format: json
validation_mode: json_schema
schema_path: dnd/item-registry/extract/schemas/dnd_item_registry_llm.v1.json

View File

@@ -0,0 +1,7 @@
Revise the previous location registry using these findings:
{{ input "guidance" }}
Return the complete replacement registry, not only the changed records. Keep the
original transcript and reference context and return only JSON matching the
original response contract.

View File

@@ -17,7 +17,7 @@ prompts:
messages:
- role: system
content_file: ../../../shared/prompts/common-dnd-system.md
- role: user
- role: system
content_file: ../../../shared/prompts/common-dnd-identity.md
- role: user
content_file: ../../../shared/prompts/common-dnd-references.md
@@ -27,9 +27,9 @@ prompts:
content_file: ../../../shared/prompts/common-dnd-transcript-chunk.md
cache_control:
type: ephemeral
- role: user
- role: system
content_file: ../../../shared/prompts/common-dnd-extraction-evidence.md
- role: user
- role: system
content_file: ./instructions.md
cache_control:
type: ephemeral
@@ -37,3 +37,17 @@ prompts:
format: json
validation_mode: json_schema
schema_path: dnd/location-registry/extract/schemas/dnd_location_registry_llm.v1.json
- id: dnd.location_registry.repair
default_profile: notarius/dnd-extraction
inputs:
- name: guidance
required: true
content_type: text/plain
messages:
- role: user
content_file: ./correction.md
output:
format: json
validation_mode: json_schema
schema_path: dnd/location-registry/extract/schemas/dnd_location_registry_llm.v1.json

View File

@@ -0,0 +1,7 @@
Revise the previous NPC registry using these findings:
{{ input "guidance" }}
Return the complete replacement registry, not only the changed records. Keep the
original transcript and reference context and return only JSON matching the
original response contract.

View File

@@ -17,7 +17,7 @@ prompts:
messages:
- role: system
content_file: ../../../shared/prompts/common-dnd-system.md
- role: user
- role: system
content_file: ../../../shared/prompts/common-dnd-identity.md
- role: user
content_file: ../../../shared/prompts/common-dnd-references.md
@@ -27,9 +27,9 @@ prompts:
content_file: ../../../shared/prompts/common-dnd-transcript-chunk.md
cache_control:
type: ephemeral
- role: user
- role: system
content_file: ../../../shared/prompts/common-dnd-extraction-evidence.md
- role: user
- role: system
content_file: ./instructions.md
cache_control:
type: ephemeral
@@ -37,3 +37,17 @@ prompts:
format: json
validation_mode: json_schema
schema_path: dnd/npc-registry/extract/schemas/dnd_npc_registry_llm.v1.json
- id: dnd.npc_registry.repair
default_profile: notarius/dnd-extraction
inputs:
- name: guidance
required: true
content_type: text/plain
messages:
- role: user
content_file: ./correction.md
output:
format: json
validation_mode: json_schema
schema_path: dnd/npc-registry/extract/schemas/dnd_npc_registry_llm.v1.json