Authorization notice. AI Engineer Notebooks is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forAn AI engineer or tech lead who keeps changing prompts or swapping models and cannot tell whether quality went up or down.
The problemPrompt and model edits fix one case and quietly break others, and nobody measures the change.
The outcomeA repeatable eval run that compares a candidate prompt or model to the current one and flags regressions.
What you need first
- A Google account to open Colab notebooks
- A free Groq API key from console.groq.com (no credit card needed)
- The key saved as a Colab secret, as the setup notebook describes
- Basic Python and comfort reading API responses
Steps
- Open 02-evals-basics/01-measuring-outputs.ipynb and build metrics on a small task before you change anything.
- Run 04-evals/02-llm-as-judge.ipynb to set up a judge prompt and check its agreement with human labels.
- Open 04-evals/03-regression-evals.ipynb and run the suite on your current prompt to record a baseline.
- Change the prompt or model, run the same suite again, and compare the two results.
- Block the change if any tracked metric drops below the baseline.
Prompt for your agent
Using the repo calmrocks/ai-engineer-notebooks, run the regression eval in 04-evals/03-regression-evals.ipynb on <placeholder prompt file> before and after a change. Expected output: a table of baseline and candidate scores per metric. Verify that the judge's agreement with human labels was checked before you trust its scores.
Caveat. The regression notebook teaches the pattern of evals as CI, so wiring it into your own pipeline is up to you and the README does not cover that setup.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for calmrocks/ai-engineer-notebooks and "Catch quality regressions before a prompt or model change ships"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer