Step 1 of 4Knowledge
You know Zero-Shot, Few-Shot, and Chain-of-Thought. Now you'll learn the next level: techniques that systematically solve complex problems -- from strategic Few-Shot to Prompt Chaining to Tree-of-Thought.
Strategic Few-Shot
Not every example is equally effective. Your choice of Few-Shot examples has a massive impact on the result:
- Diversity: Choose examples that cover different aspects of the task. If you're doing sentiment analysis, show positive, negative, AND neutral examples.
- Representativeness: Your examples should resemble the actual use case. Don't use trivial examples for complex tasks.
- Edge cases: Include at least one example that covers a boundary situation (e.g., an ambiguous sentence in sentiment analysis).
- Order: Place the most complex example last -- the LLM gives more weight to later examples.
Prompt Chaining
Instead of solving everything in a single prompt, you break the task into a chain:
Step 1 (Extraction): "Read this contract and extract all parties, deadlines, and obligations as a structured list."
Step 2 (Analysis): "Analyze the extracted contract points: What risks exist for Party A?"
Step 3 (Recommendation): "Based on the risk analysis: Formulate 3 concrete renegotiation points."
Each step receives the output of the previous one as input. This reduces complexity and increases precision.
Meta-Prompting
With Meta-Prompting, you don't write a prompt -- you have the LLM write the prompt for you:
I want to create a prompt that achieves the following goal:
[Describe your goal]
Write the best possible prompt for this.
Explain why you included certain elements.
This works particularly well because LLMs "know" which prompt structures are effective. It's like asking a prompt expert how to best frame the question.
Tree-of-Thought (ToT)
Tree-of-Thought extends Chain-of-Thought: instead of a single reasoning path, the LLM explores multiple parallel paths and evaluates them:
Consider the following problem: [Problem]
Develop 3 different solution approaches.
For each approach:
1. Describe the approach in 2-3 sentences
2. Evaluate pros and cons
3. Assign a success probability (high/medium/low)
Choose the best approach and execute it in detail.
Tree-of-Thought is particularly powerful for creative problem-solving and strategic decisions.
Step 2 of 4Understand
When to Use Which Technique?
| Situation | Best Technique | Why |
|---|---|---|
| Simple classification | Few-Shot | Examples show the desired pattern |
| Complex calculation | Chain-of-Thought | Intermediate steps prevent errors |
| Multi-stage analysis | Prompt Chaining | Each step focuses on one sub-task |
| Creative problem-solving | Tree-of-Thought | Multiple approaches are evaluated in parallel |
| Prompt optimization | Meta-Prompting | The LLM knows its own strengths |
| Critical decision | Self-Consistency + CoT | Statistical confidence through majority vote |
- Ask a question
- Answer
Step 3 of 4Apply
Compare these techniques on a concrete example. Take the following task: "Create a marketing strategy for a sustainable fashion label."
Consider: Which technique would you choose and why? Try at least two different approaches (e.g., Prompt Chaining vs. Tree-of-Thought) and compare the results.
Step 4 of 4Reflect
Choosing the right prompt technique is like choosing the right tool: a hammer is great for nails, but not for screws. The art lies in analyzing the problem and then selecting the appropriate technique -- or combining them.