Improve prompt roles and correction repair context

This commit is contained in:
2026-11-11 17:42:30 +00:00
parent cf1fbe5748
commit f42573f8b0
23 changed files with 256 additions and 40 deletions

View File

@@ -30,7 +30,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 \
--var 'RepairRequestJSON={"proposal_ref":1,"correction":{"id":1,"original_text":" ","corrected_text":""},"findings":[]}'
--var "RepairRequestJSON=$(cat repair-candidate.json)"
```
These previews render supplied data without inference. The native command help

View File

@@ -0,0 +1,17 @@
{
"proposal_ref": 1,
"correction": {
"id": 1,
"original_text": "uh",
"corrected_text": ""
},
"original_segment_text": "uh hello",
"corrected_segment_text": " hello",
"findings": [
{
"validator": "editorial_review",
"reason": "llm_rejected",
"explanation": "Removing only 'uh' leaves unwanted leading whitespace."
}
]
}

View File

@@ -1 +1 @@
[{"correction_index":1,"original_text":"not open","corrected_text":"open","original_segment_text":"The door is not open.","corrected_segment_text":"The door is open."}]
[{"correction_index":1,"speaker":"Narrator","original_text":"not open","corrected_text":"open","original_segment_text":"The door is not open.","corrected_segment_text":"The door is open."}]