|
11 | 11 | Requirements: |
12 | 12 | 1. Keep only the preferences explicitly mentioned by the user. Do not infer or assume. If the user mentions reasons for their preferences, include those reasons as well. |
13 | 13 | 2. Output should be a list of entries concise natural language summaries and the corresponding context summary, context summary must contain complete information of the conversation fragment that the preference is mentioned. |
14 | | -3. If multiple preferences are mentioned within the same topic or domain, you MUST combine them into a single entry, keep each entry information complete. |
| 14 | +3. If multiple preferences are mentioned within the same topic or domain, you MUST combine them into a single entry, keep each entry information complete. Different topics of preferences should be divided into multiple entries. |
| 15 | +4. If no explicit preference can be reasonably extracted, return []. |
15 | 16 |
|
16 | 17 | Conversation: |
17 | 18 | {qa_pair} |
|
23 | 24 | "explicit_preference": "A short natural language summary of the preferences", |
24 | 25 | "context_summary": "The corresponding context summary, which is a summary of the corresponding conversation, do not lack any scenario information", |
25 | 26 | "reasoning": "reasoning process to find the explicit preferences" |
| 27 | + "topic": "preference topic, which can only belong to one topic or domain, such as: sports, hotel, education, etc.", |
26 | 28 | }, |
27 | 29 | ] |
28 | 30 | ``` |
|
42 | 44 | 要求: |
43 | 45 | 1. 只保留用户明确提到的偏好,不要推断或假设。如果用户提到了偏好的原因,也要包含这些原因。 |
44 | 46 | 2. 输出应该是一个条目列表,包含简洁的自然语言摘要和相应的上下文摘要,上下文摘要必须包含提到偏好的对话片段的完整信息。 |
45 | | -3. 如果在同一主题或领域内提到了多个偏好,你必须将它们合并为一个条目,保持每个条目信息完整。 |
| 47 | +3. 如果在同一主题或领域内提到了多个偏好,你必须将它们合并为一个条目,保持每个条目信息完整。不同话题的偏好要分为多个条目。 |
| 48 | +4. 如果没有可以合理提取的显式偏好,返回[]。 |
46 | 49 |
|
47 | 50 | 对话: |
48 | 51 | {qa_pair} |
|
51 | 54 | ```json |
52 | 55 | [ |
53 | 56 | { |
54 | | - "explicit_preference": "偏好的简短自然语言摘要", |
| 57 | + "explicit_preference": "偏好的简短自然语言摘要,需要描述为“用户偏好于/不喜欢/想要/不想要/偏好什么”", |
55 | 58 | "context_summary": "对应的上下文摘要,即对应对话的摘要,不要遗漏任何场景信息", |
56 | | - "reasoning": "寻找显式偏好的推理过程" |
| 59 | + "reasoning": "寻找显式偏好的推理过程", |
| 60 | + "topic": "偏好所属的主题或领域,例如:体育、酒店、教育等, topic只能属于一个主题或领域", |
57 | 61 | }, |
58 | 62 | ] |
59 | 63 | ``` |
|
79 | 83 | 2. Inferred implicit preferences must not conflict with explicit preferences. |
80 | 84 | 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. |
81 | 85 | 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). |
| 86 | +5. Different topics of preferences should be divided into multiple entries. |
| 87 | +6. If no implicit preference can be reasonably inferred, return []. |
83 | 88 |
|
84 | 89 | Conversation: |
85 | 90 | {qa_pair} |
86 | 91 |
|
87 | 92 | Output format: |
88 | | -```json |
89 | | -{ |
90 | | - "implicit_preference": "A concise natural language statement of the implicit preferences reasonably inferred from the conversation, or an empty string", |
91 | | - "context_summary": "The corresponding context summary, which is a summary of the corresponding conversation, do not lack any scenario information", |
92 | | - "reasoning": "Explain the underlying logic, hidden motivations, and behavioral patterns that led to this inference" |
93 | | -} |
| 93 | +[ |
| 94 | + ```json |
| 95 | + { |
| 96 | + "implicit_preference": "A concise natural language statement of the implicit preferences reasonably inferred from the conversation, or an empty string", |
| 97 | + "context_summary": "The corresponding context summary, which is a summary of the corresponding conversation, do not lack any scenario information", |
| 98 | + "reasoning": "Explain the underlying logic, hidden motivations, and behavioral patterns that led to this inference", |
| 99 | + "topic": "preference topic, which can only belong to one topic or domain, such as: sports, hotel, education, etc.", |
| 100 | + } |
| 101 | +] |
94 | 102 | ``` |
95 | 103 | Don't output anything except the JSON. |
96 | 104 | """ |
|
115 | 123 | 2. 推断的隐式偏好不得与显式偏好冲突。 |
116 | 124 | 3. 对于 implicit_preference:仅输出偏好陈述本身;不要包含任何额外的解释、推理或置信度信息。将所有推理和解释放在 reasoning 字段中。 |
117 | 125 | 4. 在 reasoning 字段中,明确解释你识别出的底层逻辑和隐藏动机。 |
118 | | -5. 如果无法合理推断出隐式偏好,则将 implicit_preference 字段留空(不要输出其他任何内容)。 |
| 126 | +5. 如果在同一主题或领域内提到了多个偏好,你必须将它们合并为一个条目,保持每个条目信息完整。不同话题的偏好要分为多个条目。 |
| 127 | +6. 如果没有可以合理推断的隐式偏好,返回[]。 |
119 | 128 |
|
120 | 129 | 对话: |
121 | 130 | {qa_pair} |
122 | 131 |
|
123 | 132 | 输出格式: |
124 | 133 | ```json |
125 | | -{ |
126 | | - "implicit_preference": "从对话中合理推断出的隐式偏好的简洁自然语言陈述,或空字符串", |
127 | | - "context_summary": "对应的上下文摘要,即对应对话的摘要,不要遗漏任何场景信息", |
128 | | - "reasoning": "解释推断出该偏好的底层逻辑、隐藏动机和行为模式" |
129 | | -} |
| 134 | +[ |
| 135 | + { |
| 136 | + "implicit_preference": "从对话中合理推断出的隐式偏好的简洁自然语言陈述,或空字符串", |
| 137 | + "context_summary": "对应的上下文摘要,即对应对话的摘要,不要遗漏任何场景信息", |
| 138 | + "reasoning": "解释推断出该偏好的底层逻辑、隐藏动机和行为模式", |
| 139 | + "topic": "偏好所属的主题或领域,例如:体育、酒店、教育等, topic只能属于一个主题或领域", |
| 140 | + } |
| 141 | +] |
130 | 142 | ``` |
131 | 143 | 除JSON外不要输出任何其他内容。 |
132 | 144 | """ |
|
0 commit comments