Improve prompt roles and correction repair context
This commit is contained in:
@@ -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
|
||||
|
||||
17
examples/local/repair-candidate.json
Normal file
17
examples/local/repair-candidate.json
Normal 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."
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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."}]
|
||||
|
||||
Reference in New Issue
Block a user