Add prompt baseline test to check lisa_test_writer prompt quality#4365
Open
Add prompt baseline test to check lisa_test_writer prompt quality#4365
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a prompt evaluation framework under .github/prompts/eval/ to baseline and score the quality of outputs produced by lisa_test_writer.prompt.md, using JSONL-defined cases and an LLM-as-judge scoring rubric.
Changes:
- Added
eval_runner.pyto run prompt eval cases against a configurable LLM provider and emit scored results. - Added
cases.jsonlwith baseline evaluation prompts + rubrics across multiple capability dimensions. - Added documentation (
README.md) describing setup, usage, scoring, and case design.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
.github/prompts/eval/scripts/eval_runner.py |
Implements the runner (provider selection, generation, judging, scoring, output). |
.github/prompts/eval/cases.jsonl |
Defines baseline eval cases and rubrics used by the runner. |
.github/prompts/eval/README.md |
Documents how to run/evolve the prompt evaluation framework and interpret results. |
modify PR review process to add some standard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add prompt baseline test to check "lisa_test_writer.prompt.md" prompt quality.
Threshold default is 70% for cloud large model. 65% for local small model.
Can also used to verified other prompt to help generate lisa test.
Related Issue
Type of Change
Checklist
Test Validation
Key Test Cases:
Impacted LISA Features:
Tested Azure Marketplace Images:
Test Results