Document and verify runtime glossary workflows
This commit is contained in:
@@ -49,6 +49,27 @@ audita promptkit show profile service-test --config config.yml
|
||||
|
||||
The example does not promise a provider's model availability, price, or quality.
|
||||
|
||||
## Runtime glossary input
|
||||
|
||||
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:
|
||||
|
||||
```sh
|
||||
audita config show --scope app --config config.yml --overlay runtime-glossary \
|
||||
--glossary-file runtime-glossary.yml
|
||||
```
|
||||
|
||||
After configuring the example service and credential, run:
|
||||
|
||||
```sh
|
||||
audita process --config config.yml --overlay runtime-glossary \
|
||||
--glossary-file runtime-glossary.yml --output corrected.json transcript.json
|
||||
```
|
||||
|
||||
The [runtime file](service/runtime-glossary.yml) and
|
||||
[overlay](service/overlays/runtime-glossary.yml) contain synthetic data.
|
||||
|
||||
## Edit a prompt and run again
|
||||
|
||||
From `examples/prompt-edit`, inspect the operator replacement:
|
||||
|
||||
12
examples/service/overlays/runtime-glossary.yml
Normal file
12
examples/service/overlays/runtime-glossary.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
glossaries: [reference, incoming]
|
||||
glossary_collections:
|
||||
reference:
|
||||
instruction: Preserve established place names.
|
||||
entries:
|
||||
- {id: observatory, name: North Observatory, category: place}
|
||||
incoming:
|
||||
entries:
|
||||
- {id: speaker, name: Placeholder Speaker, category: person}
|
||||
llm:
|
||||
proposal_profile: service-test
|
||||
validation_profile: service-test
|
||||
8
examples/service/runtime-glossary.yml
Normal file
8
examples/service/runtime-glossary.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
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
|
||||
Reference in New Issue
Block a user