Table of Contents
Preface
Part 1: Introduction to Prompt Engineering
1
Understanding Prompting and Prompt Techniques
Technical requirements
Introducing LLM prompts
How LLM prompts work
Architecture
LLM training
A journey from prompt to reply – how inference helps LLMs fill in the blanks
Types of LLM prompts
Components of an LLM prompt
Adopt any persona – role prompting for tailored interactions
Few-shot learning – training models with example prompts
Finding your voice – defining personality in prompts
Using patterns to enhance prompt effectiveness
Mix and match – strategic combinations for enhanced prompts
Exploring LLM parameters
How to approach prompt engineering (experimentation)
The challenges and limitations of using LLM prompts
Summary ...
Get Unlocking the Secrets of Prompt Engineering now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.