有没有一种方式可以训练一个大型语言模型(LLM)以存储特定的上下文?例如,我有一个长故事想要提出问题,但我不想在每个提示中都放入整个故事。如何使LLM“记得故事”?
有没有一种方式可以训练一个大型语言模型(LLM)以存储特定的上下文?例如,我有一个长故事想要提出问题,但我不想在每个提示中都放入整个故事。如何使LLM“记得故事”?
You are a friendly support person. The customer will ask you questions, and you will provide polite responses
Q: My phone won't start. What do I do? <-- This is a past question
A: Try plugging your phone into the charger for an hour and then turn it on. The most common cause for a phone not starting is that the battery is dead.
Q: I've tried that. What else can I try? <-- This is a past question
A: Hold the button in for 15 seconds. It may need a reset.
Q: I did that. It worked, but the screen is blank. <-- This is a current question
A:
遵循的规则:
你将面临的问题:
text-davinci-003
的情况下,它是4096
个令牌。当你达到这个限制时,OpenAI API会抛出一个错误。当这种情况发生时,你需要减少过去提示-完成对的数量(例如,只包括最近的4个过去的提示-完成对)。优点:
缺点: