EurekaPotato commited on
Commit
91c5b8e
·
verified ·
1 Parent(s): 10e98c5

Gate short-

Browse files

answer penalty

Files changed (1) hide show
  1. scoring_engine.py +10 -4
scoring_engine.py CHANGED
@@ -82,15 +82,21 @@ class ScoringEngine:
82
  points = self.WEIGHTS['explicit_free'] * explicit_free
83
  add_evidence(points, f"Explicit Free ({points:.1f})")
84
 
85
- # Short Answers (Brevity) - reduced when user explicitly invites
86
  short_ratio = text_features.get('t3_short_ratio', 0.0)
87
  if short_ratio > 0.3:
88
- points = self.WEIGHTS['short_answers'] * short_ratio
 
 
 
89
  if intent_overrides_context:
90
- points *= 0.4 # Invitation phrases often start with "Sure"
91
  add_evidence(points, f"Brief Responses (+{points:.1f}, reduced - user invited talk)")
92
- else:
 
93
  add_evidence(points, f"Brief Responses (+{points:.1f})")
 
 
94
 
95
  # Deflection / Time Pressure
96
  deflection = text_features.get('t6_deflection', 0.0)
 
82
  points = self.WEIGHTS['explicit_free'] * explicit_free
83
  add_evidence(points, f"Explicit Free ({points:.1f})")
84
 
85
+ # Short Answers (Brevity) - only counts when there's other busy evidence
86
  short_ratio = text_features.get('t3_short_ratio', 0.0)
87
  if short_ratio > 0.3:
88
+ deflection = text_features.get('t6_deflection', 0.0)
89
+ time_pressure = text_features.get('t5_time_pressure', 0.0)
90
+ busy_context = (explicit > 0.5) or (deflection > 0.1) or (time_pressure > 0.1)
91
+
92
  if intent_overrides_context:
93
+ points = self.WEIGHTS['short_answers'] * short_ratio * 0.4
94
  add_evidence(points, f"Brief Responses (+{points:.1f}, reduced - user invited talk)")
95
+ elif busy_context:
96
+ points = self.WEIGHTS['short_answers'] * short_ratio
97
  add_evidence(points, f"Brief Responses (+{points:.1f})")
98
+ else:
99
+ details.append("Brief Responses (ignored - no busy evidence)")
100
 
101
  # Deflection / Time Pressure
102
  deflection = text_features.get('t6_deflection', 0.0)