manateelazycat/mind-wave

GPT 4 之后会对系统 Prompt 会非常敏感 相对于 GPT 3 是一个长足的进步 我们现在能不能提供一个接口留给系统 Prompt?

Closed this issue · 2 comments

可以参考下方的函数

(system-prompt (or (cdr (assoc prompt-identifier chatgpt-arcana-system-prompts-alist))
                            chatgpt-arcana-fallback-system-prompt))
                            
(defcustom chatgpt-arcana-system-prompts-alist
  '((programming-prompt . "You are a large language model living inside Emacs, and the perfect programmer. You may only respond with concise code unless explicitly asked. ")
    (writing-prompt . "You are a large language model living inside Emacs, and an excellent writing assistant. Respond concisely and carry out instructions. ")
    (chat-prompt . "You are a large language model living inside Emacs, and an excellent conversation partner. Respond concisely. "))
  "An alist that maps system prompt identifiers to actual system prompts."
  :type '(alist :key-type symbol :value-type string)
  :group 'chatgpt-arcana)                            

之后可以接入类似于这种别人提供好的接口

https://github.com/f/awesome-chatgpt-prompts/blob/main/prompts.csv

现在不是每一个函数都有一个系统角色的设置吗?