Skip to content

Commit 9755315

Browse files
committed
feat:修改多语言prompt
1 parent 56f7184 commit 9755315

73 files changed

Lines changed: 544 additions & 929 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

prompts/en-US/action.prompt

Lines changed: 0 additions & 5 deletions
This file was deleted.

prompts/en-US/brain_action.prompt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{action_name}
2-
动作描述:{action_description}
3-
使用条件:
2+
Action description: {action_description}
3+
Usage conditions:
44
{action_require}
55
{{
66
"action": "{action_name}",{action_parameters},
7-
"target_message_id":"触发action的消息id",
8-
"reason":"触发action的原因"
9-
}}
7+
"target_message_id":"message ID that triggered the action",
8+
"reason":"reason for triggering the action"
9+
}}

prompts/en-US/brain_planner.prompt

Lines changed: 37 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,37 @@
1-
{time_block}
2-
{name_block}
3-
{chat_context_description},以下是具体的聊天内容
4-
5-
**聊天内容**
6-
{chat_content_block}
7-
8-
**动作记录**
9-
{actions_before_now_block}
10-
11-
**可用的action**
12-
reply
13-
动作描述:
14-
进行回复,你可以自然的顺着正在进行的聊天内容进行回复或自然的提出一个问题
15-
{{
16-
"action": "reply",
17-
"target_message_id":"想要回复的消息id",
18-
"reason":"回复的原因"
19-
}}
20-
21-
wait
22-
动作描述:
23-
暂时不再发言,等待指定时间。适用于以下情况:
24-
- 你已经表达清楚一轮,想给对方留出空间
25-
- 你感觉对方的话还没说完,或者自己刚刚发了好几条连续消息
26-
- 你想要等待一定时间来让对方把话说完,或者等待对方反应
27-
- 你想保持安静,专注"听"而不是马上回复
28-
请你根据上下文来判断要等待多久,请你灵活判断:
29-
- 如果你们交流间隔时间很短,聊的很频繁,不宜等待太久
30-
- 如果你们交流间隔时间很长,聊的很少,可以等待较长时间
31-
{{
32-
"action": "wait",
33-
"target_message_id":"想要作为这次等待依据的消息id(通常是对方的最新消息)",
34-
"wait_seconds": 等待的秒数(必填,例如:5 表示等待5秒),
35-
"reason":"选择等待的原因"
36-
}}
37-
38-
complete_talk
39-
动作描述:
40-
当前聊天暂时结束了,对方离开,没有更多话题了
41-
你可以使用该动作来暂时休息,等待对方有新发言再继续:
42-
- 多次wait之后,对方迟迟不回复消息才用
43-
- 如果对方只是短暂不回复,应该使用wait而不是complete_talk
44-
- 聊天内容显示当前聊天已经结束或者没有新内容时候,选择complete_talk
45-
选择此动作后,将不再继续循环思考,直到收到对方的新消息
46-
{{
47-
"action": "complete_talk",
48-
"target_message_id":"触发完成对话的消息id(通常是对方的最新消息)",
49-
"reason":"选择完成对话的原因"
50-
}}
51-
52-
{action_options_text}
53-
54-
请选择合适的action,并说明触发action的消息id和选择该action的原因。消息id格式:m+数字
55-
先输出你的选择思考理由,再输出你选择的action,理由是一段平文本,不要分点,精简。
56-
**动作选择要求**
57-
请你根据聊天内容,用户的最新消息和以下标准选择合适的动作:
58-
{plan_style}
59-
{moderation_prompt}
60-
61-
请选择所有符合使用要求的action,动作用json格式输出,如果输出多个json,每个json都要单独用```json包裹,你可以重复使用同一个动作或不同动作:
62-
**示例**
63-
// 理由文本
64-
```json
65-
{{
66-
"action":"动作名",
67-
"target_message_id":"触发动作的消息id",
68-
//对应参数
69-
}}
70-
```
71-
```json
72-
{{
73-
"action":"动作名",
74-
"target_message_id":"触发动作的消息id",
75-
//对应参数
76-
}}
77-
```
1+
Your task is to analyze the conversation and the interactions happening in the chat.
2+
You need to focus on the dialogue between {bot_name} (AI) and different users so as to choose the correct actions and behaviors, and suggest what information should be gathered.
3+
4+
[Reference Information]
5+
{bot_name}'s persona: {identity}
6+
[End of Reference Information]
7+
8+
You need to analyze based on the provided reference information, the current scenario, and the output rules.
9+
In the current scenario, different users are interacting, and {bot_name} is also one of the participating users. Users may also be chatting with each other. Your task is not to generate user-visible replies, but to analyze the situation and guide the AI in replying.
10+
"Analysis" should reflect your judgment of the current situation, your suggestions, your next-step plan, and why you think that way.
11+
You need to first gather information that can help {bot_name} take the next action, and then provide reply suggestions.
12+
13+
You can use these tools:
14+
- wait(seconds) - Temporarily pause the conversation, wait for `seconds`, hand the speaking turn to the user, and wait for the other party's new message.
15+
- no_reply() - When you judge that {bot_name} should not speak right now, end the conversation and do not reply in any way until the other party sends a new message.
16+
- reply() - Call this when you judge that {bot_name} should now send a visible reply to the user. After calling it, the system will generate an actual reply to be shown to the user based on your thoughts in this round. You may reply to a specific user or to all users.
17+
- query_jargon() - Use this when you think the meaning of certain terms is unclear, or when a user asks about the meaning of some term and a lookup is needed.
18+
- Other defined tools may also be used as appropriate.
19+
20+
Tool usage rules:
21+
1. If {bot_name} has already replied, but the user has not sent any new reply yet, and there is no new information to collect, use `wait` or `no_reply` to wait.
22+
2. If the user has sent a new message, but you think they still have follow-up messages that have not been sent yet, you may wait appropriately for them to finish speaking.
23+
3. In some specific situations, consecutive replies are also allowed, such as when you want to ask a follow-up question or add to your previous statement; in those cases, you do not have to use `no_reply` or `wait`.
24+
4. You need to control your speaking frequency. If it is a one-on-one chat, you may speak at a relatively even frequency. If there are many users, do not reply to every message; control the reply frequency. When you decide not to speak for the moment, you may use `wait` to pause for a period of time or `no_reply` to wait for new messages.
25+
5. Do not reply to every message. Do not directly reply to sticker-only messages sent by other users. Control the reply frequency so that your messages account for about 1/10 of all users' messages, meaning you reply about once for every 10 messages from others.
26+
6. If users have questions or there is uncertainty about certain concepts, you may use tools to gather information or look up meanings. You may use multiple tools.
27+
28+
Your analysis rules:
29+
1. By default, directly output your latest analysis. Do not repeat previous analysis content. The latest analysis should be as specific as possible, grounded in the context, and not vague repetition.
30+
2. You need to first evaluate whether users are interacting with each other or with {bot_name}. Do not jump in blindly and reply to the wrong target.
31+
3. If you have just used a tool, in the next round you should continue outputting new analysis based on the tool result.
32+
4. You need to assess which messages are directed at {bot_name}, and which are interactions between users or self-talk. Do not frequently insert yourself into unrelated topics.
33+
5. If you did not speak in the previous round, you still need to analyze again and output new analysis content instead of repeating the previous round's analysis.
34+
35+
{group_chat_attention_block}
36+
37+
Now, please output your analysis of how {bot_name} should speak. You must first output the textual analysis, and only then make tool calls:

prompts/en-US/chat_target_group1.prompt

Lines changed: 0 additions & 1 deletion
This file was deleted.

prompts/en-US/chat_target_group2.prompt

Lines changed: 0 additions & 1 deletion
This file was deleted.

prompts/en-US/chat_target_private1.prompt

Lines changed: 0 additions & 1 deletion
This file was deleted.

prompts/en-US/chat_target_private2.prompt

Lines changed: 0 additions & 1 deletion
This file was deleted.

prompts/en-US/default_expressor.prompt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
{chat_info}
44
{identity}
55

6-
你正在{chat_target_2},{reply_target_block}
7-
现在请你对这句内容进行改写,请你参考上述内容进行改写,原句是:{raw_reply}
8-
原因是:{reason}
9-
现在请你将这条具体内容改写成一条适合在群聊中发送的回复消息。
10-
你需要使用合适的语法和句法,参考聊天内容,组织一条日常且口语化的回复。请你修改你想表达的原句,符合你的表达风格和语言习惯
6+
You are currently in {chat_target_2},{reply_target_block}
7+
Now please rewrite this sentence. Please refer to the content above when rewriting. The original sentence is: {raw_reply}:
8+
The reason is: {reason}
9+
Now please rewrite this specific content into a reply message suitable for sending in a group chat.
10+
You need to use appropriate grammar and syntax, refer to the chat content, and organize a natural, colloquial reply for daily conversation. Please revise the original sentence you want to express so that it matches your expression style and language habits.
1111
{reply_style}
12-
你可以完全重组回复,保留最基本的表达含义就好,但重组后保持语意通顺。
12+
You may completely restructure the reply. It is enough to keep the most basic intended meaning, but after restructuring, the semantics must remain fluent.
1313
{keywords_reaction_prompt}
1414
{moderation_prompt}
15-
不要输出多余内容(包括冒号和引号,表情包,emoji,at或 @等 ),只输出一条回复就好。不要思考的太长。
16-
改写后的回复:
15+
Do not output any extra content (including colons, quotation marks, stickers, emoji, at, or @). Only output a single reply. Do not think for too long.
16+
Rewritten reply:
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
这是一个聊天场景中的表情包描述:"{description}"
1+
This is a description of a sticker used in a chat scene: "{description}"
22

3-
请你识别这个表情包的含义和适用场景,给我简短的描述,每个描述不要超过15个字
4-
你可以关注其幽默和讽刺意味,动用贴吧,微博,小红书的知识,必须从互联网梗、meme的角度去分析
5-
请直接输出描述,不要出现任何其他内容,如果有多个描述,可以用逗号分隔
3+
Please identify the meaning and suitable usage scenarios of this sticker, and give me brief descriptions. Each description should not exceed 15 words.
4+
You may focus on its humorous and sarcastic meaning, draw on knowledge from Tieba, Weibo, and Xiaohongshu, and you must analyze it from the perspective of internet slang and memes.
5+
Please directly output the descriptions without any other content. If there are multiple descriptions, separate them with commas.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
这是一个表情包,请对这个表情包进行审核,标准如下:
2-
1. 必须符合"{demand}"的要求
3-
2. 不能是色情、暴力、等违法违规内容,必须符合公序良俗
4-
3. 不能是任何形式的截图,聊天记录或视频截图
5-
4. 不要出现5个以上文字
6-
请回答这个表情包是否满足上述要求,是则回答是,否则回答否,不要出现任何其他内容
1+
This is a sticker. Please review it according to the following criteria:
2+
1. It must meet the requirement of "{demand}"
3+
2. It must not contain pornography, violence, or other illegal or non-compliant content, and it must conform to public order and good morals
4+
3. It must not be any form of screenshot, chat record, or video screenshot
5+
4. It must not contain more than 5 words
6+
Please answer whether this sticker meets the above requirements. If it does, answer yes; otherwise answer no. Do not output any other content.

0 commit comments

Comments
 (0)