Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use prompt errors to improve the prompting #12

Open
turian opened this issue Jul 12, 2023 · 1 comment
Open

Use prompt errors to improve the prompting #12

turian opened this issue Jul 12, 2023 · 1 comment

Comments

@turian
Copy link

turian commented Jul 12, 2023

Let's say a generated prompt gives an error on a test label.

What I sometimes do manually is I ask GPT4 to explain its reasoning, and argue that the correct label should have been FOO.

When it concedes that it was wrong, I then ask it to rewrite the prompt so that it would have gotten this test label correct.

That would be another approach, that is iterative, rather than just randomly picking 10 prompts.

This could be extended further, a little bit based upon the idea of genetic algorithms:

  1. Take the initial prompt, run it, find the errors.
  2. Pick 10 random errors and ask it to rewrite the prompt based upon each.
  3. Ask it to combine different prompts.
  4. Iterate
@mshumer
Copy link
Owner

mshumer commented Jul 13, 2023

Feel free to implement something like this, happy to merge in the PR! This makes a lot of sense.

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

No branches or pull requests

2 participants