AI engineering glossary · Prompt context engineering

What is complexity-based prompting?

Complexity-based prompting: A technique that chooses, as examples for a step-by-step prompt, those with the longest reasoning chains, and prefers the most common answer among longer sampled chains. The idea is that more complex demonstrations lead to better multi-step reasoning.

Level: advancedTopic: Prompt context engineering

Complexity-based prompting: an example

From 10 candidate examples, pick the 4 that need the most reasoning steps to put into the prompt.

Related terms

More Prompt context engineering terms

Where you learn it

Complexity-based prompting 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.