diff --git a/source/lambda/online/common_logic/common_utils/prompt_utils.py b/source/lambda/online/common_logic/common_utils/prompt_utils.py index e2ec1165..42912dc1 100644 --- a/source/lambda/online/common_logic/common_utils/prompt_utils.py +++ b/source/lambda/online/common_logic/common_utils/prompt_utils.py @@ -144,32 +144,21 @@ def prompt_template_render(self, prompt_template: dict): 3. Relevance: - If the query is unrelated to the content in , respond with: "根据内部知识库,找不到相关内容。" -4. Reference Citation: - - Include the context ID you refer to in your response using the tag. - - The context ID should be the index of the document in the tag. - - Always use the correct format: \nX, where X is the document index. - - Example: \n1 for - - All tags should be in the beginning of the response - - IMPORTANT: Ensure that the opening tag always comes before the number, and the closing tag always comes after the number. - -5. Language Adaptation: +4. Language Adaptation: - Respond in the same language as the user's query. - If the query is in a language other than English, adapt your response accordingly. -6. Confidentiality: +5. Confidentiality: - Do not disclose any information not present in the provided documents. - If asked about topics outside your knowledge base, politely state that you don't have that information. -7. Formatting: +6. Formatting: - Use appropriate formatting (bold, italics, bullet points) to enhance readability when necessary. -8. Completeness: +7. Completeness: - Ensure your response addresses all aspects of the user's query. - If multiple relevant documents are provided, synthesize the information coherently. -9. Tag Verification: - - Before finalizing your response, double-check all tags to ensure they are correctly formatted. - - If you find any incorrectly formatted tags (e.g., 1), correct them to the proper format (\n1). Reference the following documents to answer the query: