Skip to content
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

Adding evals for retries/re-asking and simple validation #7

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

0xqt
Copy link

@0xqt 0xqt commented Apr 18, 2024

taking a crack at #4, this adds evals around simple validation and re-asking utilizing validation + max_retries

as I am a newbie in this context, one general question I had around writing these eval tests: what are best practices for handling the inherent potential non-determinism in the results? For example, even with something simple like the QuestionAnswerNoEvil example, a model like sonnet seems to only correctly raise the ValidationError 50% of the time. Does using something like @pytest.mark.repeat with some minimum number of passes make sense for this?

@0xqt 0xqt marked this pull request as ready for review April 18, 2024 07:52
@jxnl
Copy link
Contributor

jxnl commented Apr 18, 2024

i think this is great! lets figure out how to solve that sonnet issue seperately, but knowing the uppercase example is useful once we hit the mistral examples

@jxnl jxnl merged commit ce53701 into instructor-ai:main Apr 18, 2024
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.

2 participants