Skip to content

Honor zero demo limits in optimizer harvesting - #118

Open
arthurianresolve wants to merge 1 commit into
krypticmouse:mainfrom
arthurianresolve:fix-zero-demo-limit
Open

arthurianresolve wants to merge 1 commit into
krypticmouse:mainfrom
arthurianresolve:fix-zero-demo-limit

Conversation

@arthurianresolve

Copy link
Copy Markdown

Summary of Fix

  • Return no demos when max_per_predictor is zero, before selecting an eligible span.
  • Add a regression test for the shared selector used by MIPROv2 and BootstrapFewShot.

Fixes #116

Testing

  • cargo test -p dspy-rs --no-default-features --lib optimizer::harvest::tests --locked — 4 passed.
  • cargo test -p dspy-rs --no-default-features --test test_bootstrap_fewshot --locked — 6 passed.
  • git diff --check — passed.

AI Disclosure

  • OpenAI Codex assisted with implementation, tests, and PR drafting.
  • all fixes and drafts have been human-architected, human-directed and human-reviewed before publication of PR requests.

This branch has not been deployed

No deployments
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.

[BUG][Low]- Zero demo limit selects a bootstrapped demo

1 participant