liveBook · Manning

What you will learn in Introduction to Generative AI, Second Edition

Reliable, responsible, and real-world applications

by Numa Dhamani and Maggie Engler
Foreword by Alice Hunsberger

Chapter by chapter

Chapter 1: Large language models: The foundation of generative AI

1.1 The evolution of natural language processing · 1.2 The birth of LLMs · 1.3 The explosion of LLMs · 1.4 What are LLMs used for? · 1.5 Language modeling · 1.6 Question answering · 1.7 Coding · 1.8 Content generation · 1.9 Logical reasoning · 1.10 Other natural language tasks · 1.11 Where do LLMs fall short? · 1.12 Training data and bias · 1.13 Limitations in controlling machine outputs · 1.14 Sustainability of LLMs · 1.15 Major players in generative AI · 1.16 OpenAI · 1.17 Google · 1.18 Meta · 1.19 Microsoft · 1.20 Anthropic · 1.21 Other notable players · 1.22 Conclusion · 1.23 Summary

What you learn in chapter 1 →

Chapter 2: Training large language models: Learning at scale

2.1 How are LLMs trained? · 2.2 Exploring open web data collection · 2.3 Demystifying autoregression and bidirectional token prediction · 2.4 Training multimodal LLMs · 2.5 Transferring knowledge for efficient models · 2.6 Mixture of Experts and sparse models · 2.7 Reasoning models · 2.8 Techniques for post-training LLMs · 2.9 Supervised fine-tuning · 2.10 Reinforcement learning from human feedback · 2.11 Direct preference optimization · 2.12 Reinforcement learning from AI feedback · 2.13 Emergent properties of LLMs · 2.14 Learning with a few examples · 2.15 Is emergence an illusion? · 2.16 Conclusion · 2.17 Summary

What you learn in chapter 2 →

Chapter 3: Data privacy and safety: Technical and legal controls

3.1 What’s in the training data? · 3.2 Encoding bias · 3.3 Linguistic diversity · 3.4 Sensitive information · 3.5 Safety-focused improvements for LLM generations · 3.6 Post-processing detection algorithms · 3.7 Content filtering or conditional pretraining · 3.8 Safety post-training · 3.9 Machine unlearning · 3.10 Navigating user privacy and commercial risks · 3.11 Inadvertent data leakage · 3.12 Best practices when interacting with LLMs · 3.13 Data protection and privacy in the age of AI · 3.14 International standards and data protection laws · 3.15 Are generative AI systems GDPR-compliant? · 3.16 Privacy regulations in academia · 3.17 Corporate policies · 3.18 Governing data in an AI-driven world · 3.19 Conclusion · 3.20 Summary

What you learn in chapter 3 →

Chapter 4: AI and the creative economy: Innovation and intellectual property

4.1 The rise of synthetic media · 4.2 Techniques for creating synthetic media · 4.3 The opportunities and risks of synthetic media · 4.4 Detecting synthetic media · 4.5 Transforming creative workflows · 4.6 Marketing and media applications · 4.7 Visual and digital art · 4.8 Filmmaking · 4.9 Music · 4.10 Intellectual property in the LLM era · 4.11 Copyright law and fair use · 4.12 Open source and licenses · 4.13 Creator’s rights and data licensing · 4.14 Conclusion · 4.15 Summary

What you learn in chapter 4 →

Chapter 5: Misuse and adversarial attacks: Challenges and responsible testing

5.1 Intentional misuse · 5.2 Cybersecurity and social engineering · 5.3 Illicit and harmful applications · 5.4 Adversarial narratives · 5.5 Political manipulation and electioneering · 5.6 Hallucinations · 5.7 Why do LLMs hallucinate? · 5.8 Misuse of LLMs in the professional world · 5.9 Red teaming LLMs · 5.10 Conclusion · 5.11 Summary

What you learn in chapter 5 →

Chapter 6: Machine-augmented work: Productivity, education, and economy

6.1 Using LLMs in the professional space · 6.2 LLMs assisting doctors with administrative tasks · 6.3 LLMs for legal research, discovery, and documentation · 6.4 LLMs augmenting financial investing and bank customer service · 6.5 LLMs as collaborators in creativity · 6.6 LLMs as a programming partner · 6.7 LLMs in daily life · 6.8 Generative AI in education · 6.9 Detecting machine-generated text · 6.10 Generative AI and the labor market · 6.11 Conclusion · 6.12 Summary

