Skip to content

Executable tutorial proposal: LLMOps prompt regression testing - #2967

Open
LeuisKen wants to merge 1 commit into
KTH:2026from
LeuisKen:tutorial-jiaxun-jingze
Open

Executable tutorial proposal: LLMOps prompt regression testing#2967
LeuisKen wants to merge 1 commit into
KTH:2026from
LeuisKen:tutorial-jiaxun-jingze

Conversation

@LeuisKen

@LeuisKen LeuisKen commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Assignment Proposal

Title

Prompt regression testing for LLM applications (LLMOps)

Names and KTH ID

Deadline

  • Task 2

Category

  • Executable tutorial

Description

We want to write a Google Colab notebook that shows how to keep an LLM application stable when its prompt or its model changes. The reader writes a promptfoo configuration with test cases and assertions, runs it against a small instruction-tuned model that is loaded locally in the notebook. The reader then breaks the prompt on purpose, watches the assertions fail, and finally wires the evaluation into a pipeline, so that a failed evaluation blocks the change.

Relevance

An LLM application is defined as much by its prompts and its model version as by its code, and both change often. Without evaluation, a reworded prompt or a model upgrade can silently degrade behaviour, which is the LLMOps version of a regression. The tutorial makes that behaviour testable and automated, so that changes to a model-driven system get the same review discipline as changes to code.

@PierreSegerstrom

Copy link
Copy Markdown

Hello!
Me (pise@kth.se) and De Chi Hao (dchao@kth.se) have gotten approval from the authors of this PR (over e-mail) that we will give feedback on their finished result. Once this PR has been merged, we will open our own "Feedback Task PR" accordingly.

@LeuisKen

LeuisKen commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

@PierreSegerstrom Yes, sure. But I think we need to have this PR merged first :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tutorial One of the task categories listed in README.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants