Document the new configuration and processing workflow
This commit is contained in:
8
examples/prompt-edit/config.yml
Normal file
8
examples/prompt-edit/config.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
version: 3
|
||||
llm:
|
||||
proposal_profile: local
|
||||
pipeline:
|
||||
stages:
|
||||
- module: glossary
|
||||
- module: grammar
|
||||
glossaries: [party]
|
||||
7
examples/prompt-edit/glossary.yml
Normal file
7
examples/prompt-edit/glossary.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
party:
|
||||
entries:
|
||||
- id: jesters
|
||||
name: Jesters
|
||||
category: faction
|
||||
description: A traveling group of performers.
|
||||
aliases: [Jester]
|
||||
23
examples/prompt-edit/prompts.yml
Normal file
23
examples/prompt-edit/prompts.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
profiles:
|
||||
- id: local
|
||||
endpoint: http://localhost:11434/v1
|
||||
model: example-model
|
||||
api_key_required: false
|
||||
collections:
|
||||
audita:
|
||||
prompts:
|
||||
- id: modules.grammar.proposal
|
||||
messages:
|
||||
- role: system
|
||||
content: Correct only clearly supported grammatical errors.
|
||||
- role: user
|
||||
content: |
|
||||
{{ .ProposalContract }}
|
||||
{{ .HardeningPolicy }}
|
||||
{{ .TranscriptDescriptionBlock }}
|
||||
Glossary: {{ .GlossaryJSON }}
|
||||
Transcript: {{ .SectionJSON }}
|
||||
output:
|
||||
format: json
|
||||
validation_mode: json_schema
|
||||
schema_path: correction_set.v1.json
|
||||
9
examples/prompt-edit/transcript.json
Normal file
9
examples/prompt-edit/transcript.json
Normal file
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"speaker": "Narrator",
|
||||
"start": 0,
|
||||
"end": 2,
|
||||
"text": "The gestures gather beside the stage."
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user