feat:优化timing门控逻辑,减少消耗,提高速度
This commit is contained in:
27
prompts/en-US/hippo_topic_analysis.prompt
Normal file
27
prompts/en-US/hippo_topic_analysis.prompt
Normal file
@@ -0,0 +1,27 @@
|
||||
[Historical Topic Title List] (titles only, no specific content):
|
||||
{history_topics_block}
|
||||
[End of Historical Topic Title List]
|
||||
|
||||
[Current Chat Log] (each message has an index before it for later reference):
|
||||
{messages_block}
|
||||
[End of Current Chat Log]
|
||||
|
||||
Please complete the following tasks:
|
||||
**Identify topics**
|
||||
1. Identify one or more ongoing topics in the [Current Chat Log];
|
||||
2. Messages in the [Current Chat Log] may be related to historical topics, or they may be completely unrelated;
|
||||
3. Determine whether the topics in the [Historical Topic Title List] appear in the [Current Chat Log]. If they do, directly use that historical topic title string;
|
||||
|
||||
**Select messages**
|
||||
1. For each topic (whether new or historical), select a list of message indices from the numbered messages above that are strongly related to that topic;
|
||||
2. For each topic, use one sentence to clearly describe the event that is happening. It must include time (approximate is fine), people, the main event, and the theme, ensuring accuracy and distinction;
|
||||
|
||||
Please first output a short piece of reasoning explaining what topics exist, which are not included in the historical topics, which are included in the historical topics, and why;
|
||||
Then strictly output the topics involved in the [Current Chat Log] in JSON format as follows:
|
||||
[
|
||||
{{
|
||||
"topic": "topic",
|
||||
"message_indices": [1, 2, 5]
|
||||
}},
|
||||
...
|
||||
]
|
||||
22
prompts/en-US/hippo_topic_summary.prompt
Normal file
22
prompts/en-US/hippo_topic_summary.prompt
Normal file
@@ -0,0 +1,22 @@
|
||||
Please summarize the following chat record segment based on the topic and extract the following information:
|
||||
|
||||
**Topic**: {topic}
|
||||
|
||||
**Requirements**:
|
||||
1. Keywords: extract keywords related to the topic and return them as a list (3-10 keywords)
|
||||
2. Summary: provide a plain-text summary of this segment (50-200 words). Requirements:
|
||||
- Carefully retell the event and the chat content;
|
||||
- Highlight the development process and the result of the event;
|
||||
- Summarize around the central topic;
|
||||
- Extract the key information points in the topic, and keep them concise and clear.
|
||||
|
||||
Please return in JSON format as follows:
|
||||
{{
|
||||
"keywords": ["keyword1", "keyword2", ...],
|
||||
"summary": "summary content"
|
||||
}}
|
||||
|
||||
Chat record:
|
||||
{original_text}
|
||||
|
||||
Please return JSON directly and do not include any other content.
|
||||
27
prompts/ja-JP/hippo_topic_analysis.prompt
Normal file
27
prompts/ja-JP/hippo_topic_analysis.prompt
Normal file
@@ -0,0 +1,27 @@
|
||||
【過去の話題タイトル一覧】(タイトルのみ、具体的な内容は含まない):
|
||||
{history_topics_block}
|
||||
【過去の話題タイトル一覧ここまで】
|
||||
|
||||
【今回のチャット記録】(各メッセージの前に番号があり、後で参照するために使う):
|
||||
{messages_block}
|
||||
【今回のチャット記録ここまで】
|
||||
|
||||
以下のタスクを完了してください:
|
||||
**話題の識別**
|
||||
1. 【今回のチャット記録】に含まれる進行中の話題を 1 つ以上識別する;
|
||||
2. 【今回のチャット記録】中のメッセージは、過去の話題に関係している場合もあれば、まったく無関係な場合もある;
|
||||
3. 【過去の話題タイトル一覧】の話題が【今回のチャット記録】に現れているか判断し、現れている場合はその過去の話題タイトル文字列をそのまま使う;
|
||||
|
||||
**メッセージの選択**
|
||||
1. 各話題(新規話題または過去話題)について、上記の番号付きメッセージからその話題と強く関係するメッセージ番号一覧を選ぶ;
|
||||
2. 各話題について、何が起きているのかを 1 文で明確に説明すること。時間(おおまかで可)、人物、主な出来事、テーマを必ず含め、正確で区別しやすい内容にする;
|
||||
|
||||
まず短い思考を出力し、どんな話題があるか、どれが過去話題に含まれず、どれが過去話題に含まれているか、そしてその理由を説明してください;
|
||||
その後、【今回のチャット記録】に含まれる話題を次の JSON 形式で厳密に出力してください:
|
||||
[
|
||||
{{
|
||||
"topic": "話題",
|
||||
"message_indices": [1, 2, 5]
|
||||
}},
|
||||
...
|
||||
]
|
||||
22
prompts/ja-JP/hippo_topic_summary.prompt
Normal file
22
prompts/ja-JP/hippo_topic_summary.prompt
Normal file
@@ -0,0 +1,22 @@
|
||||
以下の話題に基づいて、チャット記録の一部を要約し、次の情報を抽出してください:
|
||||
|
||||
**話題**:{topic}
|
||||
|
||||
**要件**:
|
||||
1. キーワード:話題に関連するキーワードを抽出し、リスト形式で返す(3〜10 個)
|
||||
2. 要約:この会話部分の平文要約を行う(50〜200 文字)。要件:
|
||||
- 起こった出来事とチャット内容を丁寧に言い換える;
|
||||
- 出来事の展開過程と結果を重点的に示す;
|
||||
- この話題という中心を軸に要約する;
|
||||
- 話題内の重要情報を抽出し、簡潔で明確にする。
|
||||
|
||||
JSON 形式で次のように返してください:
|
||||
{{
|
||||
"keywords": ["キーワード1", "キーワード2", ...],
|
||||
"summary": "要約内容"
|
||||
}}
|
||||
|
||||
チャット記録:
|
||||
{original_text}
|
||||
|
||||
JSON のみを直接返し、ほかの内容は含めないでください。
|
||||
27
prompts/zh-CN/hippo_topic_analysis.prompt
Normal file
27
prompts/zh-CN/hippo_topic_analysis.prompt
Normal file
@@ -0,0 +1,27 @@
|
||||
【历史话题标题列表】(仅标题,不含具体内容):
|
||||
{history_topics_block}
|
||||
【历史话题标题列表结束】
|
||||
|
||||
【本次聊天记录】(每条消息前有编号,用于后续引用):
|
||||
{messages_block}
|
||||
【本次聊天记录结束】
|
||||
|
||||
请完成以下任务:
|
||||
**识别话题**
|
||||
1. 识别【本次聊天记录】中正在进行的一个或多个话题;
|
||||
2. 【本次聊天记录】的中的消息可能与历史话题有关,也可能毫无关联。
|
||||
2. 判断【历史话题标题列表】中的话题是否在【本次聊天记录】中出现,如果出现,则直接使用该历史话题标题字符串;
|
||||
|
||||
**选取消息**
|
||||
1. 对于每个话题(新话题或历史话题),从上述带编号的消息中选出与该话题强相关的消息编号列表;
|
||||
2. 每个话题用一句话清晰地描述正在发生的事件,必须包含时间(大致即可)、人物、主要事件和主题,保证精准且有区分度;
|
||||
|
||||
请先输出一段简短思考,说明有什么话题,哪些是不包含在历史话题中的,哪些是包含在历史话题中的,并说明为什么;
|
||||
然后严格以 JSON 格式输出【本次聊天记录】中涉及的话题,格式如下:
|
||||
[
|
||||
{{
|
||||
"topic": "话题",
|
||||
"message_indices": [1, 2, 5]
|
||||
}},
|
||||
...
|
||||
]
|
||||
22
prompts/zh-CN/hippo_topic_summary.prompt
Normal file
22
prompts/zh-CN/hippo_topic_summary.prompt
Normal file
@@ -0,0 +1,22 @@
|
||||
请基于以下话题,对聊天记录片段进行概括,提取以下信息:
|
||||
|
||||
**话题**:{topic}
|
||||
|
||||
**要求**:
|
||||
1. 关键词:提取与话题相关的关键词,用列表形式返回(3-10个关键词)
|
||||
2. 概括:对这段话的平文本概括(50-200字),要求:
|
||||
- 仔细地转述发生的事件和聊天内容;
|
||||
- 重点突出事件的发展过程和结果;
|
||||
- 围绕话题这个中心进行概括。
|
||||
- 提取话题中的关键信息点,关键信息点应该简洁明了。
|
||||
|
||||
请以JSON格式返回,格式如下:
|
||||
{{
|
||||
"keywords": ["关键词1", "关键词2", ...],
|
||||
"summary": "概括内容"
|
||||
}}
|
||||
|
||||
聊天记录:
|
||||
{original_text}
|
||||
|
||||
请直接返回JSON,不要包含其他内容。
|
||||
Reference in New Issue
Block a user