Skip to content

Tidy comments, remove serve.py, sharpen teacher prompt#2

Merged
danielbusnz merged 3 commits into
mainfrom
setfit-onnx-export
May 29, 2026
Merged

Tidy comments, remove serve.py, sharpen teacher prompt#2
danielbusnz merged 3 commits into
mainfrom
setfit-onnx-export

Conversation

@danielbusnz

Copy link
Copy Markdown
Owner

Why

Cleanup follow-ups after PR #1 merged: a couple of comments had gone stale,
serve.py was an unbuilt stub, and the teacher prompt under-encoded the
taxonomy's tie-break rules (which risks inconsistent training labels).

What

  • Fix stale comments: calibrate_temperature's search range ([0.05, 20] ->
    [0.5, 20.0]) and threshold_analysis's hard-coded "124-row holdout".
  • Remove serve.py (a docstring + TODO, imported by nothing; Aegis runs the
    model in-process via ONNX) and its now-unused serve deps extra.
  • Make the teacher prompt mirror docs/taxonomy.md: state the
    agent>memory>integration>find_action>chat priority as the residual tie-break,
    make the memory source rule explicit, cover implied multi-step under agent,
    and strip disfluency before classifying.

Test plan

uv run ruff check clean, unittest discover -s tests 13 pass.

calibrate_temperature said the search range was [0.05, 20]; it is
[0.5, 20.0]. threshold_analysis hard-coded "124-row holdout"; use the
actual count. Drop a few export_onnx labels that restated the next call.
It was a docstring and a TODO, nothing imported it, and Aegis runs the
model in-process via ONNX. Drop the serve optional-deps extra with it.
State the agent>memory>integration>find_action>chat priority as the
residual tie-break, make the memory source rule explicit, cover implied
multi-step under agent, and strip disfluency before classifying.
@danielbusnz danielbusnz merged commit 0a0ead0 into main May 29, 2026
2 checks passed
@danielbusnz danielbusnz deleted the setfit-onnx-export branch May 29, 2026 16:30
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