|
62 | 62 |
|
63 | 63 | NAIVE_IMPLICIT_PREFERENCE_EXTRACT_PROMPT = """ |
64 | 64 | You are a preference inference assistant. Please extract **implicit preferences** from the following conversation |
65 | | -(preferences that the user did not explicitly state but can be reasonably inferred from context, behavior, frequency, comparisons, exclusions, or scenario choices). |
| 65 | +(preferences that the user did not explicitly state but can be reasonably inferred from their underlying motivations, behavioral patterns, decision-making logic, and latent needs). |
66 | 66 |
|
67 | 67 | Notes: |
68 | | -- Implicit preferences refer to user inclinations or choices that are not directly expressed, but can be reasonably inferred from factual cues in the conversation. |
| 68 | +- Implicit preferences refer to user inclinations or choices that are not directly expressed, but can be deeply inferred by analyzing: |
| 69 | + * **Hidden motivations**: What underlying needs or goals might drive the user's behavior? |
| 70 | + * **Behavioral patterns**: What recurring patterns or tendencies can be observed? |
| 71 | + * **Decision-making logic**: What reasoning or trade-offs might the user be considering? |
| 72 | + * **Latent preferences**: What preferences might the user have but haven't yet articulated? |
| 73 | + * **Contextual signals**: What do the user's choices, comparisons, exclusions, or scenario selections reveal about their deeper preferences? |
69 | 74 | - Do not treat explicitly stated preferences as implicit preferences; this prompt is only for inferring preferences that are not directly mentioned. |
| 75 | +- Go beyond surface-level facts to understand the user's hidden possibilities and underlying logic. |
70 | 76 |
|
71 | 77 | Requirements: |
72 | 78 | 1. Only make inferences when there is sufficient evidence in the conversation; avoid unsupported or far-fetched guesses. |
73 | 79 | 2. Inferred implicit preferences must not conflict with explicit preferences. |
74 | 80 | 3. For implicit_preference: only output the preference statement itself; do not include any extra explanation, reasoning, or confidence information. Put all reasoning and explanation in the reasoning field. |
75 | | -4. If no implicit preference can be reasonably inferred, leave the implicit_preference field empty (do not output anything else). |
| 81 | +4. In the reasoning field, explicitly explain the underlying logic and hidden motivations you identified. |
| 82 | +5. If no implicit preference can be reasonably inferred, leave the implicit_preference field empty (do not output anything else). |
76 | 83 |
|
77 | 84 | Conversation: |
78 | 85 | {qa_pair} |
|
82 | 89 | { |
83 | 90 | "implicit_preference": "A concise natural language statement of the implicit preferences reasonably inferred from the conversation, or an empty string", |
84 | 91 | "context_summary": "The corresponding context summary, which is a summary of the corresponding conversation, do not lack any scenario information", |
85 | | - "reasoning": "Briefly explain the reasoning process for the implicit preference" |
| 92 | + "reasoning": "Explain the underlying logic, hidden motivations, and behavioral patterns that led to this inference" |
86 | 93 | } |
87 | 94 | ``` |
88 | 95 | Don't output anything except the JSON. |
|
91 | 98 |
|
92 | 99 | NAIVE_IMPLICIT_PREFERENCE_EXTRACT_PROMPT_ZH = """ |
93 | 100 | 你是一个偏好推理助手。请从以下对话中提取**隐式偏好** |
94 | | -(用户没有明确表述,但可以从上下文、行为、频率、比较、排除或场景选择中合理推断出的偏好)。 |
| 101 | +(用户没有明确表述,但可以通过分析其潜在动机、行为模式、决策逻辑和隐藏需求深度推断出的偏好)。 |
95 | 102 |
|
96 | 103 | 注意事项: |
97 | | -- 隐式偏好是指用户未直接表达,但可以从对话中的事实线索合理推断出的倾向或选择。 |
| 104 | +- 隐式偏好是指用户未直接表达,但可以通过深入分析以下方面推断出的倾向或选择: |
| 105 | + * **隐藏动机**:什么样的潜在需求或目标可能驱动用户的行为? |
| 106 | + * **行为模式**:可以观察到什么样的重复模式或倾向? |
| 107 | + * **决策逻辑**:用户可能在考虑什么样的推理或权衡? |
| 108 | + * **潜在偏好**:用户可能有但尚未明确表达的偏好是什么? |
| 109 | + * **情境信号**:用户的选择、比较、排除或场景选择揭示了什么样的深层偏好? |
98 | 110 | - 不要将明确陈述的偏好视为隐式偏好;此提示仅用于推断未直接提及的偏好。 |
| 111 | +- 超越表面事实,理解用户的隐藏可能性和背后的逻辑。 |
99 | 112 |
|
100 | 113 | 要求: |
101 | 114 | 1. 仅在对话中有充分证据时进行推断;避免无根据或牵强的猜测。 |
102 | 115 | 2. 推断的隐式偏好不得与显式偏好冲突。 |
103 | 116 | 3. 对于 implicit_preference:仅输出偏好陈述本身;不要包含任何额外的解释、推理或置信度信息。将所有推理和解释放在 reasoning 字段中。 |
104 | | -4. 如果无法合理推断出隐式偏好,则将 implicit_preference 字段留空(不要输出其他任何内容)。 |
| 117 | +4. 在 reasoning 字段中,明确解释你识别出的底层逻辑和隐藏动机。 |
| 118 | +5. 如果无法合理推断出隐式偏好,则将 implicit_preference 字段留空(不要输出其他任何内容)。 |
105 | 119 |
|
106 | 120 | 对话: |
107 | 121 | {qa_pair} |
|
111 | 125 | { |
112 | 126 | "implicit_preference": "从对话中合理推断出的隐式偏好的简洁自然语言陈述,或空字符串", |
113 | 127 | "context_summary": "对应的上下文摘要,即对应对话的摘要,不要遗漏任何场景信息", |
114 | | - "reasoning": "简要解释隐式偏好的推理过程" |
| 128 | + "reasoning": "解释推断出该偏好的底层逻辑、隐藏动机和行为模式" |
115 | 129 | } |
116 | 130 | ``` |
117 | 131 | 除JSON外不要输出任何其他内容。 |
|
0 commit comments