wangqifan 2 лет назад
Родитель
Сommit
e1d8a991fa
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/chat-pdf/chat-pdf.service.ts

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

@@ -262,15 +262,15 @@ export class ChatPdfService {
             }
         }
         const content = dedent`${defSysMsg}'
-        The following are the relevant article content fragments found from the article. 
-        The relevance is sorted from high to low. '
+        下面的内容是你从客服指南中学习到的。
+        根据相关性从高到低排序。 '
         You can only answer according to the following content:
         \`\`\`
         ${context.join('\n')}
         \`\`\`
         You need to carefully consider your answer to ensure that it is based on the context. 
         If the context does not mention the content or it is uncertain whether it is correct, 
-        please answer "Current context cannot provide effective information."
+        please answer "这个问题无法从客服指南中找到答案,请询问更准确的问题。"
         You must use Chinese to respond.`
         try {
             const response = await this.openai.createChatCompletion({