Remove confidence scoring and refine correction prompts
This commit is contained in:
@@ -6,10 +6,9 @@ import (
|
||||
|
||||
// CorrectionProposal is the base proposal emitted by correction modules.
|
||||
type CorrectionProposal struct {
|
||||
TargetSegmentID int `json:"id"`
|
||||
OriginalText string `json:"original_text"`
|
||||
CorrectedText string `json:"corrected_text"`
|
||||
Confidence float64 `json:"confidence"`
|
||||
TargetSegmentID int `json:"id"`
|
||||
OriginalText string `json:"original_text"`
|
||||
CorrectedText string `json:"corrected_text"`
|
||||
}
|
||||
|
||||
// ProposalMetadata is framework-enriched execution metadata for a proposal.
|
||||
@@ -37,9 +36,6 @@ func (p CorrectionProposal) Validate() error {
|
||||
if p.OriginalText == "" {
|
||||
return fmt.Errorf("proposal original_text must not be empty")
|
||||
}
|
||||
if p.Confidence < 0.0 || p.Confidence > 1.0 {
|
||||
return fmt.Errorf("proposal confidence must be between 0.0 and 1.0")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user