Document shared glossary inputs and migration
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Build Audita from the repository root with Go 1.27 or newer. The commands below
|
||||
assume the executable is on `PATH`. Each project selects its main file from its
|
||||
own directory, which also determines companion resources and overlay context.
|
||||
own directory, which also determines prompt companions and overlay context.
|
||||
All models, credentials, names, and endpoints are illustrative.
|
||||
|
||||
## Local processing
|
||||
@@ -11,9 +11,9 @@ From `examples/local`, edit `prompts.yml` to match a reachable OpenAI-compatible
|
||||
local service and its model. Then run:
|
||||
|
||||
```sh
|
||||
audita config validate --config config.yml
|
||||
audita preflight --smoke=false --config config.yml --output corrected.json transcript.json
|
||||
audita process --config config.yml --output corrected.json transcript.json
|
||||
audita config validate --config config.yml --glossary-file glossary.yml
|
||||
audita preflight --smoke=false --config config.yml --glossary-file glossary.yml --output corrected.json transcript.json
|
||||
audita process --config config.yml --glossary-file glossary.yml --output corrected.json transcript.json
|
||||
```
|
||||
|
||||
The local-only preflight checks the intended destination without contacting the
|
||||
@@ -24,7 +24,7 @@ unless disabled. For an offline validator preview, from the same directory:
|
||||
|
||||
```sh
|
||||
audita promptkit show prepared audita/validators.meaning_reversal_review \
|
||||
--config config.yml --profile local \
|
||||
--config config.yml --glossary-file glossary.yml --profile local \
|
||||
--var "PayloadJSON=$(cat validation-candidate.json)" \
|
||||
--var 'TranscriptDescriptionBlock='
|
||||
```
|
||||
@@ -33,7 +33,7 @@ To preview the repair instruction and its output schema without inference:
|
||||
|
||||
```sh
|
||||
audita promptkit show prepared audita/modules.grammar.repair \
|
||||
--config config.yml --profile local \
|
||||
--config config.yml --glossary-file glossary.yml --profile local \
|
||||
--var "RepairRequestJSON=$(cat repair-candidate.json)"
|
||||
```
|
||||
|
||||
@@ -57,7 +57,7 @@ The example does not promise a provider's model availability, price, or quality.
|
||||
|
||||
From `examples/service`, the `runtime-glossary` overlay selects a configured
|
||||
reference collection and an incoming collection. The runtime file replaces the
|
||||
incoming entries and supplies its instruction. Inspect the combined settings:
|
||||
incoming entries. Inspect the combined settings:
|
||||
|
||||
```sh
|
||||
audita config show --scope app --config config.yml --overlay runtime-glossary \
|
||||
@@ -79,11 +79,11 @@ The [runtime file](service/runtime-glossary.yml) and
|
||||
From `examples/prompt-edit`, inspect the operator replacement:
|
||||
|
||||
```sh
|
||||
audita promptkit show prompt audita/modules.grammar.proposal --config config.yml
|
||||
audita promptkit show prompt audita/modules.grammar.proposal --config config.yml --glossary-file glossary.yml
|
||||
```
|
||||
|
||||
Edit its message in `prompts.yml`, repeat the inspection, and run `audita process
|
||||
--config config.yml --output corrected.json transcript.json` against a configured
|
||||
--config config.yml --glossary-file glossary.yml --output corrected.json transcript.json` against a configured
|
||||
local service. Its complete replacement also selects a structural-repair budget;
|
||||
see the [v4.1 migration guide](../docs/migrations/v4.1.md). Each invocation captures
|
||||
the files anew. For native resource formats and commands, see the
|
||||
@@ -92,20 +92,28 @@ and [ckprompt guide](https://forge.maximumdirect.net/base-layer/commandkit/src/t
|
||||
|
||||
## Shared glossary library
|
||||
|
||||
From `examples/campaigns`, `first.yml` and `second.yml` each consume the common
|
||||
`shared.yml` through the companion `glossary.yml`. Inspect each configuration:
|
||||
From `examples/campaigns`, `first.yml` and `second.yml` explicitly select the
|
||||
[shared multi-collection file](campaigns/glossary.yml), which imports the
|
||||
[synthetic party and spell data](campaigns/shared.yml). Inspect each configuration:
|
||||
|
||||
```sh
|
||||
audita config validate --config first.yml
|
||||
audita config validate --config second.yml
|
||||
audita config validate --config first.yml --glossary-file glossary.yml
|
||||
audita config validate --config second.yml --glossary-file glossary.yml
|
||||
```
|
||||
|
||||
The equivalent arrangement uses separate complete files:
|
||||
|
||||
```sh
|
||||
audita config validate --config first.yml --glossary-file party.yml --glossary-file spells.yml
|
||||
```
|
||||
|
||||
With a local service configured, process either campaign:
|
||||
|
||||
```sh
|
||||
audita process --config first.yml --output first-output.json transcript.json
|
||||
audita process --config second.yml --output second-output.json transcript.json
|
||||
audita process --config first.yml --glossary-file glossary.yml --output first-output.json transcript.json
|
||||
audita process --config second.yml --glossary-file glossary.yml --output second-output.json transcript.json
|
||||
```
|
||||
|
||||
Edit `prompts.yml` for a local service before processing either campaign. The
|
||||
first uses separate party and spell corrections; the second selects only party.
|
||||
The spell input is a shared document and needs no Audita-specific vocabulary copy.
|
||||
|
||||
@@ -2,3 +2,4 @@ config:
|
||||
imports:
|
||||
- path: shared.yml
|
||||
required: true
|
||||
schema_version: maximumdirect.glossary.v1
|
||||
|
||||
8
examples/campaigns/party.yml
Normal file
8
examples/campaigns/party.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
schema_version: maximumdirect.glossary.v1
|
||||
collections:
|
||||
party:
|
||||
entries:
|
||||
- id: lyra
|
||||
name: Lyra
|
||||
category: character
|
||||
description: A fictional adventurer.
|
||||
@@ -1,12 +1,13 @@
|
||||
party:
|
||||
entries:
|
||||
- id: lyra
|
||||
name: Lyra
|
||||
category: character
|
||||
description: A fictional adventurer.
|
||||
spells:
|
||||
entries:
|
||||
- id: shield
|
||||
name: Shield
|
||||
category: spell
|
||||
aliases: [Ward]
|
||||
collections:
|
||||
party:
|
||||
entries:
|
||||
- id: lyra
|
||||
name: Lyra
|
||||
category: character
|
||||
description: A fictional adventurer.
|
||||
spells:
|
||||
entries:
|
||||
- id: shield
|
||||
name: Shield
|
||||
category: spell
|
||||
aliases: [Ward]
|
||||
|
||||
8
examples/campaigns/spells.yml
Normal file
8
examples/campaigns/spells.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
schema_version: maximumdirect.glossary.v1
|
||||
collections:
|
||||
spells:
|
||||
entries:
|
||||
- id: shield
|
||||
name: Shield
|
||||
category: spell
|
||||
aliases: [Ward]
|
||||
@@ -1,7 +1,9 @@
|
||||
party:
|
||||
entries:
|
||||
- id: jesters
|
||||
name: Jesters
|
||||
category: faction
|
||||
description: A traveling group of performers.
|
||||
aliases: [Jester]
|
||||
schema_version: maximumdirect.glossary.v1
|
||||
collections:
|
||||
party:
|
||||
entries:
|
||||
- id: jesters
|
||||
name: Jesters
|
||||
category: faction
|
||||
description: A traveling group of performers.
|
||||
aliases: [Jester]
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
party:
|
||||
entries:
|
||||
- id: jesters
|
||||
name: Jesters
|
||||
category: faction
|
||||
description: A traveling group of performers.
|
||||
aliases: [Jester]
|
||||
schema_version: maximumdirect.glossary.v1
|
||||
collections:
|
||||
party:
|
||||
entries:
|
||||
- id: jesters
|
||||
name: Jesters
|
||||
category: faction
|
||||
description: A traveling group of performers.
|
||||
aliases: [Jester]
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
incoming:
|
||||
instruction: Use the speaker's preferred spelling when supported by context.
|
||||
entries:
|
||||
- id: speaker
|
||||
name: Mira Chen
|
||||
category: person
|
||||
aliases: [Mira]
|
||||
source_note: Prepared for this recording
|
||||
schema_version: maximumdirect.glossary.v1
|
||||
collections:
|
||||
incoming:
|
||||
entries:
|
||||
- id: speaker
|
||||
name: Mira Chen
|
||||
category: person
|
||||
aliases: [Mira]
|
||||
source_note: Prepared for this recording
|
||||
|
||||
Reference in New Issue
Block a user