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

docs out of date #929

Open
rustam-e opened this issue May 7, 2023 · 0 comments
Open

docs out of date #929

rustam-e opened this issue May 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@rustam-e
Copy link

rustam-e commented May 7, 2023

Describe the bug

cods at https://github.com/openai/evals/blob/main/docs/custom-eval.md are out of date:

  1. the sample in the loop is an array so instead of
                   {"role": "system", "content": sample["problem"], "name": "example_user"},
                   {"role": "system", "content": sample["answer"], "name": "example_assistant"},
               ]
           else:
               prompt += [{"role": "user", "content": sample["problem"]}]```

the code should be:

                prompt += [
                    {"role": "system", "content": sample[0]["content"], "name": "example_user"},
                    {"role": "system", "content": sample[1]["content"], "name": "example_assistant"},
                ]
            else:
                prompt += [{"role": "user", "content": sample[0]["content"]}]
  1. the check_sampled_text function doesn't exist after 64fb72a

To Reproduce

  1. try running code in https://github.com/openai/evals/blob/main/docs/custom-eval.md

Code snippets

No response

OS

macOs

Python version

Python 3.10

Library version

1.0.3.post1

@rustam-e rustam-e added the bug Something isn't working label May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant