规则参考 · 一致性

近似重复的指令

  • near_duplicate_instruction
  • 此示例中的提示
  • 一致性
  • 阶段 · 冗余检测

触发条件: 两个句子的词语重合度 ≥ 80%。

近似重复出现在提示词由多个片段拼装或由多人编辑时。措辞上的细微差别(“客户的姓名”和“客户姓名”)可能让模型以为这是两条不同的要求。

用最准确的措辞把它们合并成一句。

示例提示词以及引擎的消息、解释和修复,按引擎返回的原样以英文显示。

触发它的示例

Draft a reply to the support ticket below. Include the customer's name, order number, and delivery date in the reply. Include the customer name, order number and delivery date in your reply. Return plain text.

<ticket>
{{ticket}}
</ticket>

提示 Two sentences say nearly the same thing.

为什么重要。 Near-duplicates waste tokens, and small wording differences between them can read as conflicting requirements.

修复。 Merge them into one sentence.

质量 97/100 · 51 个 token · 1 个发现

修复后的版本

Draft a reply to the support ticket below. Include the customer's name, order number, and delivery date. Return plain text.

<ticket>
{{ticket}}
</ticket>

质量 100/100(+3)· 34 个 token · 0 个发现

已被修复解决

  • near_duplicate_instruction: Two sentences say nearly the same thing.

本页的分数、token 数(GPT-4.1 分词器)和发现,都是在构建网站时由引擎计算的。

它如何影响分数

每个发现都会从 100 分中扣除固定的分数:严重 30,警告 10,提示 3。此规则计入一致性维度。完整公式参见评分模型。

在同一流水线阶段检查

全部 20 条规则 →