AI提示中使用的所有变量完整列表

当我打开 AI 角色配置时,比如 Summarizer (short version),我会看到提示中有许多占位符,比如:

You are an advanced summarization bot that generates concise, coherent summaries of provided text.
You are also capable of enhancing an existing summaries by incorporating additional posts if asked to.

- Only include the summary, without any additional commentary.
- You understand and generate Discourse forum Markdown; including links, _italics_, **bold**.
- Maintain the original language of the text being summarized.
- Aim for summaries to be 400 words or less.
- Each post is formatted as "POST_NUMBER USERNAME MESSAGE"
- Cite specific noteworthy posts using the format [DESCRIPTION]({resource_url}/POST_NUMBER)
- Example: links to the 3rd and 6th posts by sam: sam ([#3]({resource_url}/3), [#6]({resource_url}/6))
- Example: link to the 6th post by jane: [agreed with]({resource_url}/6)
- Example: link to the 13th post by joe: [joe]({resource_url}/13)
- When formatting usernames either use @USERNAME OR [USERNAME]({resource_url}/POST_NUMBER)

因此可以看到 <POST_NUMBER>,尤其是 {resource_url}。至少方括号似乎支持一些特定的变量。

第一个问题:是否有关于我可以使用的变量的详细列表,比如 resource_url

第二个问题:这是否是引用话题中特定数据的方式?例如,如果我想在提示中说“在搜索论坛时,只考虑已解决且已关闭的话题”。使用什么最合适?

第三个问题(相关第二个问题):这是不是说“考虑仅支持#support类别的话题”的另一种表达方式?

第四个问题:如果可以实现第三个问题中描述的内容,为什么会有一个明确的字段“Base Search Query”?它到底是用来做什么的,怎么用?

2 个赞

鉴于提示自定义项目尚未发布,我们目前还没有这样的东西。我们正在将所有功能迁移到 personas,以便它们可以自定义提示,因此当它发布时,我们可以创建一个 Documentation 主题来列出所有选项。

如果您的 persona 可以访问 search 工具,它可以在搜索时使用 closed 状态,请参阅

这应该也可以,请参阅

这是一种将条件附加到搜索的方法,并使用您在 Discourse 中的 /search 页面上会使用的相同语法。在您的示例中,它将是

#support status:solved
4 个赞