Update examples and tests for shared glossaries
This commit is contained in:
@@ -9,6 +9,10 @@ in the [configuration reference](../docs/config.md).
|
||||
|
||||
- [Minimal pipeline](pipeline.minimal.yml): campaign discovery plus the required
|
||||
WhisperX URL.
|
||||
- [Synthetic catalog pipeline](pipeline.catalog.yml): imports the small
|
||||
[example catalog](reference-catalog/catalog.yml), whose setting imports a
|
||||
relative fragment. Install an operator-selected catalog separately for a
|
||||
production deployment.
|
||||
- [Production-shaped pipeline](pipeline.production.yml): S3 storage, publish,
|
||||
external tools, and configured Scriptorium artifacts.
|
||||
- [Production-base/testing-overlay bundle](production-testing/pipeline.yml):
|
||||
@@ -61,6 +65,12 @@ with the sample campaign and a compatible local- or S3-audio session.
|
||||
demonstrate the narrow placeholder syntax consumed by `session init`; they
|
||||
are templates, not runtime session files.
|
||||
|
||||
The [inline-only](glossary-authoring/inline-only.yml),
|
||||
[file-only](glossary-authoring/file-only.yml), and
|
||||
[combined](glossary-authoring/combined.yml) inputs fragments illustrate campaign
|
||||
vocabulary selection. They omit optional setting and system selections; add
|
||||
those IDs only when the pipeline imports a matching catalog.
|
||||
|
||||
## Input Fixtures
|
||||
|
||||
- [Speakers](speakers.yml), [autocorrect](autocorrect.yml), and
|
||||
@@ -84,7 +94,7 @@ examples that reference them. They use fictional campaign content and reserved
|
||||
example domains. The Audita and Notarius names are example references, not
|
||||
implicit aliases: external backend/profile configurations must use those exact
|
||||
names, or the Narratio credential lists must be changed to match. See the
|
||||
[Audita v2 migration guide](https://gitea.maximumdirect.net/eric/audita/src/tag/v2.0.0/docs/migrations/v2.md)
|
||||
[Audita v4.2 configuration guide](https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/config.md)
|
||||
for maintained downstream configuration examples.
|
||||
|
||||
For a deployed bundle, keep credential files out of source control. Select a
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
[]
|
||||
campaign:
|
||||
entries:
|
||||
- {id: lantern_watch, name: Lantern Watch, category: organization}
|
||||
|
||||
7
examples/glossary-authoring/combined.yml
Normal file
7
examples/glossary-authoring/combined.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
# Inline records compose above the file using ConfigKit entry identities.
|
||||
inputs:
|
||||
glossary_file: ../glossary.yml
|
||||
glossary:
|
||||
instruction: Use established campaign terminology.
|
||||
entries:
|
||||
- {id: lantern_watch, name: Silver Watch, category: organization}
|
||||
3
examples/glossary-authoring/file-only.yml
Normal file
3
examples/glossary-authoring/file-only.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
# Campaign inputs fragment; select the adjacent sample file when importing this fragment.
|
||||
inputs:
|
||||
glossary_file: ../glossary.yml
|
||||
5
examples/glossary-authoring/inline-only.yml
Normal file
5
examples/glossary-authoring/inline-only.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
# Campaign inputs fragment; include the required roster and other inputs separately.
|
||||
inputs:
|
||||
glossary:
|
||||
entries:
|
||||
- {id: watch, name: Silver Watch, category: organization}
|
||||
@@ -1,2 +1,3 @@
|
||||
[]
|
||||
|
||||
campaign:
|
||||
entries:
|
||||
- {id: lantern_watch, name: Lantern Watch, category: organization}
|
||||
|
||||
10
examples/pipeline.catalog.yml
Normal file
10
examples/pipeline.catalog.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
# Synthetic catalog example; production installations select their own local catalog.
|
||||
config:
|
||||
imports:
|
||||
- path: reference-catalog/catalog.yml
|
||||
required: true
|
||||
campaigns:
|
||||
root: /usr/local/share/narratio/campaigns
|
||||
default_campaign_id: sample-campaign
|
||||
whisperx:
|
||||
transcribe_url: https://transcription.example.com/transcribe
|
||||
@@ -15,7 +15,7 @@ notarius:
|
||||
pipeline_id: dnd-session
|
||||
timeout: 3h
|
||||
references:
|
||||
glossary: narratio.input.glossary
|
||||
glossary: narratio.input.glossary.campaign
|
||||
party: narratio.input.party
|
||||
players: narratio.input.players
|
||||
spell_catalog: narratio.input.spell_catalog
|
||||
|
||||
@@ -95,9 +95,9 @@ audita:
|
||||
# Optional overrides. Audita owns its own configuration and profiles.
|
||||
binary: audita
|
||||
timeout: 3h
|
||||
# Names must match credentials on every backend in the Audita v2 config.
|
||||
# Names must match credentials on the configured Audita backends.
|
||||
credentials: [AUDITA_LLM_API_KEY]
|
||||
# Omit modules for Audita's default sequence; modules: [] disables corrections.
|
||||
# Configure processing order in Audita configuration.
|
||||
overlay: ""
|
||||
proposal_profile: ""
|
||||
validation_profile: ""
|
||||
@@ -149,7 +149,7 @@ notarius:
|
||||
# External campaign references use prepared Narratio source IDs. Omit an
|
||||
# optional binding when the selected Notarius pipeline does not need it.
|
||||
references:
|
||||
glossary: narratio.input.glossary
|
||||
glossary: narratio.input.glossary.campaign
|
||||
party: narratio.input.party
|
||||
players: narratio.input.players
|
||||
spell_catalog: narratio.input.spell_catalog
|
||||
@@ -247,7 +247,7 @@ scriptorium:
|
||||
source: narratio.input.party
|
||||
required: true
|
||||
glossary:
|
||||
source: narratio.input.glossary
|
||||
source: narratio.input.glossary.campaign
|
||||
required: false
|
||||
vars:
|
||||
session_id: true
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# If this file is installed under /etc/narratio, install the selected catalog
|
||||
# at /etc/narratio/reference-catalog and enable its root-relative import:
|
||||
# config:
|
||||
# imports:
|
||||
# - path: reference-catalog/catalog.yml
|
||||
# required: true
|
||||
|
||||
workspace:
|
||||
root: /var/lib/narratio/workspace
|
||||
cleanup_after_publish: true
|
||||
@@ -58,7 +65,7 @@ audita:
|
||||
binary: audita
|
||||
timeout: 3h
|
||||
credentials: [AUDITA_LLM_API_KEY]
|
||||
# Omit modules to use Audita defaults; modules: [] disables corrections.
|
||||
# Configure processing order in Audita configuration.
|
||||
output_schema: audita-v1
|
||||
|
||||
normalize:
|
||||
@@ -93,7 +100,7 @@ scriptorium:
|
||||
source: narratio.input.party
|
||||
required: true
|
||||
glossary:
|
||||
source: narratio.input.glossary
|
||||
source: narratio.input.glossary.campaign
|
||||
required: false
|
||||
vars:
|
||||
session_id: true
|
||||
|
||||
@@ -8,7 +8,6 @@ seriatim:
|
||||
|
||||
audita:
|
||||
binary: audita
|
||||
modules: [glossary, grammar]
|
||||
output_schema: audita-v1
|
||||
proposal_profile: narratio-production-model-placeholder
|
||||
validation_profile: narratio-production-validator-placeholder
|
||||
|
||||
5
examples/reference-catalog/catalog.yml
Normal file
5
examples/reference-catalog/catalog.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
reference_catalog:
|
||||
settings:
|
||||
lantern_coast: ./setting.yml
|
||||
systems:
|
||||
sample_magic: ./spells.yml
|
||||
3
examples/reference-catalog/fragments/places.yml
Normal file
3
examples/reference-catalog/fragments/places.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
setting:
|
||||
entries:
|
||||
- {id: harbor, name: North Harbor, category: place}
|
||||
8
examples/reference-catalog/setting.yml
Normal file
8
examples/reference-catalog/setting.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
config:
|
||||
imports:
|
||||
- path: fragments/places.yml
|
||||
required: true
|
||||
setting:
|
||||
instruction: Use the established place names.
|
||||
entries:
|
||||
- {id: coast, name: Lantern Coast, category: place}
|
||||
3
examples/reference-catalog/spells.yml
Normal file
3
examples/reference-catalog/spells.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
spells:
|
||||
entries:
|
||||
- {id: glow, name: Lantern Glow, category: spell}
|
||||
Reference in New Issue
Block a user