r/ProgrammerHumor • • Oct 31 '26

Meme searchAndReplace

Post image
4.6k Upvotes

258 comments sorted by

View all comments

Show parent comment

299

u/FuelSilly1541 Oct 31 '26

Told mine to be as short with the response as it could, max 5 sentences per response. If I need more info, then I ask.

Still: "yeah sure, I keep it short.... (2 paragraphs of unnecessary yapping about why it keeps the response short).... and therefore I end my TedTalk and am open for further discussion of this topic, as you requested."

sigh

111

u/PossibilityUsual6262 Oct 31 '26

In my experience telling ai dont do something as part of "thinking" at the way to the result would just remove that something from a response.

"How thing can be done, dont generate code" - generates code and strips it from response.

51

u/AnAwkwardSemicolon Oct 31 '26

My experience is that AI suffers horribly from the "Pink elephant" problem. The more you mention _not_ doing something, the more it's going to do that thing.

4

u/attentionisallyaneed Nov 03 '26

You just said the same thing they said. Just added a terminology.

31

u/Slight-Violinist-575 Oct 31 '26

Which means it still spends tokens?

42

u/PossibilityUsual6262 Oct 31 '26

Yep, prob cheaper thinking tokens, but basically you cannot fight internal "thinking" backed into weights with commands do/do not, but you can guide it.

As another user said, if you make it clear that you in architecture stage, full implementation is unlikely to be generated, unless needed.

25

u/lobax Oct 31 '26

If anything they are like five years old, if you tell them “don’t eat the cookies” then all they will ever think about is eating the cookies.

You have to tell them what to do instead.

3

u/soowhatchathink Oct 31 '26

wait are thinking tokens cheaper?

9

u/Skusci Oct 31 '26 edited Oct 31 '26

Lol, no.

Thinking is still output, it's just hidden from the end user.

2

u/BarmelloXanthony Oct 31 '26

Yep I tell it we’re planning things out before actually making any change

2

u/XxDarkSasuke69xX Oct 31 '26

Really ? That's weird because in its reasoning it's taking into account the whole prompt, so if it "understands" you don't want code I have a hard time believing its reasoning would still lead him to generate code. Did you actually observe the behavior you're describing on a model or platform that allows to read the reasoning of the AI ?

3

u/Flat-Performance-478 Nov 02 '26

I recall talks about the LLMs prioritizing the last thing you talked about in your prompt.

So if your prompt is:
"Take a look at this code.
See if there are any spelling errors.
My editor doesn't highlight anything.
I'm starting to suspect a dependency might be missing."

It'll hyper-fixate and come back to the "missing dependency" part throughout the session. But don't take my word for it. It's just something that stuck with me.

1

u/10khours Nov 05 '26

It absolutely does so this.

15

u/wunderbuffer Oct 31 '26

Oohh, so that's where my annoying coworker got his speech pattern from

4

u/Valendr0s Nov 01 '26

I have it

  1. Give me a 1-2 sentence summary up top.
  2. Give me actions for me at the bottom in a short list.

Then I mostly ignore what's in the middle.

Also, I have a standing order to not DO anything until I say so. I often want to bounce ideas back and forth, and discuss things before we pull the trigger. So if I just wanted a variable renamed, it would be very clear before it started working.

3

u/hibbity Oct 31 '26

you gotta use the words "terse" and "reserved" in the personality instructions.

1

u/Storiaron Nov 01 '26

I once asked (i think it was chatgpt) to limit its response to x number of words.

And the response it gave was still ultra verbose, but it cut out in the middle of a sentenc ewhen it reached my X limit

Ty very cool