News for hackers. Stuff that matters.
Re:ChatGPT4 writes Stan code so I don’t have to by spaceman_2020 on Monday April 24, 2023 @03:38AM (#35684713)
I used to get the same results, but I've lately been using better prompts and the results are substantially better.

The key is to a) give it context, and b) give it constraints, and to do it from the very first prompt itself.

Most chatGPT failures that I've seen add context and constraints after the initial prompt, which someone sends GPT into a loop.

If you have data in a particular format, mention that in the first prompt. Also helpful to tell it to optimize the code for scalability and to use any external libraries if necessary.

These tools are essentially software programs, and like any piece of software, you need to know the right commands to get maximum utility out of them.

There are no comments on this comment yet.