GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — braintrust-sdk-python/examples/evals at main · braintrustdata/braintrust-sdk-python

Expand file tree

/

evals

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

evals

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
eval_example.py
eval_example.py
 
 
pyproject.toml
pyproject.toml
 
 
simple_eval.py
simple_eval.py
 
 

README.md

Outline

Evals

Two minimal Eval() examples:

  • simple_eval.py — the smallest possible eval: hardcoded data, a regex task, a constant scorer.
  • eval_example.py — a richer scorer that uses the trace argument to fetch and inspect the spans recorded for each row (configuration, span hierarchy, inputs/outputs, metadata).

Run

Install the standalone bt CLI and run from this directory:

export BRAINTRUST_API_KEY="YOUR_API_KEY"

uv sync
bt eval simple_eval.py
bt eval eval_example.py

The second example is async, so the scorer prints span info to stdout as the eval runs.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.