Skip to content

uninformative error when unneeded ellipses are passed to solver #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
simonpcouch opened this issue Apr 22, 2025 · 1 comment
Open

Comments

@simonpcouch
Copy link
Collaborator

If a scoring function has no ... and an argument is passed to the solver:

> chores_eval()
Using model = "claude-3-7-sonnet-latest".
✔ Solving [3s]                                                     
✖ Scoring [15ms]
Error in `fn()`:
! unused argument (solver_chat = <environment>)
@simonpcouch
Copy link
Collaborator Author

This is pretty easy to get to with model_graded_qa() too. With:

are_task <-
  Task$new(
  dataset = are,
  solver = generate(),
  scorer = model_graded_qa(
    chat_anthropic(model = "claude-3-7-sonnet-latest"), 
    partial_credit = TRUE
  ),
  name = "An R Eval"
)

I see:

Error in `purrr::map_chr()`:
ℹ In index: 1.
Caused by error:
! All unnamed arguments must be length 1

as there's no scorer_chat = .

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

No branches or pull requests

1 participant