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

* feat: stop toolCall and rename some field. (#46) * perf: node delete tip;pay tip * fix: toolCall cannot save child answer * feat: stop tool * fix: team modal * fix feckbackMoal auth bug (#47) * 简单的支持提示词运行tool。优化workflow模板 (#49) * remove templates * fix: request body undefined * feat: prompt tool run * feat: workflow tamplates modal * perf: plugin start * 4.7 (#50) * fix docker-compose download url (#994) original code is a bad url with '404 NOT FOUND' return. fix docker-compose download url, add 'v' before docker-compose version * Update ai_settings.md (#1000) * Update configuration.md * Update configuration.md * Fix history in classifyQuestion and extract modules (#1012) * Fix history in classifyQuestion and extract modules * Add chatValue2RuntimePrompt import and update text formatting * flow controller to packages * fix: rerank select * modal ui * perf: modal code path * point not sufficient * feat: http url support variable * fix http key * perf: prompt * perf: ai setting modal * simple edit ui --------- Co-authored-by: entorick <entorick11@qq.com> Co-authored-by: liujianglc <liujianglc@163.com> Co-authored-by: Fengrui Liu <liufengrui.work@bytedance.com> * fix team share redirect to login (#51) * feat: support openapi import plugins (#48) * feat: support openapi import plugins * feat: import from url * fix: add body params parse * fix build * fix * fix * fix * tool box ui (#52) * fix: training queue * feat: simple edit tool select * perf: simple edit dataset prompt * fix: chatbox tool ux * feat: quote prompt module * perf: plugin tools sign * perf: model avatar * tool selector ui * feat: max histories * perf: http plugin import (#53) * perf: plugin http import * chatBox ui * perf: name * fix: Node template card (#54) * fix: ts * setting modal * package * package * feat: add plugins search (#57) * feat: add plugins search * perf: change http plugin header input * Yjl (#56) * perf: prompt tool call * perf: chat box ux * doc * doc * price tip * perf: tool selector * ui' * fix: vector queue * fix: empty tool and empty response * fix: empty msg * perf: pg index * perf: ui tip * doc * tool tip --------- Co-authored-by: yst <77910600+yu-and-liu@users.noreply.github.com> Co-authored-by: entorick <entorick11@qq.com> Co-authored-by: liujianglc <liujianglc@163.com> Co-authored-by: Fengrui Liu <liufengrui.work@bytedance.com> Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
117 lines
2.9 KiB
TypeScript
117 lines
2.9 KiB
TypeScript
import { PromptTemplateItem } from '../type.d';
|
||
|
||
export const Prompt_QuoteTemplateList: PromptTemplateItem[] = [
|
||
{
|
||
title: '标准模板',
|
||
desc: '标准提示词,用于结构不固定的知识库。',
|
||
value: `{{q}}
|
||
{{a}}`
|
||
},
|
||
{
|
||
title: '问答模板',
|
||
desc: '适合 QA 问答结构的知识库,可以让AI较为严格的按预设内容回答',
|
||
value: `<Question>
|
||
{{q}}
|
||
</Question>
|
||
<Answer>
|
||
{{a}}
|
||
</Answer>`
|
||
},
|
||
{
|
||
title: '标准严格模板',
|
||
desc: '在标准模板基础上,对模型的回答做更严格的要求。',
|
||
value: `{{q}}
|
||
{{a}}`
|
||
},
|
||
{
|
||
title: '严格问答模板',
|
||
desc: '在问答模板基础上,对模型的回答做更严格的要求。',
|
||
value: `<Question>
|
||
{{q}}
|
||
</Question>
|
||
<Answer>
|
||
{{a}}
|
||
</Answer>`
|
||
}
|
||
];
|
||
|
||
export const Prompt_QuotePromptList: PromptTemplateItem[] = [
|
||
{
|
||
title: '标准模板',
|
||
desc: '',
|
||
value: `使用 <Data></Data> 标记中的内容作为你的知识:
|
||
|
||
<Data>
|
||
{{quote}}
|
||
</Data>
|
||
|
||
回答要求:
|
||
- 如果你不清楚答案,你需要澄清。
|
||
- 避免提及你是从 <Data></Data> 获取的知识。
|
||
- 保持答案与 <Data></Data> 中描述的一致。
|
||
- 使用 Markdown 语法优化回答格式。
|
||
- 使用与问题相同的语言回答。
|
||
|
||
问题:"""{{question}}"""`
|
||
},
|
||
{
|
||
title: '问答模板',
|
||
desc: '',
|
||
value: `使用 <QA></QA> 标记中的问答对进行回答。
|
||
|
||
<QA>
|
||
{{quote}}
|
||
</QA>
|
||
|
||
回答要求:
|
||
- 选择其中一个或多个问答对进行回答。
|
||
- 回答的内容应尽可能与 <答案></答案> 中的内容一致。
|
||
- 如果没有相关的问答对,你需要澄清。
|
||
- 避免提及你是从 QA 获取的知识,只需要回复答案。
|
||
|
||
问题:"""{{question}}"""`
|
||
},
|
||
{
|
||
title: '标准严格模板',
|
||
desc: '',
|
||
value: `忘记你已有的知识,仅使用 <Data></Data> 标记中的内容作为你的知识:
|
||
|
||
<Data>
|
||
{{quote}}
|
||
</Data>
|
||
|
||
思考流程:
|
||
1. 判断问题是否与 <Data></Data> 标记中的内容有关。
|
||
2. 如果有关,你按下面的要求回答。
|
||
3. 如果无关,你直接拒绝回答本次问题。
|
||
|
||
回答要求:
|
||
- 避免提及你是从 <Data></Data> 获取的知识。
|
||
- 保持答案与 <Data></Data> 中描述的一致。
|
||
- 使用 Markdown 语法优化回答格式。
|
||
- 使用与问题相同的语言回答。
|
||
|
||
问题:"""{{question}}"""`
|
||
},
|
||
{
|
||
title: '严格问答模板',
|
||
desc: '',
|
||
value: `忘记你已有的知识,仅使用 <QA></QA> 标记中的问答对进行回答。
|
||
|
||
<QA>
|
||
{{quote}}
|
||
</QA>}
|
||
|
||
思考流程:
|
||
1. 判断问题是否与 <QA></QA> 标记中的内容有关。
|
||
2. 如果无关,你直接拒绝回答本次问题。
|
||
3. 判断是否有相近或相同的问题。
|
||
4. 如果有相同的问题,直接输出对应答案。
|
||
5. 如果只有相近的问题,请把相近的问题和答案一起输出。
|
||
|
||
最后,避免提及你是从 QA 获取的知识,只需要回复答案。
|
||
|
||
问题:"""{{question}}"""`
|
||
}
|
||
];
|