Remove confidence scoring and refine correction prompts

This commit is contained in:
2026-11-11 17:05:52 +00:00
parent bbf89bb4f5
commit d155bf4cb3
92 changed files with 448 additions and 786 deletions

View File

@@ -44,7 +44,6 @@ func (f *fakeLLMClient) CompleteStructured(ctx context.Context, req contracts.St
SegmentReference: item["id"].(int),
OriginalText: item["original_text"].(string),
CorrectedText: item["corrected_text"].(string),
Confidence: item["confidence"].(float64),
})
}
return contracts.StructuredCompletionResponse{}, nil
@@ -84,7 +83,6 @@ func TestGrammarModuleValidatorChain(t *testing.T) {
"proposal_shape",
"no_effect",
"original_text_presence",
"confidence_threshold",
"protected_terms",
"non_empty_resulting_segment",
"editorial_review",
@@ -101,7 +99,7 @@ func TestGrammarModuleProposeMapsCorrectionsAndWritesDiagnostics(t *testing.T) {
responses: []map[string]any{
{
"corrections": []map[string]any{
{"id": 1, "original_text": "hello ,world", "corrected_text": "Hello, world", "confidence": 0.93},
{"id": 1, "original_text": "hello ,world", "corrected_text": "Hello, world"},
},
},
},