Centralize NPC LLM assets
This commit is contained in:
4
assets/dnd/npcs/normalize/prompts/candidates.md
Normal file
4
assets/dnd/npcs/normalize/prompts/candidates.md
Normal file
@@ -0,0 +1,4 @@
|
||||
The supplied NPC candidates are below. Use only these display names in the
|
||||
response.
|
||||
|
||||
{{ input "candidates" }}
|
||||
30
assets/dnd/npcs/normalize/prompts/dnd.npcs.normalize.yaml
Normal file
30
assets/dnd/npcs/normalize/prompts/dnd.npcs.normalize.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
id: dnd.npcs.normalize
|
||||
version: "v1"
|
||||
default_profile: dnd-extraction
|
||||
inputs:
|
||||
- name: candidates
|
||||
required: true
|
||||
content_type: application/json
|
||||
- name: transcript
|
||||
required: true
|
||||
content_type: application/json
|
||||
messages:
|
||||
- role: system
|
||||
content_file: ./sharedassets/common-dnd-system.md
|
||||
- role: user
|
||||
content_file: ./task.md
|
||||
- role: user
|
||||
content_file: ./sharedassets/common-dnd-entity-reconciliation.md
|
||||
cache_control:
|
||||
type: ephemeral
|
||||
- role: user
|
||||
content_file: ./candidates.md
|
||||
- role: user
|
||||
content_file: ./sharedassets/common-dnd-transcript.md
|
||||
cache_control:
|
||||
type: ephemeral
|
||||
output:
|
||||
format: json
|
||||
validation_mode: json_schema
|
||||
schema_path: dnd_entity_reconcile_llm.v1.json
|
||||
repair_attempts: 0
|
||||
13
assets/dnd/npcs/normalize/prompts/task.md
Normal file
13
assets/dnd/npcs/normalize/prompts/task.md
Normal file
@@ -0,0 +1,13 @@
|
||||
Review NPC candidates and their cited transcript context to identify aliases
|
||||
that refer to the same individual. Propose only groups supported by the
|
||||
transcript, and preserve distinct individuals even when their names are
|
||||
similar.
|
||||
|
||||
For every accepted group, choose as canonical only a supplied candidate from
|
||||
that evidence-supported duplicate group. Prefer a complete, stable proper name
|
||||
over an abbreviation. Prefer an unadorned proper name over that name plus a
|
||||
contextual class, role, title, or relationship descriptor unless the transcript
|
||||
establishes the descriptor as part of the person's name. A longer display name
|
||||
is not inherently more canonical; for example, do not prefer `Captain Aria`
|
||||
over `Aria` solely because it includes the contextual title `Captain`. Do not
|
||||
invent, edit, or combine display names.
|
||||
Reference in New Issue
Block a user