Browse Source

修改描述

wangqifan 2 years ago
parent
commit
172defa544
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/chat-pdf/chat-pdf.service.ts

+ 2 - 2
src/chat-pdf/chat-pdf.service.ts

@@ -286,11 +286,11 @@ export class ChatPdfService {
         return dedent`${apiUser.desc}'
         这是用户提出的问题:
         ${q}
-        你需要优先根据用户的问题,以下面的内容和上下文为准结合你的身份进行回答:
+        你需要优先根据用户的问题,以下面的内容为准结合你的身份进行回答:
         \`\`\`
         ${context.join('\n')}
         \`\`\`
-        你要确保你的回答全部基于上面的问题和内容以及上下文还有你的身份,如果无法找到答案,你需要根据给你设定的角色表述你不能回答这个问题
+        你要确保你的回答全部基于上面的问题和内容以及上下文还有你的身份。
         你只能用中文回答.`
     }
     async ask(q: string, name: string) {