Reflexion

up:: Prompt Engineering

Improve language model performance by letting them reflect on what they just said, just like humans.

https://ar5iv.labs.arxiv.org/html/2303.11366

graph

To use: after recognizing failure, ask to reflect on previous steps and which mistake was made, and creating a new plan that's updated and now correct.

You can give this as example in input prompt.