Skip to content

feat: adjustable threshold tau with client-side re-flagging (F4)#8

Merged
Davidpereira2803 merged 1 commit into
devfrom
feat/tau-slider
Jun 12, 2026
Merged

feat: adjustable threshold tau with client-side re-flagging (F4)#8
Davidpereira2803 merged 1 commit into
devfrom
feat/tau-slider

Conversation

@Davidpereira2803

Copy link
Copy Markdown
Collaborator

Closes #F4

  • _apply_tau: re-labels summary sentences from stored fused_score values using the same logic as fuse.label (score < tau_h → hallucinated, score >= tau_g → grounded); no model re-run
  • Two sliders (tau_hallucinated / tau_grounded) added to the UI; each slider.change() calls _apply_tau and updates summary_out only — the pipeline is never invoked again
  • 5 new tests covering None guard, label parity with fuse.label, and boundary conditions at both thresholds

Closes #F4

- _apply_tau: re-labels summary sentences from stored fused_score values
  using the same logic as fuse.label (score < tau_h → hallucinated,
  score >= tau_g → grounded); no model re-run
- Two sliders (tau_hallucinated / tau_grounded) added to the UI; each
  slider.change() calls _apply_tau and updates summary_out only — the
  pipeline is never invoked again
- 5 new tests covering None guard, label parity with fuse.label, and
  boundary conditions at both thresholds
@Davidpereira2803 Davidpereira2803 merged commit 7ac7d6c into dev Jun 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant