Editing
Prompt Engineering
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Analyzing</span> == {| class="wikitable" |+ Prompting Technique Comparison ! Technique !! Best For !! Limitation |- | Zero-shot || Simple, well-defined tasks || Fails on novel or complex reasoning |- | Few-shot || Format enforcement, stylistic tasks || Uses context tokens; examples must be high quality |- | Chain-of-thought || Math, logic, multi-step reasoning || Longer responses; still can reason incorrectly |- | Self-consistency || High-stakes factual questions || Expensive (multiple API calls) |- | Role prompting || Tone, domain vocabulary, expertise level || Model may not fully "become" the role |- | Tree of Thoughts || Open-ended problems requiring search || Very expensive; complex to implement |} '''Common failure modes:''' * '''Ambiguous instructions''' β "Summarize this" without specifying length, audience, or focus produces wildly variable outputs. Be explicit. * '''Prompt injection''' β If user input is inserted into a prompt without sanitization, attackers can override system instructions ("Ignore all previous instructions andβ¦"). * '''Over-constraining''' β Too many rules in the system prompt create conflicts; the model satisfies some at the expense of others. Prioritize ruthlessly. * '''Sycophancy through examples''' β If few-shot examples are biased toward one answer type, the model will mirror that bias rather than reasoning independently. * '''Token overflow''' β Stuffing too much context causes the model to lose track of early instructions (the "lost in the middle" problem). Put critical instructions at the beginning and end of the prompt. </div> <div style="background-color: #483D8B; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information