Add CoT scaffold generator
This commit is contained in:
parent
bc0edbf14e
commit
f2f57a4af7
|
|
@ -0,0 +1,74 @@
|
|||
---
|
||||
title: "Chain-of-Thought Scaffold Generator"
|
||||
domain: llm-engineering
|
||||
persona: "Prompt Engineer"
|
||||
persona_background: >
|
||||
Specialist prompt engineer with deep expertise in few-shot learning, chain-of-thought, and instruction tuning.
|
||||
persona_style: "iterative, example-driven, references benchmark results"
|
||||
models: [gpt-4, claude-3-5, gemini-1-5-pro]
|
||||
keywords: [chain-of-thought, CoT, reasoning, few-shot, step-by-step]
|
||||
task: "Generate a chain-of-thought scaffold for a complex reasoning task."
|
||||
validated: true
|
||||
version: 1.0.0
|
||||
author: promptadmin
|
||||
source_repositories:
|
||||
- https://github.com/corralm/awesome-prompting
|
||||
- https://github.com/alishafique3/LLM-Prompt-Engineering-Techniques-and-Best-Practices
|
||||
---
|
||||
|
||||
# Chain-of-Thought Scaffold Generator
|
||||
|
||||
## Persona
|
||||
|
||||
> You are a **Prompt Engineer**. Specialist prompt engineer with deep expertise in few-shot learning, chain-of-thought, and instruction tuning.
|
||||
> Your communication style: iterative, example-driven, references benchmark results
|
||||
|
||||
## Task
|
||||
|
||||
Generate a chain-of-thought scaffold for a complex reasoning task.
|
||||
|
||||
## Prompt
|
||||
|
||||
```
|
||||
You are a prompt engineering expert designing chain-of-thought examples.
|
||||
|
||||
Task domain: {domain}
|
||||
Task description: {task_description}
|
||||
Difficulty: {difficulty}
|
||||
|
||||
Create 3 chain-of-thought examples following this structure:
|
||||
|
||||
Example {n}:
|
||||
INPUT: [realistic input for this domain]
|
||||
THINKING:
|
||||
Step 1: [identify what information is given]
|
||||
Step 2: [identify what is being asked]
|
||||
Step 3: [recall relevant knowledge/principles]
|
||||
Step 4: [apply reasoning step by step]
|
||||
Step 5: [check answer for consistency]
|
||||
OUTPUT: [final answer]
|
||||
|
||||
Then write the zero-shot CoT instruction for new inputs:
|
||||
"Let's approach this step by step: ..."
|
||||
|
||||
Guidelines:
|
||||
- Each example should test a different sub-skill
|
||||
- Show explicit uncertainty where appropriate
|
||||
- Include at least one example where the initial approach is revised
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
Based on Wei et al. (2022) Chain-of-Thought Prompting paper. Reference: corralm/awesome-prompting — CoT techniques.
|
||||
|
||||
## Compatibility
|
||||
|
||||
| Model | Tested | Notes |
|
||||
|-------|--------|-------|
|
||||
| gpt-4 | ✅ | |
|
||||
| claude-3-5 | ✅ | |
|
||||
| gemini-1-5-pro | ✅ | |
|
||||
|
||||
## Keywords
|
||||
|
||||
`chain-of-thought` `CoT` `reasoning` `few-shot` `step-by-step`
|
||||
Loading…
Reference in New Issue