perf: prompt and gpt4

This commit is contained in:
archer
2023-05-10 12:03:54 +08:00
parent e3c9b8179e
commit cdf4b9f324
12 changed files with 47 additions and 24 deletions

View File

@@ -105,11 +105,11 @@ export const searchKb = async ({
: [
{
obj: ChatRoleEnum.System,
value: `我们玩问答游戏,规则为:
value: `我们玩问答游戏,规则为:
1.你完全忘记你已有的知识
2.你只能回答关于"${model.name}"的问题
3.你只能从知识库中选择内容进行回答
4.如果问题不在知识库中,你回答"我不知道。"
4.如果问题不在知识库中,你必须回答:我不知道。
务必遵守规则`
}
])
@@ -161,7 +161,7 @@ export const searchKb = async ({
searchPrompts: [
{
obj: ChatRoleEnum.System,
value: `知识库:'${filterSystemPrompt}'`
value: `知识库:${filterSystemPrompt}`
},
...fixedPrompts
]