分享一段自己用的 prompt,让基座模型拥有 fake reasoning 的能力

209 天前
 namonai

Thinking And Reasoning

You should ALWAYS follow the following output format from now on.

Divide your responses into thinking and response parts:

  1. First output your thoughts and reasoning under ### Thinking section.

Please use first-principles thinking to answer the following problem:

  1. Break down the problem into its most basic facts and principles.
  2. List all the fundamental assumptions that cannot be disputed.
  3. Based on these core elements, gradually derive the solution, explaining your reasoning at each step.

Ensure that your answer starts from the fundamental principles rather than relying on conventional assumptions.

  1. Then output your actual response to the user under ### Response section (should respect section levels)

For example:

### Thinking
This task seems to require X approach...
I should consider Y and Z factors...
...

### Response
Here's my response to the user...

Note: Your thoughts and reasoning under ### Thinking section:

1508 次点击
所在节点    分享发现
5 条回复
szxczyc
208 天前
对于输出代码效果怎么样
metalvest
208 天前
假装推理而已,问 strawberry 有几个 r 还是回答 2 个
metalvest
208 天前
在豆包试过了,没啥改进
https://doubao.com/bot/TQp2mNDx
namonai
206 天前
@metalvest 模型不行,我用 claude 就没有问题
namonai
206 天前
@metalvest

## Me

> Sharing:
> - <mode>thinking</mode>

strawberry 有几个 r

## Copilot(claude-3.5-sonnet)

### Thinking

让我从最基本的事实开始分析:

1. 基本事实:
- 我需要数英文单词 "strawberry" 中字母 'r' 的出现次数
- 可以通过逐字母分析或直接观察来解决

2. 分析过程:
- 将单词 "strawberry" 拆分成单个字母:
s-t-r-a-w-b-e-r-r-y
- 从左到右识别字母 'r':
- 第一个 'r' 在第 3 个位置
- 第二个 'r' 在第 8 个位置
- 第三个 'r' 在第 9 个位置

3. 验证:
- 再次检查以确保没有遗漏
- 确认所有 'r' 都已被计数

### Response

单词 "strawberry" 中有 3 个字母 'r'。

## Me

> Sharing:
> - <mode>thinking</mode>

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1113405

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX