AI engineering glossary · Prompt context engineering

What is least-to-most prompting?

Least-to-most prompting: A technique that first asks the model to break a hard problem into simpler sub-questions, then solves them in order, feeding earlier answers into later ones. It helps when the test problem is harder than the examples shown.

Level: advancedTopic: Prompt context engineering

Least-to-most prompting: an example

A long word problem is split into 'How many boxes per truck?', then 'How many trucks?', then the final total.

Related terms

More Prompt context engineering terms

Where you learn it

Least-to-most 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.