https://www.deeplearning.ai/the-batch/research-summary-automatic-prompt-engineer-ape/
Also related and interesting idea: https://www.reddit.com/r/AutoGPT/comments/12t7bud/comment/jh4oelk/ (given expected input-outputs, improve prompt with evolutionary algorithms to get as many as possible right outputs from inputs).
We can use the field data to improve the generation part or the filtering part.