[ad_1]
A beginner-friendly information to immediate engineering with LLMs
Immediate Engineering is a elaborate approach to say, “Write higher and higher directions for an AI mannequin till it does precisely what you need.”
Writing prompts is a bit like driving a motorbike. You don’t want a Ph.D. in mechanical physics to learn to preserve your steadiness. A little bit of concept may also help however a very powerful half is trial and error.
Think about this information because the “little bit of concept” that can assist you put together for driving the AI bike. You’ll discover a checklist of strategies illustrated with explanations, examples, and templates you possibly can check in your favourite fashions.
The information focuses on ChatGPT (GPT-4), however each single method shared under applies to different Massive Language Fashions (LLMs) like Claude and LLaMA.
What's in this guide?💡 Why should you care about Prompt Engineering?
💡 Why prompt is engineering harder than you think?
💡 You don't need prompt ideas, you need problems
💡 Watch out for AI hallucinations
🟢 The Basics of Prompting
🟢 Specify the context (also called "Priming")
🟢 Specify the desired format
🟢 Use <placeholders>
∘ How to use placeholders as parameters
∘ How to use placeholders as instructions
🟢 Specify the style/tone
🟢 Specify the length of the desired response
🟢 Specify the target audience
🟢 Many-Examples Prompting
🟢 Temperature Control
🟢 Zero-Shot Prompting (no examples)
🟢 Few-Shot Prompting (several high-quality examples)
🟢 Zero-Shot/Few-Shot - The simple version
💡 In-context Learning vs. Chat History
🟡 Chain of Thought Prompting
∘ Zero-Shot Chain of Thought
∘ Few-Shot Chain of Thought
🟢 Role Prompting
🟢 Knowledge Generation Prompting
∘ Knowledge Generation Prompting and ChatGPT Plugins
🟠 Knowledge Integration Prompting*
∘ Knowledge Integration* and Microsoft Edge
🟠 Directional Stimulus (DS) Prompting
🟡 Recursive Criticism and Improvement (RCI) Prompting
🟡 Self-Refinement Prompting
🟡 Reverse Prompt Engineering
🟡 Prompt Revision
🟡 Program Simulation Prompting
🟠 All-In-One (AIO) Prompting*
🟢 Template for All-In-One (AIO) Prompting
🟢 More examples of All-In-One Prompting*
∘ Dolores, the Email Muse
∘…
[ad_2]
Source link