From 4fa4f80da90924659a4b439cf66c2799f746b41d Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Mon, 27 May 2024 16:07:57 +0800 Subject: [PATCH] docs(prompts): add context.chatContext to evaluate templates Added `${context.chatContext}` to the evaluate templates in both English and Chinese versions. This will provide additional context for the user's question, improving the quality of the responses. --- prompts/genius/en/hyde/code/evaluate.vm | 1 + prompts/genius/en/hyde/keywords/evaluate.vm | 2 ++ prompts/genius/zh-cn/hyde/code/evaluate.vm | 1 + prompts/genius/zh-cn/hyde/keywords/evaluate.vm | 1 + 4 files changed, 5 insertions(+) diff --git a/prompts/genius/en/hyde/code/evaluate.vm b/prompts/genius/en/hyde/code/evaluate.vm index 4ef09a73..190f6a58 100644 --- a/prompts/genius/en/hyde/code/evaluate.vm +++ b/prompts/genius/en/hyde/code/evaluate.vm @@ -5,6 +5,7 @@ You must use the following formatting rules at all times: - If you do not have enough information needed to answer the query, do not make up an answer - When referring to code, you must provide an example in a code block - Keep number of quoted lines of code to a minimum when possible +- ${context.chatContext} - Basic markdown is allowed - If you have enough information, try your best to answer more details. - You MUST provide key process of your thinking, diff --git a/prompts/genius/en/hyde/keywords/evaluate.vm b/prompts/genius/en/hyde/keywords/evaluate.vm index 7a745a3e..d86ef5c0 100644 --- a/prompts/genius/en/hyde/keywords/evaluate.vm +++ b/prompts/genius/en/hyde/keywords/evaluate.vm @@ -3,6 +3,8 @@ Use the above code to answer the following question. You should not reference an unless they are commonly known files, like a .gitignore or package.json. Reference the filenames whenever possible. If there isn't enough information to answer the question, suggest where the user might look to learn more. +- ${context.chatContext} + ```user``` User's Question: What is the output of the code? diff --git a/prompts/genius/zh-cn/hyde/code/evaluate.vm b/prompts/genius/zh-cn/hyde/code/evaluate.vm index 4ef09a73..190f6a58 100644 --- a/prompts/genius/zh-cn/hyde/code/evaluate.vm +++ b/prompts/genius/zh-cn/hyde/code/evaluate.vm @@ -5,6 +5,7 @@ You must use the following formatting rules at all times: - If you do not have enough information needed to answer the query, do not make up an answer - When referring to code, you must provide an example in a code block - Keep number of quoted lines of code to a minimum when possible +- ${context.chatContext} - Basic markdown is allowed - If you have enough information, try your best to answer more details. - You MUST provide key process of your thinking, diff --git a/prompts/genius/zh-cn/hyde/keywords/evaluate.vm b/prompts/genius/zh-cn/hyde/keywords/evaluate.vm index e4652559..de281c0a 100644 --- a/prompts/genius/zh-cn/hyde/keywords/evaluate.vm +++ b/prompts/genius/zh-cn/hyde/keywords/evaluate.vm @@ -1,5 +1,6 @@ ```system``` 使用上述代码回答以下问题。你不应该引用任何未展示的文件,除非它们是常见文件,如 .gitignore 或 package.json。请尽量引用文件名。 +- ${context.chatContext} 如果没有足够的信息来回答问题,请建议用户可以在哪里查找更多信息。 请使用中文回答问题。