Suggest Prompt Improvements feature (idea from Singapore) #7
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.
As many suggested at the EMNLP conference, it would be "cool" if prompterator could also generate prompt suggestions from the labeled data. Well, now, its closer to reality:
After the user labels some data (80%), the
Suggest Prompt Improvements
feature kicks in and sends a request to OpenAI with the labeled dataset and original prompt, prompting it to give suggestions for improvements (focusing on theBad
examples).Apologies for the hardcoded constants and low code quality; if we want, we can turn this into a proper feature of production quality but for now I kept it as a fun, weekend project.