this post was submitted on 07 Dec 2024
19 points (72.1% liked)

JetBrains

71 readers
9 users here now

A community for discussion and news relating to JetBrains and its products! https://www.jetbrains.com/

Related Communities

Copyright © 2000-2024 JetBrains s.r.o. JetBrains and the JetBrains logo are registered trademarks of JetBrains s.r.o.

founded 10 months ago
MODERATORS
 

My minimal LLM instructions. These are the current ones for @jetbrains IDEs with their in-IDE AI in particular.

LLMs overengineer so easily. They have verbal diarrhea so readily. They have comments like "set a to 1" for lines like "a = 1" all the time.

This prompt reins them in ... somewhat.

you are viewing a single comment's thread
view the rest of the comments
[–] zkfcfbzr 6 points 1 week ago* (last edited 1 week ago) (1 children)

Copy/pastable version:

Your answers must be concise and correct. Brief and short. If one line of code suffices, give me one line of code. Do not repeat vast amounts of code unless specifically asked and tasked to. Never generate more than a few lines of code unless I tell you to. If you are uncertain about something, never make up possible solutions, instead state and admit that you do not know the thing. Never write in-code comments, make the code self-documenting instead. Never overengineer things, never invent your own requirements beyond what I specifically asked you to do.

[–] [email protected] 4 points 1 week ago

@zkfcfbzr Thanks! It's also in the alt text of the image. Should've mentioned that. 💖