From c4062fbf48fbe93833c443d150995a31ab5b7b1a Mon Sep 17 00:00:00 2001 From: paituo <330435863@qq.com> Date: Tue, 13 Aug 2024 13:31:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=B3=E8=81=94=E6=8F=90?= =?UTF-8?q?=E9=97=AE=E6=8F=90=E7=A4=BA=E6=96=87=E6=9C=AC=E4=B8=BA=E4=B8=AD?= =?UTF-8?q?=E6=96=87=EF=BC=8C=E5=90=8C=E6=97=B6=E5=A2=9E=E5=8A=A0=E4=B8=8A?= =?UTF-8?q?=E6=8F=90=E9=97=AE=E5=86=85=E5=AE=B9=E7=8E=B0=E5=AE=9A=E4=BA=8E?= =?UTF-8?q?=E7=9F=A5=E8=AF=86=E5=BA=93=E7=8E=B0=E6=9C=89=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E7=9A=84=E8=A6=81=E6=B1=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/api/services/suggestion.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/app/api/services/suggestion.py b/backend/app/api/services/suggestion.py index 406b0ae..7017307 100644 --- a/backend/app/api/services/suggestion.py +++ b/backend/app/api/services/suggestion.py @@ -6,10 +6,10 @@ from llama_index.core.settings import Settings from pydantic import BaseModel NEXT_QUESTIONS_SUGGESTION_PROMPT = PromptTemplate( - "You're a helpful assistant! Your task is to suggest the next question that user might ask. " - "\nHere is the conversation history" + "你是一个乐于助人的助手!你的任务是对用户可能会问的下一个问题给出建议。 " + "\n这是对话历史记录" "\n---------------------\n{conversation}\n---------------------" - "Given the conversation history, please give me $number_of_questions questions that you might ask next!" + "考虑到对话历史记录,仅限于现在知识库已有内容, 请给我 $number_of_questions 个你接下来可能会问题的问题!" ) N_QUESTION_TO_GENERATE = 3