Skip to content

Commit

Permalink
docs(prompts): add context.chatContext to evaluate templates
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
phodal committed May 27, 2024
1 parent 6736979 commit 4fa4f80
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions prompts/genius/en/hyde/code/evaluate.vm
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions prompts/genius/en/hyde/keywords/evaluate.vm
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down
1 change: 1 addition & 0 deletions prompts/genius/zh-cn/hyde/code/evaluate.vm
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions prompts/genius/zh-cn/hyde/keywords/evaluate.vm
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
```system```
使用上述代码回答以下问题。你不应该引用任何未展示的文件,除非它们是常见文件,如 .gitignore 或 package.json。请尽量引用文件名。
- ${context.chatContext}
如果没有足够的信息来回答问题,请建议用户可以在哪里查找更多信息。

请使用中文回答问题。
Expand Down

0 comments on commit 4fa4f80

Please sign in to comment.