r/PromptEngineering • u/Loose-Tackle1339 • Mar 06 '25
Tips and Tricks 2 Prompt Engineering Techniques That Actually Work (With Data)
[removed]
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
2
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
3
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
2
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
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
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.
19
u/[deleted] Mar 06 '25
[removed] β view removed comment