feat: 多AI角色支持、Bug修复、文档更新
This commit is contained in:
@@ -4,6 +4,7 @@ export default defineConfig({
|
||||
title: "AI回评",
|
||||
description: "Halo AI回评插件文档",
|
||||
lang: "zh-CN",
|
||||
base: "/comment-ai-autopilot/",
|
||||
themeConfig: {
|
||||
nav: [
|
||||
{ text: "指南", link: "/guide/introduction" },
|
||||
|
||||
+26
-5
@@ -15,6 +15,9 @@ Prompt模板控制AI生成回复时的完整提示词结构。
|
||||
- 自然对话,不要写小作文
|
||||
- 只有评论涉及具体内容时才针对性回应
|
||||
|
||||
文章标题:{{post_title}}
|
||||
发布日期:{{post_date}}
|
||||
评论数:{{comment_count}}
|
||||
文章(仅供理解上下文,不要复述):
|
||||
{{article}}
|
||||
|
||||
@@ -29,8 +32,11 @@ Prompt模板控制AI生成回复时的完整提示词结构。
|
||||
| `{{persona_prompt}}` | AI角色人格提示词 | 始终注入 |
|
||||
| `{{safety_prompt}}` | 安全规范提示词 | 始终注入 |
|
||||
| `{{sentiment_prompt}}` | 情感语气提示词 | 情感分析后自动注入,不在模板中显式使用 |
|
||||
| `{{article}}` | 文章/页面内容 | 始终注入 |
|
||||
| `{{comment}}` | 评论内容 | 始终注入 |
|
||||
| `{{post_title}}` | 文章标题 | 始终注入 |
|
||||
| `{{post_date}}` | 文章发布日期(如 2024-01-15) | 始终注入 |
|
||||
| `{{comment_count}}` | 该文章的评论数 | 始终注入 |
|
||||
| `{{article}}` | 文章/页面内容(含标题) | 始终注入 |
|
||||
| `{{comment}}` | 评论内容(含评论者名称) | 始终注入 |
|
||||
| `{{conversation}}` | 对话上下文 | 多轮对话时注入 |
|
||||
|
||||
## 情感提示
|
||||
@@ -56,6 +62,21 @@ Prompt模板控制AI生成回复时的完整提示词结构。
|
||||
|
||||
1. 保留 `{{persona_prompt}}` 和 `{{safety_prompt}}` 变量
|
||||
2. 保留 `{{article}}` 和 `{{comment}}` 变量
|
||||
3. 在变量之间添加清晰的分隔和指令
|
||||
4. 避免让AI复述文章内容
|
||||
5. 控制回复长度和风格
|
||||
3. 利用 `{{post_title}}`、`{{post_date}}`、`{{comment_count}}` 提供更丰富的上下文
|
||||
4. 在变量之间添加清晰的分隔和指令
|
||||
5. 避免让AI复述文章内容
|
||||
6. 控制回复长度和风格
|
||||
|
||||
## 变量使用示例
|
||||
|
||||
### 根据评论数调整回复风格
|
||||
|
||||
```
|
||||
{{comment_count}}条评论说明这篇文章{{#if comment_count > 10}}很受欢迎{{/if}}。
|
||||
```
|
||||
|
||||
### 利用发布日期
|
||||
|
||||
```
|
||||
这篇文章发布于{{post_date}},回复时请考虑时效性。
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user