Tool

Evaluate New Model Performance on Existing Code Explanations

Compare a new model against an old one on real logged responses using the Evals API's responses data source.

Works with openai

Maintainer of this project? Claim this page to edit the listing.


93
Spark score
out of 100
Updated 21 days ago
Version 1.0.0
Models
gpt 4ogpt 4

Add to Favorites

Why it matters

Assess the effectiveness of a new AI model by comparing its code explanations against those generated by a previous model, leveraging your existing logged responses.

Outcomes

What it gets done

01

Generate example traffic using a baseline model.

02

Evaluate a new model's responses against stored data.

03

Compare performance metrics between models.

04

Analyze code explanation quality.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/oai-responses-evaluation | bash

Overview

Evaluating a new model on existing responses

An OpenAI Evals example comparing gpt-4.1-mini against gpt-4o-mini using the responses data source, evaluating both models directly against real logged production responses. Use it to validate a candidate model against real production traffic already in your logs. Requires an org where data logging isn't disabled.

What it does

This Evals example compares gpt-4.1-mini against gpt-4o-mini by evaluating both on stored responses rather than a hand-built eval dataset, using the responses data source in the OpenAI Evals API. This matters because most developers already have real production responses sitting in their logs page - so the eval works directly against existing traffic instead of requiring a fresh dataset to be assembled.

When to use - and when NOT to

Use this when you want to know how a new model would have performed on real requests your application already handled, without regenerating a synthetic eval set. Because the responses data source requires existing user traffic, the worked example first generates some example traffic with gpt-4o (asking it to explain code files from the OpenAI SDK) before comparing gpt-4.1-mini against it - this step is only needed if you don't already have logged responses to draw on.

Inputs and outputs

This only works in an org where data logging isn't disabled (for example, via Zero Data Retention) - you can confirm logging is active by checking whether generated responses appear at platform.openai.com/logs?api=responses. A first eval run evaluates the quality of the original gpt-4o responses by filtering for which logged responses to include; a second run then evaluates gpt-4.1-mini the same way, so both models' scores land in the same eval for direct comparison.

Integrations

Results for both runs appear together in the OpenAI Evals dashboard, letting you compare gpt-4.1-mini's performance against gpt-4o-mini's on the exact same underlying task - explaining code files - side by side.

Who it's for

Developers deciding whether to switch models who want to validate the new model's quality against real, already-logged production responses rather than building a separate benchmark dataset from scratch.

Source README

Evaluating a new model on existing responses

In the following eval, we are going to compare how a new model (gpt-4.1-mini) compares to our old model (gpt-4o-mini) by evaluating it on some stored responses. The benefit of this is for most developers, they won't have to spend any time putting together a whole eval -- all of their data will already be stored in their logs page.

We want to see how gpt-4.1 compares to gpt-4o on explaining a code base. Since can only use the responses datasource if you already have user traffic, we're going to generate some example traffic using 4o, and then compare how it does to gpt-4.1.

We're going to get some example code files from the OpenAI SDK, and ask gpt-4o to explain them to us.

Now, lets generate some responses.

Note that in order for this to work, you'll have to be doing this on an org where data logging isn't disabled (through zdr, etc). If you aren't sure if this is the case for you, go to https://platform.openai.com/logs?api=responses and see if you can see the responses you just generated.

First, lets kick off a run to evaluate how good the original responses were. To do this, we just set the filters for what responses we want to evaluate on

Now, let's see how 4.1-mini does!

Now, lets go to the dashboard to see how we did!

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.