• vivendi@programming.dev
      link
      fedilink
      English
      arrow-up
      10
      arrow-down
      1
      ·
      1 year ago

      Have you tried insulting the AI in the system prompt (as well as other tunes to the system prompt)?

      I’m not joking, it really works

      For example:

      Instead of “You are an intelligent coding assistant…”

      “You are an absolute fucking idiot who can barely code…”

      • rozodru@lemmy.world
        link
        fedilink
        English
        arrow-up
        11
        ·
        1 year ago

        “You are an absolute fucking idiot who can barely code…”

        Honestly, that’s what you have to do. It’s the only way I can get through using Claude.ai. I treat it like it’s an absolute moron, I insult it, I “yell” at it, I threaten it and guess what? the solutions have gotten better. not great but a hell of a lot better than what they used to be. It really works. it forces it to really think through the problem, research solutions, cite sources, etc. I have even told it i’ll cancel my subscription to it if it gets it wrong.

        no more “do this and this and then this but do this first and then do this” after calling it a “fucking moron” and what have you it will provide an answer and just say “done.”

    • SocialMediaRefugee@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      I’ve had good results being very specific, like “Generate some python 3 code for me that converts X to Y, recursively through all subdirectories, and converts the files in place.”