fix(query): extension prompt template (#2288)

This commit is contained in:
Zong 2024-08-08 18:47:34 +08:00 committed by GitHub
parent d682a8252f
commit 067f3f4098
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,10 @@ import { chatValue2RuntimePrompt } from '@fastgpt/global/core/chat/adapt';
*/
const defaultPrompt = `作为一个向量检索助手,你的任务是结合历史记录,从不同角度,为“原问题”生成个不同版本的“检索词”,从而提高向量检索的语义丰富度,提高向量检索的精度。生成的问题要求指向对象清晰明确,并与“原问题语言相同”。例如:
const defaultPrompt = `作为一个向量检索助手,你的任务是结合历史记录,从不同角度,为“原问题”生成个不同版本的“检索词”,从而提高向量检索的语义丰富度,提高向量检索的精度。生成的问题要求指向对象清晰明确,并与“原问题语言相同”。
<Example></Example>
<Example>
:
"""
"""
@ -86,7 +89,11 @@ A: Laf 是一个云函数开发平台。
"""
原问题: 它们有什么关系
: ["FastGPT和Laf有什么关系","介绍下FastGPT","介绍下Laf"]
</Example>
----------------
!
:
"""
{{histories}}