LLM Prompt Engineering Simplified Book
This book on LLM prompt engineering consists of six parts.
π¦ Video lectures based on this book chapters --> YouTube Playlist Link
- 1οΈβ£ Introductory
- covers basics related to Generative AI, LLMs and then discusses what is a prompt, different prompt elements and how to craft effective prompts.
- Generative AI Explained
- LLM Introduction
- LLM Pretraining and Meta-Training
- Closed and Open-Source LLMs
- Raw and Chat LLMs
- What is a Prompt?
- Prompt Elements
- How to write effective prompts
- 2οΈβ£ Prompt Gallery
- presents how to craft prompts for various tasks like text generation, text classification, information extraction (entity extraction, relation extraction), question answering, keyword extraction, text translation, text transliteration and text editing (spell checking, grammar correction and paraphrasing).
- Text Generation Prompts
- Text Classification - Sentiment Analysis Prompts
- Text Classification - Sentiment Rating Prompts
- Information Extraction - Entity Extraction Prompts
- Information Extraction - Relation Extraction Prompts
- Question Answering - Closed-Domain QA Prompts
- Question Answering - Open-Domain QA Prompts
- Text Summarization Prompts
- Keywords Extraction Prompts
- Text Editing Prompts
- Text Translation Prompts
- Text Transliteration Prompts
- 3οΈβ£ Progressive
- discusses prompt engineering in detail, presents basic use cases of prompting (writing assistant, social media assistant and student mentor) and then explains basic prompting techniques like zero-shot prompting, few-shot prompting and batch prompting.
- Prompt Engineering Introduction
- Prompt Engineering Steps
- Prompt Engineering Pros and Cons
- Basic Use Cases - Writing Assistant
- Basic Use Cases - Social Media Assistant
- Basic Use Cases - Student Mentor
- Basic Prompting Techniques - Zero Shot Prompting
- Basic Prompting Techniques - Few Shot Prompting
- Basic Prompting Techniques - Batch Prompting
- 4οΈβ£ Mastery
- discusses how to craft various prompt elements(prompt design guide), presents advanced use cases of prompting (coding assistant, data science mentor and synthetic data generator) and finally explains advanced prompting techniques like emotion prompting, plan and solve prompting, rephrase and response prompting, CoT prompting, zero-shot CoT prompting etc.
- Prompt Design Guide
- Advanced Use Cases - Coding Assistant
- Advanced Use Cases - Data Science Mentor
- Advanced Use Cases - Synthetic Data Generator
- Advanced Prompting Techniques - Emotion Prompting
- Advanced Prompting Techniques - Rephrase and Respond Prompting
- Advanced Prompting Techniques - CoT Prompting
- Advanced Prompting Techniques - Zero-Shot CoT Prompting
- Advanced Prompting Techniques - Plan and Solve Prompting
- Advanced Prompting Techniques - Auto CoT Prompting
- Advanced Prompting Techniques - Step Back Prompting
- Safety Risks and Concerns - Prompt Injection Attack
- Safety Risks and Concerns - Prompt Leaking Attack
- Safety Risks and Concerns - Jailbreaking Attack
- Safety Risks and Concerns - Jailbreaking vs Prompt Injection Attack
- Safety Risks and Concerns - Bias
- 5οΈβ£ PE Job Preperation
- discusses technical and non-technical skills required for a prompt engineering job, presents prompt engineering road map, explains the best practices and the future of prompt engineering.
- Prompt Engineering Skills
- Prompt Engineering Road Map
- Prompt Engineering Best Practices
- Prompt Engineering Future
- 6οΈβ£ Useful Resources
-
covers various libraries useful for a prompt engineer, different platforms providing free LLM access, presents various interesting papers related to LLMs and prompting techniques briefly, finally concludes with a brief overview of various important terms.