Skip to content

Conversation

@L1Xu4n
Copy link

@L1Xu4n L1Xu4n commented Jun 6, 2023

新的prompt经过多次对话测试,均能按照要求仅仅输出需要的信息而不输出
keywords:xxxxx
summarize:xxxxx
等额外信息

改进prompt实现更好的记忆
@Syan-Lin
Copy link
Owner

Syan-Lin commented Jun 6, 2023

Keywords 是一个帮助 embedding 检索的好想法,但是有几个细节需要改一下,你可以修改完之后提个 PR

  1. 由于是单论对话,System information: 没有必要添加到 Prompt
  2. Conversation: """{prompt}""" 是更好的 prompt,添加分隔符有助于 AI 理解
  3. 有部分拼写错误
  4. 尽量简短、省 token

所以我建议的 Prompt 是这样的,但是我没有测试,你可以尝试看看再改进:

Complete the requirements separately
Conversation:
"""
{prompt}
"""
The requirements:
- Output ONLY in Chinese.
- Give 10 Chinese keywords to describe the conversation in the first line.
- Concise a summary you think important and can help you to remember the conversation later. Summary should less than 300 TOKENS. Time and date should be included.
Output format:
"""
<keywords>
<summary>
"""

@L1Xu4n
Copy link
Author

L1Xu4n commented Jun 6, 2023

J GGT`VDDI()@N38EFV%9HG
image
您的prompt经过测试,并不能很好的显示每次动作的时间,所以我认为应该使用我的prompt
关于省token我觉得不必要,特别是如果能实现/reset的情况下
格式优化和拼写错误已经修正,请查收

@Syan-Lin
Copy link
Owner

Syan-Lin commented Jun 6, 2023

你这还是拼错了,老哥,JUST send the SUMMARIZE DERECTLY,Directly 吧。
我不是很理解为什么句末是冒号,给意义明确的陈述句我觉得应该更好。
另:我觉得老哥的英语有点中式成分在里面。

@L1Xu4n
Copy link
Author

L1Xu4n commented Jun 6, 2023

你这还是拼错了,老哥,JUST send the SUMMARIZE DERECTLY,Directly 吧。 我不是很理解为什么句末是冒号,给意义明确的陈述句我觉得应该更好。 另:我觉得老哥的英语有点中式成分在里面。

啊这,拼写检查没查出来,不过完全不妨碍使用,修改了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants