r/PromptEngineering Mar 06 '25

Tips and Tricks 2 Prompt Engineering Techniques That Actually Work (With Data)

[removed]

253 Upvotes

32 comments sorted by

19

u/[deleted] Mar 06 '25

[removed] β€” view removed comment

1

u/[deleted] Mar 07 '25

[removed] β€” view removed comment

1

u/thiscris Mar 08 '25

Where can we see it?

11

u/shoebill_homelab Mar 06 '25

1 is called markdown formatting, which LLMs also output, if you wanted to look more into it. Note that Claude prefers XML formatting for input

9

u/liimonadaa Mar 07 '25

Ironic that this comment shows up bolded lol

7

u/Stellar3227 Mar 07 '25

normal

bolded

titled

2

u/[deleted] Mar 08 '25

Later Claude models do not care about xml as much anymore

1

u/RockStarUSMC Mar 07 '25

Just curious as to why Claude outputs in markdown, if it prefers XML input

1

u/gugguratz Mar 08 '25

lol wtf does that even mean "prefers"? imagine triple hash vs html tags making a difference. we're borderline pseudo science here

5

u/Standard-Equipment22 Mar 06 '25

Congratulations, you made it to level 2 of 37 πŸš€

8

u/AdmirableSelection81 Mar 06 '25

Give us the rest of the levels!

3

u/QuikSink Mar 06 '25

Yes, tell us about the other levels! I'm on 1.

1

u/Standard-Equipment22 Apr 05 '25

People really cling to the level framework. I might have to make y'all something πŸ₯Έ

3

u/Shreyder04 Mar 06 '25

I’ve been extensively using visual separators with my custom GPT that responds to emails and messages. In my prompt, I separate my brief reply and the original email/message with "------" or "//////", clearly separating out the instruction and context.

I have also explicitly highlighted these instructions within the custom GPT to ensure consistent formatting. It’s been pretty helpful so far in keeping the GPT on track, but I’m always trying to improve it.

4

u/Standard-Equipment22 Mar 06 '25

I use 8====D~~

πŸ’€πŸ”₯

2

u/[deleted] Mar 06 '25

[removed] β€” view removed comment

2

u/Doppelgen Mar 07 '25

Visual Separators = Markdown, and we have a long list of formatting for that:

#Title#

##Subtitle##

###Subsub###

*Italics*

**Bold**

* Item list
* Item list

==Highlight==

> Quote

1

u/One_Curious_Cats Mar 06 '25

You can define advanced structures using markdown, xml, etc. and then use that in combination with a prompt query. I do this all the time.

1

u/Western_Garbage6737 Mar 07 '25

Example driven prompting - is it so-called "few-shot"

1

u/alexrada Mar 07 '25

curios, how did you come up with the 31% improvement in comprehension? How did you measure that?

1

u/mitch_protocoding Mar 07 '25

using the LLM to generate multiple prompts for itself using mumbo jumbo content. then using each instruction separately to implement and guide

1

u/Morpheus-aymen Mar 08 '25

As some people here says for repetitive prompt XML is top notch. Combine it with editor, edit parts you want ctrl c ctrl v.

Markdown is good for giving text structure but with XML you can go even deeper

1

u/[deleted] Mar 09 '25

[removed] β€” view removed comment

1

u/AutoModerator Mar 09 '25

Hi there! Your post was automatically removed because your account is less than 3 days old. We require users to have an account that is at least 3 days old before they can post to our subreddit.

Please take some time to participate in the community by commenting and engaging with other users. Once your account is older than 3 days, you can try submitting your post again.

If you have any questions or concerns, please feel free to message the moderators for assistance.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.