News for hackers. Stuff that matters.
Re:Meet “Claude”: Anthropic’s Rival to ChatGPT by irthomasthomas on Wednesday January 18, 2023 @05:05AM (#34425096)
I usually prime it with a list of instructions that it should follow for the remainder of the conversation, including to be brief. And when it starts forgetting my instructions, it is time to start a fresh chat.
Re:Meet “Claude”: Anthropic’s Rival to ChatGPT by MaxMatti on Wednesday January 18, 2023 @05:12AM (#34425133)
I have thought about doing that, would you mind sharing your starting prompt so that I can get some ideas?
Re:Meet “Claude”: Anthropic’s Rival to ChatGPT by irthomasthomas on Wednesday January 18, 2023 @05:33AM (#34425232)
Sure, here is one example:

  From now on, you will act as my Linux / Bash script advisor. 
  Follow these instructions for the rest of the chat:
  - Only provide the code required.
  - Give working examples in code blocks using the data I give 
  you.
  - Ensure that code answers use real and accurate solutions. 
  - Ensure string formatting is correct.
  - Use only well known flags and options. 
  - Stick to options that are documented in the man pages of 
  the tools being used.

  - Do NOT provide any extra words or commentary.
  - DO NOT invent new flags.
  - DO NOT use flags that conflict.
  - Do NOT invent tools, functions, or methods, unless you are 
    giving the full implementation so that I can actually use it.

It may seem overly verbose, but I find that you have to be very precise and include a lot of instructions, explicitly, that would be implied in a chat with a human. So when you find yourself having to correct it, try to think how you could pre-empt that.