A recipe for building evaluations to measure and improve Claude's accuracy on a task, covering code-based, human, and model-based grading.
- Python 3.9+
- Jupyter (
pip install jupyterlaborpip install notebook) - An Anthropic API key
-
Clone the repo:
git clone https://github.com/atanus1502/building-evals.git cd building-evals -
Install Jupyter if you don't already have it:
pip install jupyterlab
The notebook installs its own dependency (
anthropic) in its first cell, so no separaterequirements.txtis needed.
- Set your API key as an environment variable (or enter it when prompted in the notebook):
export ANTHROPIC_API_KEY=your-api-key-here - Launch Jupyter:
jupyter lab building_evals.ipynb
- Run the cells in order from top to bottom.