Skip to content

Conversation

@wkukka1
Copy link
Collaborator

@wkukka1 wkukka1 commented Jul 8, 2025

Updates:

  • Updated prompt_text to be able to act as a standalone prompt
  • refactored the promptfoo config files to use prompts: instead of scenarios
  • updated promptfoo_test_runner to use prompt_text arg

@wkukka1 wkukka1 requested a review from Rolland-He July 8, 2025 19:48
Copy link
Collaborator

@Rolland-He Rolland-He left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @wkukka1, nice work! The code changes look good to me. As for the promptfoo updates, it’s a bit tricky to trace the diff. From what I see, they refactor config files from scenarios: to prompts:, which meets the goal. So good overall!

@wkukka1 wkukka1 requested a review from david-yz-liu July 9, 2025 13:55
Copy link
Contributor

@david-yz-liu david-yz-liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wkukka1 nice work; I left some inline comments. Please also update the remote tests (to have a list of file prompts).

README.md Outdated
| `--submission_type` | Type of submission (from `arg_options.FileType`) ||
| `--prompt` | Pre-defined prompt name or file path to custom prompt file |**|
| `--prompt_text` | Additional string text prompt that can be fed to model. |** |
| `--prompt_text` | Additional string text prompt that can be fed to model or standalone prompt. |** |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good to update the documentation here, but let's split this up. (1) here, just say "String prompt"; (2) expanding on the ** note below, say that if both --prompt and --prompt_text are provided, the prompt text argument is appended to the file contents (or something to that effect).

Similar comment for the help message as well.


prompt_content = ""

prompt = {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think these changes are necessary. The only place the variable prompt is used is in the image scope, and that branch already defines prompt explicitly.

@wkukka1 wkukka1 requested a review from david-yz-liu July 9, 2025 17:39
@david-yz-liu david-yz-liu merged commit 624d7f4 into MarkUsProject:main Jul 10, 2025
2 checks passed
wkukka1 added a commit to wkukka1/ai-autograding-feedback that referenced this pull request Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants