Amoozyar AI فارسی
← Back to blog
- 2 min read promptsreasoningLLM

Few-shot, chain-of-thought and prompt chaining: techniques that really work

A prompt leading through three connected steps to a check mark

Good prompting isn’t magic. A few simple techniques, studied by researchers, explain most of the difference between a weak answer and a strong one.

1. Few-shot prompting: show, don’t just tell

With GPT-3 in 2020, researchers showed that a model can figure out a task from a few examples placed in the prompt, with no extra training.

Turn each sentence into a polite request. “Send the file.” → “Could you please send the file?” “Fix the bug.” → “Would you mind fixing the bug?” “Call me later.” →

The model continues the pattern. Use it when you care about format and style.

2. Chain-of-thought: let it think out loud

A 2022 finding: when examples show the reasoning steps before the answer, the model imitates them and gets more complex questions right. You can often trigger the same effect with a simple instruction such as “Let’s think step by step.”

Use it for math, logic, planning and anything with several steps.

3. Prompt chaining: split big jobs

Instead of one giant request, break the task into steps and feed each result into the next:

  1. “List the main points of this report.”
  2. “Using those points, write a one-page summary for executives.”
  3. “Turn the summary into three bullet points for a slide.”

You can check each step, and you don’t need to be an expert to do it.

4. System prompts and retrieval

Reasoning models

Since late 2024, some models are trained to produce a step-by-step analysis themselves before giving a final answer. On a set of math olympiad qualifying problems, one such model scored 83% where GPT-4o scored 13%. The cost: they use more computing power per question, so they’re slower and pricier.

Which technique when?

Further reading: the Wikipedia article on large language models.