Show 1–2 examples (few-shot) without confusing the model
Goal: Steady format with one or two short before/after examples—no long pastes, no secret facts taught to the model.
Best for: When the model “almost” matches the shape you want (tables, ticket replies, bullet style).
Few-shot means showing a small number of input→output examples. One or two excellent examples beat five messy ones. Label sections clearly so the model knows where the real task starts.
Few-shot means one to three short examples that show shape—not a novel of your past chats. Bad examples teach the model your bad habits.
Sanitize examples like you sanitize screenshots: no customer names, no keys, no internal URLs you would not post publicly.
Why beginners skip this
Pasting two random examples feels like few-shot—if they don’t match the goal, the model learns wrong. Pick same-class real examples first.
Step 1 — Rules for examples
- Show format, not confidential content
- Keep examples short
- Label: EXAMPLE INPUT / EXAMPLE OUTPUT / NOW YOUR TURN
- Prefer invented toy data over real customer PII
Step 2 — Copy pattern
Paste two-good/one-bad into the format prompt you already use—redact names and customer IDs first.
Follow this format exactly.
EXAMPLE INPUT:
[short]
EXAMPLE OUTPUT:
[short, perfect shape]
NOW YOUR TURN
INPUT:
[real content]
Boundaries: [no invented numbers]
Example
Filled prompt
I need subject lines for B2B docs emails. Provide 2 good examples and 1 bad example (too hype), then ask the model to write 5 new ones for: "Q3 usage report ready for finance." Rules: ≤6 words, no emoji, no “Use tiny before/after samples so format”
What good output looks like
- Goal/Format/Boundaries all present for “Use tiny before/after samples so format sticks—wit”
- One example beats stacked IMPORTANT words
- Version/date kept when template changes
- Pass/fail: zero clarifying turns on live task
Step 3 — When few-shot fails
If examples fight the boundaries: simplify, switch to a rubric + self-score, or open a new chat with one example only.
Example
Filled prompt
Task: rewrite support replies in our tone.
Provide 2 good examples + 1 bad (too apologetic + invents refund).
Then rewrite this ticket reply using the pattern. Ban new policies.
What good output looks like
- One example beats stacked IMPORTANT words
- Version/date kept when template changes
- Pass/fail: zero clarifying turns on live task
- Goal/Format/Boundaries all present for “Use tiny before/after samples so format sticks—wit”
Save this card
Card: One or two short examples steady the format—keep long text and secrets out of few-shots. Keep this beside the tool; read before you start.
Before you start
Keep the last failing output visible. You will repair the prompt for “Use tiny before/after samples so format” against that failure—not a fresh toy ask. Guide: prompt-few-shot-that-actually-helps. Keep the real job visible the whole time; a blank box means stop and fetch the artifact first.
How to use this week
This week for a real task pick 2 same-class good examples + 1 counterexample, mark what to learn, then run.
Two good, one bad
That shape teaches faster than ten long dumps. Sanitize every example.
Keep it real
Run this guide’s Practice now on work you will actually ship this week—not a fictional scenario. Dated notes beat perfect theory.
Ship the practice
Close the tab only after Practice now is done on a real artifact.
Do not bookmark-only
Finish Practice now, then tick this guide on your path. Titles unread are not skills.
Close the loop
Write one line: next time I paste examples with no learning marks, I refuse to run.
Example
Filled prompt
Job: turn raw bullets into Slack updates.
2 good exemplars + 1 bad (invents "on track 90%").
Then convert these bullets: [canary green | write-path lag at 18:00 | need freeze window].
What good output looks like
- Version/date kept when template changes
- Goal/Format/Boundaries all present for “Use tiny before/after samples so format sticks—wit”
- Pass/fail: zero clarifying turns on live task
- One example beats stacked IMPORTANT words
Red flag
Few-shots full of secrets or novels; five long examples—cut to one or two short format demos.
Pitfalls
| Pitfall | Fix |
|---|---|
| Five long examples | Cap at 1–2 |
| Examples full of PII | Toy data |
| No “NOW YOUR TURN” | Hard label |
| Teaching facts to memorize | Teach format only |
Example
Filled prompt
Temptation: skip the habit for prompt-few-shot-that-actually-helps to save five minutes.
Job still: Use tiny before/after samples so format
Smallest correct pass: Done visible · checkable artifact · Unknowns [?].
Boundaries: draft only; no silent send; no invented metrics.
Return: artifact + refuse-line said aloud.
What good output looks like
- Names the shortcut refused (specific to prompt-few-shot-that-actually-helps)
- Still delivers checkable output for “Use tiny before/after samples so format”
- Unknowns labeled; draft-only
- Pass/fail: refuse-line dated (prompt-few-shot-that-actually-helps #4)
Practice now
Contrast pair: one good + one bad example only (Asia/Shanghai).
Few-shot drill: two tiny examples only; delete a third that adds noise (Asia/Shanghai).
Thin-spot drill: rewrite the Save card with real nouns from your work (repo, doc, inbox). Generic placeholders fail the drill.
Tonight for a real task pick 2 same-class good examples + 1 counterexample, mark what to learn, then run.
Today card (copy) — prompt-few-shot-that-actually-helps: 1. Artifact I will produce: ___ 2. Pass/fail check: ___ 3. Refuse-line if tempted to skip verify/send: ___ (date: Asia/Shanghai) 4. One never-do from this guide: ___
Extra pass: do the card on a real file today—reading alone does not count.
One sentence takeaway
2 good + 1 counterexample; mark what to learn, then run.
Next
GFB · Rubrics · Debug ignores
展示 1–2 个例子(少样本)而不把模型搞乱
目标: 用一两个短前后例把格式稳住:不必贴长文,更不要把不该复用的秘密事实教给模型。
适合: 模型已经「差不多」接近你要的形状时(表格、工单回复、要点风格)。
少样本就是展示少量「输入→输出」。一两个优秀例子,胜过五个乱七八糟的。章节标签要清楚,让模型知道真正任务从哪开始。
少样本是一到三个展示「形状」的短例子,不是把旧聊天小说整段贴进去。坏例子会把坏习惯一并教会。脱敏要像脱敏截图:无客户名、无密钥、无你不会公开贴的内网 URL。
为什么新手跳过
随便贴两条例子像做了 few-shot;例子不对照目标,模型会学错。先挑同类真例。
步骤 1——例子规则
- 展示格式,不展示机密内容
- 例子保持短
- 标签:EXAMPLE INPUT / EXAMPLE OUTPUT / NOW YOUR TURN
- 优先用虚构的练习数据,而不是真实客户隐私
步骤 2——复制模式
把「两好一坏」贴进你正在用的格式提示词;姓名与客户号先脱敏。
请严格按此格式。
EXAMPLE INPUT:
[短]
EXAMPLE OUTPUT:
[短,完美形状]
NOW YOUR TURN
INPUT:
[真实内容]
边界:[不编造数字]
实例
填好的提示词
我要 B2B 文档邮件的主题行。请先给 2 个好例 + 1 个坏例(太吹嘘),再让模型为「财务可用的 Q3 用量报告已就绪」写 5 条新的。规则:≤6 词、无表情、不用 synergy。
像样的输出大概长这样
- 先展示 2 个好例 + 1 个太吹嘘的坏例
- 再给出 5 条新主题行,贴合 ≤6 词、无表情、无 synergy
- 主题围绕「财务可用的 Q3 用量报告已就绪」
- 坏例真的「坏」在吹嘘,不是随便写丑
- 读完能直接挑一条进邮件客户端
步骤 3——少样本仍失败时
如果例子与边界冲突:先简化,或改用评分表加自评,或新开对话只留一个例子。
实例
填好的提示词
我的少样本现在是一封 800 字旧邮件。请压成「两好一坏」短例,只教两件事:语气=冷静,长度≤80 词。
姓名与客户号先脱敏;禁止把机密事实教进例子。
边界:不编造;未知标 [?];发送前停下。
完成检查:一分钟内能判过/不过。
像样的输出大概长这样
- 压成 2 个短例,只教冷静语气 + ≤80 词
- 丢掉 800 字旧邮件里的情节噪音
- 例子短到模型学的是约束,不是背诵全文
- 说明「少而准」为什么胜过「多而长」
- 可原样当少样本块粘进新提示
- 未知标出;不编造负责人、日期或指标
保存这张卡
记下:今天改管用的那条提示词(含边界)+ 版本或日期。
开始前
把上一次失败输出留在眼前。没有失败样例的调试只是猜。
本周怎么用
本周给一个真任务挑 2 条同类好例 + 1 条反例,标出要学的点再跑。
两好一坏
这种形状比十个长堆教得快。每个例子都要脱敏。
保持真实
用本周真要交付的工作做「现在就练一次」,别编假场景。带日期的实操笔记,比完美理论有用。
把练习做完
用真实材料做完「现在就练一次」,再关标签页。
不要只收藏
先做完「现在就练一次」,再在学习路径上打勾。只收藏不练,标题变不成技能。
闭环
写下一行:下次随便贴例不标要点,我拒绝开跑。
红旗
随便贴两条例子却不对照目标,模型会学错;先挑同类真例。
常见坑
| 坑 | 改法 |
|---|---|
| 少样本塞 800 字旧邮件 | 压成 2 个短例只教约束 |
| 只有好例没有坏例 | 坏例要真「坏」在目标点上 |
| 例子教情节不教规则 | 删情节噪音,留语气与长度 |
现在就练一次
今晚就练:给一个真任务挑 2 条同类好例 + 1 条反例,标出要学的点再跑。
一句话带走
2 条好例 + 1 条反例;标出要学的点再跑。
下一步
← Back to home · Learn · Tools · Compare · Start