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