Prompt Techniques

Overview of Prompt Techniques

In this article, you will get to know the most important named prompt techniques, from zero-shot to ReAct, each with an example, guidance on when each technique pays off, and where hermine.ai already handles it for you.

Why Multiple Techniques?

The more complex or specific your task, the more the language model benefits from tailored instructions. Zero-Shot is sufficient for standard questions, Few-Shot ensures format fidelity, Chain-of-Thought enables transparent reasoning, and ReAct integrates external tools. Each method addresses typical weaknesses (hallucinations, calculation errors, lack of contextual knowledge) in its own way.

Zero-Shot Prompting

When? Ideal for general tasks without nuances: classification, translation, retrieving facts. No examples needed; the model uses its world knowledge.

Example: Classifying Customer Feedback

Classify the sentence as satisfied, neutral, or dissatisfied:
"The service today was truly excellent."

Answer

satisfied

Few-Shot Prompting

When? Provides the model with 2 to 5 demonstrations to reliably capture patterns and output format. Especially helpful for fine distinctions or strict format requirements, for example when customer service needs to sort feedback into a fixed grid.

Example: Sentiment (4 Shots)

Assign the sentiment (very satisfied | satisfied | neutral | dissatisfied | very dissatisfied)
"Great service." → very satisfied
"It was okay." → neutral
"Very disappointing." → very dissatisfied
"I'd gladly come back." → very satisfied
"Met my expectations." →

Answer

satisfied

Tip: Proven few-shot patterns are perfect candidates for a prompt template: the examples stay fixed, only the new input text is swapped out.

Chain-of-Thought (CoT)

When? "Think step by step" forces the model to articulate intermediate steps, significantly reducing error rates in math or logic tasks.

Example: Calculation

Calculate 645 × 47. Think step by step and show each intermediate step.

Answer (shortened)

1) 645 × 50 = 32,250
2) 645 × 3  = 1,935
3) 32,250 − 1,935 = 30,315
=> Result: 30,315

Note: With reasoning models carrying the Thinking badge, the instruction "Think step by step" is unnecessary, as these models think internally. CoT is most useful with Instant models.

Step-Back Prompting

When? In two phases: first general considerations, then the detailed question. This activates background knowledge and improves complex analysis tasks, for example in HR.

Example

  1. Prompt A
Which factors influence employee retention in mid-sized companies?
  1. Prompt B (with answer from A)
Apply these factors to our sales team (12 people, extensive travel, two resignations last quarter) and suggest three concrete measures.

Self-Consistency

When? Run the same prompt multiple times, collect different reasoning paths, and choose the most frequent result, which is statistically the most accurate.

Example: Majority Vote (Sketch)

  1. Prompt "Calculate 23²" → Model answers (529, 529, 530, 529, ...)
  2. Majority value 529 is accepted.

In hermine.ai, you can achieve the same effect simply by sending the prompt several times and comparing the answers. Or choose a reasoning model with thinking duration Comprehensive right away, which weighs multiple solution paths internally.

Tree of Thoughts (ToT)

When? Branches Chain-of-Thought into multiple paths, useful for planning or optimization problems where different solution paths exist.

Mini Example: Budget Allocation
Task: distribute a €50,000 marketing budget across trade fair, online advertising, and content.
The model drafts several allocation scenarios (trade-fair-heavy, digital-first, balanced), evaluates each against the goals (leads, visibility, cost per contact), and recommends the best path.

The same applies here: reasoning models with the Thinking badge handle this weighing of multiple paths internally, so a manual ToT prompt is rarely needed.

ReAct & Tool Use

When? ReAct (Reasoning + Acting) combines thinking steps with actions: the model reasons, uses a tool (e.g., a web search), evaluates the result, and continues thinking. This gives it access to current knowledge and external capabilities.

In hermine.ai, you don't need to prompt ReAct yourself: tools like the web search or knowledge bases handle this automatically. The model decides on its own when to call a tool. For an overview of all available tools, see Tools Overview. For multi-step web research with a sourced report, there is also Deep Research.

Technique Selection at a Glance

Goal Best Technique
Quick, general answer Zero-Shot
Format & nuances Few-Shot
Transparent logic Chain-of-Thought
Complex analysis Step-Back
Highest accuracy Self-Consistency
Evaluate alternatives Tree of Thoughts
Current info, external tools ReAct / tool use

Conclusion

With these techniques, you can flexibly adapt the behavior of the language model to your requirements, from simple classification to agent-driven web research. Experiment, combine as needed, and continuously build your personal prompt toolbox.

Read More: How to combine techniques into multi-step workflows is shown in Advanced Prompting. When a thinking model pays off is explained in Understanding and Using Reasoning Models.

Was this page helpful?