Discover / LLM Ops & Observability
OpenAI Evals
by openaiPython
Framework for creating and running evaluations on large language models and systems.
Maturity: experimental because active but has never tagged a release. Derived from release and commit history, not a rating.
- Stars
- 19k
- Forks
- 3.0k
- Downloads / mo
- 2.5k
- Last commit
- 2026-04-14
- License
- NOASSERTION
- Open issues
- 218
Market and trust evidence
Edition not yet matchedNo exact skills.sh identity match is available for this repository. Repository adoption and freshness remain visible above; install momentum is not inferred.
Trust analysis is a screening signal, not a security warranty. Read the ranking and trust methodology.
In practice
Written by AI from this repository’s README · high confidenceWithout evals it is hard to tell how a new model version affects your specific use case.
Use it when
Use it when you want to run registry benchmarks against a model or write custom and private evals on your own data.
Not the right pick when
The maintainers state they are not accepting evals with custom code, and running evals costs API usage.
Capabilities
- registry of existing evals to run
- custom and private evals on your own data
- eval templates plus model graded YAML evals
- Completion Function Protocol for prompt chains and tool using agents
- optional logging of results to a Snowflake database
- editable install so eval changes apply immediately
Requirements
- OpenAI API key in the OPENAI_API_KEY environment variable
- Python 3.9 minimum
- Git-LFS to fetch the registry data
Cost: Needs a paid API or account
Install
Derived from the published package name in the repository, not from a model.
Video walkthroughs
Third-party YouTube uploads matched to this tool by title, channel and repository name on 2026-08-03. Not made, reviewed or endorsed by SkillPilot. View counts and publish months are as of the match date and the month is approximate. Nothing loads from YouTube until you press play.
What the repository ships
Detected from the actual files in the repository root.
Tags
README
OpenAI Evals
You can now configure and run Evals directly in the OpenAI Dashboard. Get started →
Evals provide a framework for evaluating large language models (LLMs) or systems built using LLMs. We offer an existing registry of evals to test different dimensions of OpenAI models and the ability to write your own custom evals for use cases you care about. You can also use your data to build private evals which represent the common LLMs patterns in your workflow without exposing any of that data publicly.
If you are building with LLMs, creating high quality evals is one of the most impactful things you can do. Without evals, it can be very difficult and time intensive to understand how different model versions might affect your use case. In the words of OpenAI's President Greg Brockman:
<img width="596" alt="https://x.com/gdb/status/1733553161884127435?s=20" src="https://github.com/openai/evals/assets/35577566/ce7840ff-43a8-4d88-bb2f-6b207410333b">
Setup
To run evals, you will need to set up and specify your OpenAI API key. After you obtain an API key, specify it using the OPENAI_API_KEY environment variable. Please be aware of the costs associated with using the API when running evals. You can also run and create evals using Weights & Biases.
Minimum Required Version: Python 3.9
Downloading evals
Our evals registry is stored using Git-LFS. Once you have downloaded and installed LFS, you can fetch the evals (from within your local copy of the evals repo) with:
cd evals
git lfs fetch --all
git lfs pull
This will populate all the pointer files under evals/registry/data.
You may just want to fetch data for a select eval. You can achieve this via:
git lfs fetch --include=evals/registry/data/${your eval}
git lfs pull
Making evals
If you are going to be creating evals, we suggest cloning this repo directly from GitHub and installing the requirements using the following command:
pip install -e .
Using -e, changes you make to your eval will be reflected immediately without having to reinstall.
Optionally, you can install the formatters for pre-committing with:
pip install -e .[formatters]
Then run pre-commit install to install pre-commit into your git hooks. pre-commit will now run on every commit.
If you want to manually run all pre-commit hooks on a repository, run pre-commit run --all-files. To run individual hooks use pre-commit run <hook_id>.
Running evals
If you don't want to contribute new evals, but simply want to run them locally, you can install the evals package via pip:
pip install evals
You can find the full instructions to run existing evals in run-evals.md and our existing eval templates in eval-templates.md. For more advanced use cases like prompt chains or tool-using agents, you can use our Completion Function Protocol.
We provide the option for you to log your eval results to a Snowflake database, if you have one or wish to set one up. For this option, you will further have to specify the SNOWFLAKE_ACCOUNT, SNOWFLAKE_DATABASE, SNOWFLAKE_USERNAME, and SNOWFLAKE_PASSWORD environment variables.
Writing evals
We suggest getting starting by:
- Walking through the process for building an eval:
build-eval.md - Exploring an example of implementing custom eval logic:
custom-eval.md - Writing your own completion functions:
completion-fns.md - Review our starter guide for writing evals: Getting Started with OpenAI Evals
Please note that we are currently not accepting evals with custom code! While we ask you to not submit such evals at the moment, you can still submit model-graded evals with custom model-graded YAML files.
If you think you have an interesting eval, please open a pull request with your contribution. OpenAI staff actively review these evals when considering improvements to upcoming models.
FAQ
Do you have any examples of how to build an eval from start to finish?
- Yes! These are in the
examplesfolder. We recommend that you also read throughbuild-eval.mdin order to gain a deeper understanding of what is happening in these examples.
Do you have any examples of evals implemented in multiple different ways?
- Yes! In particular, see
evals/registry/evals/coqa.yaml. We have implemented small subsets of the CoQA dataset for various eval templates to help illustrate the differences.
When I run an eval, it sometimes hangs at the very end (after the final report). What's going on?
- This is a known issue, but you should be able to interrupt it safely and the eval should finish immediately after.
There's a lot of code, and I just want to spin up a quick eval. Help? OR,
I am a world-class prompt engineer. I choose not to code. How can I contribute my wisdom?
- If you follow an existing eval template to build a basic or model-graded eval, you don't need to write any evaluation code at all! Just provide your data in JSON format and specify your eval parameters in YAML. build-eval.md walks you through these steps, and you can supplement these instructions with the Jupyter notebooks in the
examplesfolder to help you get started quickly. Keep in mind, though, that a good eval will inevitably require careful thought and rigorous experimentation!
Disclaimer
By contributing to evals, you are agreeing to make your evaluation logic and data under the same MIT license as this repository. You must have adequate rights to upload any data used in an eval. OpenAI reserves the right to use this data in future service improvements to our product. Contributions to OpenAI evals will be subject to our usual Usage Policies: https://platform.openai.com/docs/usage-policies.