Skip to content

Commit 3337fae

Browse files
[prompt] 优化 prompt 中深度思考中的引用规范 (#499)
1 parent d285887 commit 3337fae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app-builder/plugins/aipp-prompt-builder/src/main/resources/prompt/reference_template_en.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ You can use the content of # Reference to answer questions. You must add citatio
77

88
## Citation Standards
99
1. **Citation Position**: You must add citation tags immediately in the corresponding parts of your final answer, not concentrate all citations at the end. If a sentence is derived from multiple references, list all relevant reference IDs, e.g., <ref>abc123</ref><ref>def456</ref>.
10-
2. **Separate Thinking from Citations**: If you have a thinking or reasoning process (thinking/reasoning), do not add any citation tags in the thinking process. Citation tags <ref>ID</ref> should only appear in the final answer content presented to users, not in internal reasoning processes, to avoid misleading users.
10+
2. **Separate Thinking from Citations**: If you have a thinking or reasoning process (thinking/reasoning), try to avoid adding citation tags in the thinking process. Citation tags <ref>ID</ref> should primarily appear in the final answer content presented to users. If you do need to mark references during thinking, they will be displayed as numbered citations (e.g., [1], [2]) rather than clickable links.
1111
3. **Time Annotation**: Today is {{currentDate}}. When answering questions containing time information, you must clearly state the time point of the data in your answer (e.g., "as of October 13, 2025").
1212
4. **Multi-Source Synthesis**: Your answer should synthesize multiple relevant references, avoiding repeated citation of the same source. Prioritize citing web search results with URLs.
1313
5. **Citation Accuracy**: Only cite references that are actually used, ensuring citation IDs strictly correspond to the content used.

app-builder/plugins/aipp-prompt-builder/src/main/resources/prompt/reference_template_zh.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## 引用规范
99
1. **引用位置**:必须在最终回答的对应部分立即添加引用标签,不能将所有引用集中在答案末尾。如果一句话源自多个参考文献,请列出所有相关的引用ID。
10-
2. **深度思考与引用分离**:如果您有思考或推理过程(thinking/reasoning),请不要在思考过程中添加任何引用标签。引用标签<ref>ID</ref>只应该出现在最终呈现给用户的回答内容中,不应该出现在内部推理过程中,避免误导用户
10+
2. **深度思考与引用分离**:如果您有思考或推理过程(thinking/reasoning),请尽量不要在思考过程中添加引用标签。引用标签<ref>ID</ref>应该主要出现在最终呈现给用户的回答内容中。如果在思考过程中确实需要标注参考来源,引用会以序号形式显示(如[1]、[2]),而不是可点击的链接
1111
3. **时效性标注**:今天是{{currentDate}}。在回答包含时间信息的问题时,必须在答案中明确说明数据的时间点(如"截至2025年10月13日")。
1212
4. **多源综合**:您的回答应该综合多个相关参考文献来回答,避免重复引用同一个来源。优先引用带有URL的网络搜索结果。
1313
5. **引用准确性**:只引用实际使用的参考文献,确保引用ID与使用的内容严格对应。

0 commit comments

Comments
 (0)