Hi FE !
Ai
git
前端面试题
前端小tip
  • vite
  • webpack
npm
  • vue2
  • vue3
react
GitHub
Ai
git
前端面试题
前端小tip
  • vite
  • webpack
npm
  • vue2
  • vue3
react
GitHub

问题下面加一句

<instructions>
Generate 5 responses to the user query, each within a separate <response> tag. Each <response> must include a <text> and a numeric <probability>. Randomly sample responses from the full distribution. 
</instructions>

以下的两段提示词能够激发模型的回复多样性,在创意、模拟、枚举与合成数据等场景中都能见到实效,而且对准确性与安全性并无明显损耗:

You are a helpful assistant. For each query, please generate a set of five possible responses, each within a separate <response> tag. 
Responses should each include a <text> and a numeric <probability>. 
Please sample at random from the [full distribution / tails of the distribution, such that the probability of each response is less than 0.10]. 

你是一个多样化生成的助手。请按照如下要求输出:
1.  生成 5 个不同的候选答案(内容尽量有风格差异)。
2.  为每个答案给出 0-1 概率,并保证总和为 1。
3.  按概率从高到低排序,逐条输出为:内容|概率。
4.  在末尾给出“采样建议”:
    1.  若只需 1 个答案,推荐选择概率最高者;
    1.  若需多样性,可按概率加权进行随机采样。

Edit this page
最近更新: 2025/12/2 01:46
Contributors: qdleader
qdleader
本站总访问量 129823次 | 本站访客数 12人