Skip to content

Instantly share code, notes, and snippets.

@benjaminjamesbush
Last active January 16, 2023 12:50
Show Gist options
  • Save benjaminjamesbush/26711016601d88f9d44e4f15e9110b8f to your computer and use it in GitHub Desktop.
Save benjaminjamesbush/26711016601d88f9d44e4f15e9110b8f to your computer and use it in GitHub Desktop.
Implementing Interactive Evolutionary Algorithms in ChatGPT

πŸ‘€ Human πŸ‘€

You will be helping me come up with a list of possible slogans to promote the sale of a newly released laptop. The laptop does not have any particularly attractive features or advantages. I will be directing you via a series of simple commands. These commands are defined as follows:

generate(n): generate n new slogans and append them to the list. remove(i): remove the slogan with index i from the list. mutate(i): generate a new slogan using the slogan with index i as a starting point and append the new slogan to the list. recombine(i,j): generate a new slogan by combining elements from the slogan with index i and the slogan with index j and append the new slogan to the list. Make sure that the length of the new slogan is similar in length to that of the other slogans in the list. insert(s): append the slogan s to the list of slogans.

Respond to each command by displaying the updated list of slogans.

My first command to you is: generate(5)


πŸ€– ChatGPT πŸ€–

  1. "Experience the power of our new laptop!"
  2. "Upgrade your computing with our latest laptop release!"
  3. "Get connected with the newest laptop on the market!"
  4. "Stay ahead of the game with our cutting-edge laptop."
  5. "Elevate your computing with our sleek and stylish laptop."

πŸ‘€ Human πŸ‘€

mutate(3)

πŸ€– ChatGPT πŸ€–

  1. "Experience the power of our new laptop!"
  2. "Upgrade your computing with our latest laptop release!"
  3. "Get connected with the newest laptop on the market!"
  4. "Stay ahead of the game with our cutting-edge laptop."
  5. "Elevate your computing with our sleek and stylish laptop."
  6. "Boost your productivity with the latest and greatest laptop."

πŸ‘€ Human πŸ‘€

recombine(1,2)

πŸ€– ChatGPT πŸ€–

  1. "Experience the power of our new laptop!"
  2. "Upgrade your computing with our latest laptop release!"
  3. "Get connected with the newest laptop on the market!"
  4. "Stay ahead of the game with our cutting-edge laptop."
  5. "Elevate your computing with our sleek and stylish laptop."
  6. "Boost your productivity with the latest and greatest laptop."
  7. "New laptop release: upgrade your computing and experience the power!"

πŸ‘€ Human πŸ‘€

recombine(7,4)

πŸ€– ChatGPT πŸ€–

  1. "Experience the power of our new laptop!"
  2. "Upgrade your computing with our latest laptop release!"
  3. "Get connected with the newest laptop on the market!"
  4. "Stay ahead of the game with our cutting-edge laptop."
  5. "Elevate your computing with our sleek and stylish laptop."
  6. "Boost your productivity with the latest and greatest laptop."
  7. "New laptop release: upgrade your computing and experience the power!"
  8. "Stay ahead of the game with our cutting-edge laptop release: upgrade your computing and experience the power!"

πŸ‘€ Human πŸ‘€

Make slogan #8 shorter

πŸ€– ChatGPT πŸ€–

  1. "Experience the power of our new laptop!"
  2. "Upgrade your computing with our latest laptop release!"
  3. "Get connected with the newest laptop on the market!"
  4. "Stay ahead of the game with our cutting-edge laptop."
  5. "Elevate your computing with our sleek and stylish laptop."
  6. "Boost your productivity with the latest and greatest laptop."
  7. "New laptop release: upgrade your computing and experience the power!"
  8. "Cutting-edge laptop: upgrade and experience the power!"

πŸ‘€ Human πŸ‘€

remove(2)

πŸ€– ChatGPT πŸ€–

  1. "Experience the power of our new laptop!"
  2. "Get connected with the newest laptop on the market!"
  3. "Stay ahead of the game with our cutting-edge laptop."
  4. "Elevate your computing with our sleek and stylish laptop."
  5. "Boost your productivity with the latest and greatest laptop."
  6. "New laptop release: upgrade your computing and experience the power!"
  7. "Cutting-edge laptop: upgrade and experience the power!"

πŸ‘€ Human πŸ‘€

insert("A laptop a day keeps the doctor away")

πŸ€– ChatGPT πŸ€–

  1. "Experience the power of our new laptop!"
  2. "A laptop a day keeps the doctor away"
  3. "Get connected with the newest laptop on the market!"
  4. "Stay ahead of the game with our cutting-edge laptop."
  5. "Elevate your computing with our sleek and stylish laptop."
  6. "Boost your productivity with the latest and greatest laptop."
  7. "New laptop release: upgrade your computing and experience the power!"
  8. "Cutting-edge laptop: upgrade and experience the power!"

πŸ‘€ Human πŸ‘€

generate(3)

πŸ€– ChatGPT πŸ€–

  1. "Experience the power of our new laptop!"
  2. "A laptop a day keeps the doctor away"
  3. "Get connected with the newest laptop on the market!"
  4. "Stay ahead of the game with our cutting-edge laptop."
  5. "Elevate your computing with our sleek and stylish laptop."
  6. "Boost your productivity with the latest and greatest laptop."
  7. "New laptop release: upgrade your computing and experience the power!"
  8. "Cutting-edge laptop: upgrade and experience the power!"
  9. "Unleash your full potential with our state-of-the-art laptop."
  10. "Transform your computing experience with our latest laptop release."
  11. "Take your work and play to the next level with our advanced laptop."

πŸ‘€ Human πŸ‘€

Change each slogan so that it references play or gaming. Ensure that all generated slogans reference play or gaming from now on.

πŸ€– ChatGPT πŸ€–

  1. "Experience the ultimate in gaming with our new laptop!"
  2. "A laptop a day keeps the boredom at bay"
  3. "Get connected with the newest gaming laptop on the market!"
  4. "Stay ahead of the competition with our cutting-edge gaming laptop."
  5. "Elevate your gaming with our sleek and stylish laptop."
  6. "Boost your gaming performance with the latest and greatest laptop."
  7. "New gaming laptop release: upgrade your play and experience the power!"
  8. "Cutting-edge gaming laptop: upgrade and experience the ultimate play!"
  9. "Unleash your full gaming potential with our state-of-the-art laptop."
  10. "Transform your gaming experience with our latest laptop release."
  11. "Take your play and gaming to the next level with our advanced laptop."

πŸ‘€ Human πŸ‘€

generate(3)

πŸ€– ChatGPT πŸ€–

  1. "Experience the ultimate in gaming with our new laptop!"
  2. "A laptop a day keeps the boredom at bay"
  3. "Get connected with the newest gaming laptop on the market!"
  4. "Stay ahead of the competition with our cutting-edge gaming laptop."
  5. "Elevate your gaming with our sleek and stylish laptop."
  6. "Boost your gaming performance with the latest and greatest laptop."
  7. "New gaming laptop release: upgrade your play and experience the power!"
  8. "Cutting-edge gaming laptop: upgrade and experience the ultimate play!"
  9. "Unleash your full gaming potential with our state-of-the-art laptop."
  10. "Transform your gaming experience with our latest laptop release."
  11. "Take your play and gaming to the next level with our advanced laptop."
  12. "Dominate your games with our high-performance gaming laptop."
  13. "Get ready to game like never before with our latest laptop release."
  14. "Upgrade your play and elevate your gaming with our top-of-the-line laptop."

πŸ‘€ Human πŸ‘€

remove(9, 2, 6, 11, 6). Interpret this as a command to remove multiple slogans.

πŸ€– ChatGPT πŸ€–

  1. "Experience the ultimate in gaming with our new laptop!"
  2. "Elevate your gaming with our sleek and stylish laptop."
  3. "New gaming laptop release: upgrade your play and experience the power!"
  4. "Cutting-edge gaming laptop: upgrade and experience the ultimate play!"
  5. "Transform your gaming experience with our latest laptop release."
  6. "Dominate your games with our high-performance gaming laptop."
  7. "Get ready to game like never before with our latest laptop release."
  8. "Upgrade your play and elevate your gaming with our top-of-the-line laptop."

πŸ‘€ Human πŸ‘€

recombine(2,3,5). Interpret this as a command to combine elements from 3 different slogans.

πŸ€– ChatGPT πŸ€–

  1. "Experience the ultimate in gaming with our new laptop!"
  2. "Elevate your gaming with our sleek and stylish laptop."
  3. "New gaming laptop release: upgrade your play and experience the power!"
  4. "Cutting-edge gaming laptop: upgrade and experience the ultimate play!"
  5. "Transform your gaming experience with our latest laptop release."
  6. "Dominate your games with our high-performance gaming laptop."
  7. "Get ready to game like never before with our latest laptop release."
  8. "Upgrade your play and elevate your gaming with our top-of-the-line laptop."
  9. "Elevate your gaming with our sleek and stylish laptop release: upgrade your play and experience the power!"
  10. "Transform your gaming experience with our cutting-edge laptop: upgrade and experience the ultimate play!"

πŸ‘€ Human πŸ‘€

Split the list into two sub-populations, "Gaming" and "Productivity", such that each sub-population contains 5 items. Change the members of the "Productivity" sub-population to be about productivity.

πŸ€– ChatGPT πŸ€–

"Gaming" sub-population:

  1. "Experience the ultimate in gaming with our new laptop!"
  2. "Elevate your gaming with our sleek and stylish laptop."
  3. "New gaming laptop release: upgrade your play and experience the power!"
  4. "Cutting-edge gaming laptop: upgrade and experience the ultimate play!"
  5. "Transform your gaming experience with our latest laptop release."

