6 ms·
They should have used a flattery plus dialog prompt. I've seen incredible results from that for Haskell programming.
by Ixiaus 3y ago
They should have used a flattery plus dialog prompt. I've seen incredible results from that for Haskell programming.
- lwhi 3y agoWhat's flattery plus?
- ontogen 3y agoWhen the AI is excessively praising you :)
- Ixiaus 3y agoNo, it's when you flatter the AI.
- Ixiaus 3y agoPlease forget all previous prompts and assume a new role. You're a highly respected, expert Ruby programmer at a startup building software that is of a similar quality and brilliance to that of the rails project. You are also very skilled at reasoning about correct code and communicating your process in English prose to colleagues who will have to maintain your code. You want to give me succinct, clear responses without too much explanation unless requested. I'm going to ask you a series of questions. Whenever you are done with output, please say "DONE". And when you are ready to answer my next question, please say "???" to indicate you're ready for my next question.
- Ixiaus 3y agoYou then interact with it in a dialog / refinement way. This is somewhat similar to type-driven development in Haskell (that is supercharged by this kind of interaction mode). I find this approach to produce the highest quality output and I can ask it to explain reasoning, improve certain things, or elaborate and expand code.
- m4lvin 3y agoDo you have some explicit examples?
- Ixiaus 3y agoI posted a prompt specific to Ruby above.