zlacker

[parent] [thread] 2 comments
1. static+(OP)[view] [source] 2025-05-06 16:55:07
This is sort of LLM specific. For some tasks you might try including the word comment but give the order at the beginning and end of the prompt. This is very model dependent. Like:

Refractor this. Do not write any comments.

<code to refractor>

As a reminder your task is to refractor the above code and do not write any comments.

replies(1): >>diggan+id
2. diggan+id[view] [source] 2025-05-06 18:14:11
>>static+(OP)
> Do not write any comments. [...] do not write any comments.

Literally both of those are negations.

replies(1): >>static+CG
◧◩
3. static+CG[view] [source] [discussion] 2025-05-06 21:32:40
>>diggan+id
Yes my suggestion is that negations can work just fine, depending on the model and task, and instead of avoiding negations you can try other promoting strategies like emphasizing what you want at the beginning and at the end of the prompt.

If you think negations never work tell Gemini 2.5 to "write 10 sentences that do not include the word the" and see what happens.

[go to top]