Compositional prompting is an emerging approach in AI that aims to harness the power of language models to compose primitive concepts into more sophisticated ideas and behaviours. By carefully designing prompts that guide models like ChatGPT to combine basic elements in specific ways, we can unlock greater flexibility, generalization, and reasoning capabilities. Let's dive into how this technique works and explore some practical applications and examples.

Encouraging Composition of Primitives

The key to compositional prompting is presenting the language model with a set of fundamental building blocks or primitives relevant to the task at hand. These could be logical operators,