What you learn in chapter 6 →

Chapter 7: Prompt engineering: Strategies for guiding and evaluating LLMs

7.1 What is prompt engineering? · 7.2 Prompting techniques and frameworks · 7.3 Overview of common prompting techniques · 7.4 Structuring prompts to guide model behavior · 7.5 Prompting frameworks for structured output · 7.6 Evolving practices in prompt engineering · 7.7 Evaluating AI-generated outputs · 7.8 Identifying evaluation metrics · 7.9 Assembling evaluation datasets · 7.10 Scoring model responses · 7.11 Prompting vs. post-training · 7.12 Conclusion · 7.13 Summary

What you learn in chapter 7 →

Chapter 8: AI agents: The rise of autonomous AI systems

8.1 What is an AI agent? · 8.2 How are AI agents being used? · 8.3 Personal assistants · 8.4 Enterprise workflows · 8.5 Research and discovery · 8.6 Software development · 8.7 Cybersecurity · 8.8 Physical environments · 8.9 Multi-agent systems · 8.10 Toward agentic collaboration · 8.11 How are AI agents trained and enabled? · 8.12 Agent architectures · 8.13 Retrieval-augmented generation · 8.14 Model Context Protocol · 8.15 GUI-native agents · 8.16 Evaluating agents · 8.17 Risks and considerations unique to agents · 8.18 Autonomy and misalignment · 8.19 Memory and state persistence · 8.20 Tool access and real-world consequences · 8.21 Emergent behaviors in multi-agent systems · 8.22 Security and adversarial risks · 8.23 Human factors and decision delegation · 8.24 Evaluation, monitoring, and oversight · 8.25 The road ahead · 8.26 The future of AI agents · 8.27 Conclusion · 8.28 Summary

What you learn in chapter 8 →

Chapter 9: Human connections: The social role of chatbots

9.1 The rise of human–chatbot relationships · 9.2 Why humans are turning to chatbots for relationships · 9.3 The loneliness epidemic · 9.4 Emotional attachment in human–chatbot relationships · 9.5 The benefits and risks of human–chatbot relationships · 9.6 Toward healthier human–chatbot relationships · 9.7 Conclusion · 9.8 Summary

What you learn in chapter 9 →

Chapter 10: The future of responsible AI: Risks, practices, and policy

10.1 Where are LLM developments headed? · 10.2 Language as the universal interface · 10.3 From tools to agentic systems · 10.4 The rise of personalized AI · 10.5 On the horizon · 10.6 Sociotechnical risks of generative AI · 10.7 Bias, toxicity, and representational harms · 10.8 Hallucinations and fabrications · 10.9 Privacy and data leakage · 10.10 Adversarial attacks and security vulnerabilities · 10.11 Autonomy and emergent agentic risks · 10.12 Misuse across domains · 10.13 Dependency, emotional harm, and relationship risks · 10.14 Labor and economic disruption · 10.15 A holistic view of harm · 10.16 Best practices for responsible AI development and use · 10.17 Curating datasets and standardizing documentation · 10.18 Protecting data privacy · 10.19 Explainability, transparency, and bias · 10.20 Design interventions and architectures · 10.21 Model training strategies for safety · 10.22 Red teaming and evaluation · 10.23 Detecting and tracing synthetic media · 10.24 Platform responsibility and user safeguards · 10.25 Humans in the loop · 10.26 Education and digital literacy · 10.27 Toward responsible generative AI · 10.28 AI regulations in practice · 10.29 The United States · 10.30 The European Union · 10.31 China · 10.32 Corporate self-governance · 10.33 Toward an AI governance framework · 10.34 Conclusion · 10.35 Summary

What you learn in chapter 10 →

Chapter 11: Frontiers of AI: Open questions and global trends

11.1 The quest for artificial general intelligence · 11.2 AI sentience and consciousness · 11.3 The carbon footprint of LLMs · 11.4 The open source movement · 11.5 Global investment in AI · 11.6 Conclusion · 11.7 Summary

What you learn in chapter 11 →

Concepts explained in this book

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.