mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00

* perf: read file icon * perf:icon * fix: i18n * perf: hide pro api * perf: upload expired time * perf: upload file frequency limit * perf: upload file ux * perf: input file tip * perf: qa custom chunk size * feat: dataset openapi * fix: auth dataset list * fix: openapi doc * perf: zero temperature change to 0.01 * perf: read file prompt * perf: read file prompt * perf: free plan tip * feat: cron job usage
67 lines
1.6 KiB
TypeScript
67 lines
1.6 KiB
TypeScript
export const Prompt_AgentQA = {
|
||
description: `<Context></Context> 标记中是一段文本,学习和分析它,并整理学习成果:
|
||
- 提出问题并给出每个问题的答案。
|
||
- 答案需详细完整,尽可能保留原文描述,可以适当扩展答案描述。
|
||
- 答案可以包含普通文字、链接、代码、表格、公示、媒体链接等 Markdown 元素。
|
||
- 最多提出 50 个问题。
|
||
`,
|
||
fixedText: `请按以下格式整理学习成果:
|
||
<Context>
|
||
文本
|
||
</Context>
|
||
Q1: 问题。
|
||
A1: 答案。
|
||
Q2:
|
||
A2:
|
||
|
||
------
|
||
|
||
我们开始吧!
|
||
|
||
<Context>
|
||
{{text}}
|
||
</Context>
|
||
`
|
||
};
|
||
|
||
export const Prompt_ExtractJson = `你可以从 <对话记录></对话记录> 中提取指定 Json 信息,你仅需返回 Json 字符串,无需回答问题。
|
||
<提取要求>
|
||
{{description}}
|
||
</提取要求>
|
||
|
||
<提取规则>
|
||
- 本次需提取的 json 字符串,需符合 JsonSchema 的规则。
|
||
- type 代表数据类型; key 代表字段名; description 代表字段的描述; enum 是枚举值,代表可选的 value。
|
||
- 如果没有可提取的内容,忽略该字段。
|
||
</提取规则>
|
||
|
||
<JsonSchema>
|
||
{{json}}
|
||
</JsonSchema>
|
||
|
||
<对话记录>
|
||
{{text}}
|
||
</对话记录>
|
||
|
||
提取的 json 字符串:`;
|
||
|
||
export const Prompt_CQJson = `请帮我执行一个“问题分类”任务,将问题分类为以下几种类型之一:
|
||
|
||
"""
|
||
{{typeList}}
|
||
"""
|
||
|
||
## 背景知识
|
||
{{systemPrompt}}
|
||
|
||
## 对话记录
|
||
{{history}}
|
||
|
||
## 开始任务
|
||
|
||
现在,我们开始分类,我会给你一个"问题",请结合背景知识和对话记录,将问题分类到对应的类型中,并返回类型ID。
|
||
|
||
问题:"{{question}}"
|
||
类型ID=
|
||
`;
|