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;">Remembering</span> == * '''Prompt''' β The text input provided to an LLM; the complete context from which the model generates a response. * '''System prompt''' β A special instruction block (usually at the start of a conversation) that defines the model's role, persona, constraints, and output expectations. * '''User prompt''' β The specific query or request provided by the human user at inference time. * '''Few-shot prompting''' β Including a small number of input-output examples in the prompt to demonstrate the desired response format or reasoning style. * '''Zero-shot prompting''' β Asking the model to perform a task without providing any examples, relying solely on its pre-trained knowledge. * '''Chain-of-thought (CoT)''' β A prompting technique that asks the model to reason step by step before giving a final answer, improving accuracy on complex tasks. * '''Self-consistency''' β Running the same prompt multiple times with high temperature, then taking a majority vote over the outputs to improve reliability. * '''Role prompting''' β Assigning the model a persona or expert role ("You are a senior security engineerβ¦") to anchor its reasoning style and vocabulary. * '''Output format instruction''' β Explicitly specifying the structure of the desired output (JSON, markdown table, numbered list, etc.). * '''Temperature''' β A sampling parameter controlling response randomness. Lower (0β0.3) for factual/deterministic tasks; higher (0.7β1.0) for creative tasks. * '''Context window''' β The total number of tokens the model can process; prompts + conversation history must fit within this limit. * '''Prompt injection''' β An attack where malicious input in the prompt attempts to override the model's original instructions. * '''Hallucination''' β The model generating plausible-sounding but factually incorrect content; prompt techniques can mitigate but not fully eliminate this. * '''Delimiters''' β Characters or tags (e.g., <code>triple backticks</code>, <tags>, ---) used to clearly separate sections of a prompt. * '''ReAct''' β A prompting framework combining reasoning traces ("Thought:") and tool calls ("Action:") for agent-like behavior. * '''Constitutional prompting''' β Including explicit rules or principles in the prompt to constrain the model's behavior. </div> <div style="background-color: #006400; 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