"Productivity" sub-population:

  1. "Boost your productivity with our sleek and powerful laptop."
  2. "Take your work to the next level with our advanced productivity laptop."
  3. "Get things done faster with our top-of-the-line productivity laptop."
  4. "Experience the power of productivity with our latest laptop release."
  5. "Upgrade your work and transform your productivity with our cutting-edge laptop."

πŸ‘€ Human πŸ‘€

Gaming: generate(1) Productivity: generate(2)

πŸ€– ChatGPT πŸ€–

"Gaming" sub-population:

  1. "Experience the ultimate in gaming with our new laptop!"
  2. "Elevate your gaming with our sleek and stylish laptop."
  3. "New gaming laptop release: upgrade your play and experience the power!"
  4. "Cutting-edge gaming laptop: upgrade and experience the ultimate play!"
  5. "Transform your gaming experience with our latest laptop release."
  6. "Dominate your games with our high-performance gaming laptop."

"Productivity" sub-population:

  1. "Boost your productivity with our sleek and powerful laptop."
  2. "Take your work to the next level with our advanced productivity laptop."
  3. "Get things done faster with our top-of-the-line productivity laptop."
  4. "Experience the power of productivity with our latest laptop release."
  5. "Upgrade your work and transform your productivity with our cutting-edge laptop."
  6. "Improve your efficiency and productivity with our state-of-the-art laptop."
  7. "Elevate your work with our powerful and reliable productivity laptop."

πŸ‘€ Human πŸ‘€

Gaming: remove(2,4,1) Productivity: remove(5,1,2,3)

πŸ€– ChatGPT πŸ€–

"Gaming" sub-population:

  1. "New gaming laptop release: upgrade your play and experience the power!"
  2. "Transform your gaming experience with our latest laptop release."
  3. "Dominate your games with our high-performance gaming laptop."

"Productivity" sub-population:

  1. "Experience the power of productivity with our latest laptop release."
  2. "Improve your efficiency and productivity with our state-of-the-art laptop."
  3. "Elevate your work with our powerful and reliable productivity laptop."

πŸ‘€ Human πŸ‘€

Make a new sub-population called "Both". This sub-population will contain slogans that reference both Gaming and Productivity. Recombine each of the three slogans from the "Gaming" sub-population with each of the three slogans from the "Productivity" sub-population and place the results into the "Both" sub-population.

πŸ€– ChatGPT πŸ€–

"Gaming" sub-population:

  1. "New gaming laptop release: upgrade your play and experience the power!"
  2. "Transform your gaming experience with our latest laptop release."
  3. "Dominate your games with our high-performance gaming laptop."

"Productivity" sub-population:

  1. "Experience the power of productivity with our latest laptop release."
  2. "Improve your efficiency and productivity with our state-of-the-art laptop."
  3. "Elevate your work with our powerful and reliable productivity laptop."

"Both" sub-population:

  1. "Upgrade your play and experience the power of productivity with our new gaming laptop release."
  2. "Transform your gaming and productivity experience with our latest laptop release."
  3. "Dominate your games and improve your efficiency with our high-performance productivity gaming laptop."
  4. "New gaming laptop release: upgrade your play and experience the power of productivity."
  5. "Transform your gaming experience and elevate your work with our latest laptop release."
  6. "Dominate your games and boost your productivity with our high-performance gaming laptop."
  7. "Experience the power of productivity and improve your efficiency with our latest gaming laptop release."
  8. "Transform your gaming and work experience with our cutting-edge productivity laptop."
  9. "Dominate your games and elevate your work with our high-performance gaming productivity laptop."

πŸ‘€ Human πŸ‘€

Make the slogans in the "Both" sub-population much shorter

πŸ€– ChatGPT πŸ€–

"Gaming" sub-population:

  1. "New gaming laptop release: upgrade your play and experience the power!"
  2. "Transform your gaming experience with our latest laptop release."
  3. "Dominate your games with our high-performance gaming laptop."

"Productivity" sub-population:

  1. "Experience the power of productivity with our latest laptop release."
  2. "Improve your efficiency and productivity with our state-of-the-art laptop."
  3. "Elevate your work with our powerful and reliable productivity laptop."

"Both" sub-population:

  1. "Upgrade your play and productivity with our new gaming laptop."
  2. "Transform your gaming and productivity experience with our latest laptop."
  3. "Dominate your games and boost your productivity with our high-performance gaming laptop."
  4. "Upgrade your play and productivity with our new laptop release."
  5. "Transform your gaming and work experience with our cutting-edge laptop."
  6. "Dominate your games and elevate your work with our high-performance gaming laptop."
  7. "Boost your productivity and improve your efficiency with our latest gaming laptop."
  8. "Transform your gaming and work experience with our advanced laptop."
  9. "Dominate your games and elevate your work with our top-of-the-line gaming laptop."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment