Remove confidence scoring and refine correction prompts
This commit is contained in:
@@ -36,19 +36,6 @@ func resolveSettings(c *Config, r *ck.Resolution) error {
|
||||
base := ck.Keys("pipeline", "stages").Index(i)
|
||||
defaultNames(r, base.Key("glossaries"), &item.Glossaries, c.Glossaries, "inherit root glossaries", glossaries)
|
||||
defaultNames(r, base.Key("protected_terms"), &item.ProtectedTerms, c.ProtectedTerms, "inherit root protection", protection)
|
||||
threshold := ck.Keys("thresholds", item.Module)
|
||||
var value float64
|
||||
switch item.Module {
|
||||
case "glossary":
|
||||
value = c.Thresholds.Glossary
|
||||
case "homophones":
|
||||
value = c.Thresholds.Homophones
|
||||
case "spoken_word":
|
||||
value = c.Thresholds.SpokenWord
|
||||
case "grammar":
|
||||
value = c.Thresholds.Grammar
|
||||
}
|
||||
ck.Default(r, base.Key("confidence_threshold"), &item.ConfidenceThreshold, value, "inherit module threshold", threshold)
|
||||
llm := base.Key("llm")
|
||||
rootLLM := ck.Keys("llm")
|
||||
proposal := llm.Key("proposal_profile")
|
||||
|
||||
Reference in New Issue
Block a user