AI engineering glossary · Prompt context engineering

What is reflexion?

Reflexion: A technique in which a model reviews the outcome of its earlier attempt, writes a short verbal lesson about what went wrong, and keeps it in context for the next attempt. It improves results over repeated tries without any weight updates.

Level: advancedTopic: Prompt context engineering

Reflexion: an example

After failing a coding test, the model notes 'I forgot the empty-list case' and includes that note when it retries.

Related terms

More Prompt context engineering terms

Where you learn it

Reflexion is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.