Remove confidence scoring and refine correction prompts
This commit is contained in:
@@ -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"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user