Minor additional improvements to the D&D spell extraction prompt.

This commit is contained in:
2026-07-20 20:34:59 -05:00
parent c4c907d421
commit 5186e061a8
4 changed files with 41 additions and 29 deletions

View File

@@ -2,14 +2,19 @@ Source references must use integer source-unit IDs from the transcript. Provide
start_unit_id and end_unit_id for each source reference; the extractor assigns
source_id automatically.
For each artifact, its source references must collectively support every
factual claim in caster, spell, effect, and narrative_description. Include the
casting declaration or action and every later transcript unit needed to support
reported targets, saving throws, damage, healing, conditions, interruptions,
and outcomes. When supporting evidence is non-contiguous, provide multiple
narrow source references. Do not use one broad range merely to bridge unrelated
table conversation. If a detail is not supported by the cited transcript
units, omit that detail or describe only the supported attempt or declaration.
Report only the casting declaration or action and its immediate resolution.
This may include an immediately resolved target, saving throw, damage, healing,
condition, interruption, or outcome. Do not follow summoned creatures,
persistent effects, or other downstream consequences through the rest of the
scene.
For every detail you report, cite all supporting transcript units. The source
references for an artifact must collectively support every factual claim in
caster, spell, effect, and narrative_description. When immediate supporting
evidence is non-contiguous, provide multiple narrow source references. Do not
use one broad range merely to bridge unrelated table conversation. If a detail
is not supported by the cited transcript units, omit that detail or describe
only the supported attempt or declaration.
Return only D&D spell-cast artifacts. For each spell cast, identify the in-world
caster, spell name, effect, narrative description, and source references.

View File

@@ -31,17 +31,17 @@
"effect": {
"type": "string",
"minLength": 1,
"description": "Concise effect or resolution established by the cited transcript units; do not infer mechanics from general D&D rules knowledge."
"description": "Concise immediate effect or resolution established by the cited transcript units; do not infer mechanics from general D&D rules knowledge or follow persistent downstream consequences."
},
"narrative_description": {
"type": "string",
"minLength": 1,
"description": "Short session-grounded description containing only details established by the cited transcript units."
"description": "Short session-grounded description of the casting declaration and immediate resolution, containing only details established by the cited transcript units."
},
"source_refs": {
"type": "array",
"minItems": 1,
"description": "One or more narrow transcript ranges that collectively support every factual claim in this spell-cast object, including any reported resolution or outcome.",
"description": "One or more narrow transcript ranges that collectively support every factual claim about the casting declaration and immediate resolution in this spell-cast object.",
"items": {
"type": "object",
"additionalProperties": false,