Share E-Book
Scan to open this page

Scan with your phone to open this page

AuthorNuma Dhamani & Maggie Engler

No description

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
# Introduction to Generative AI, Second Edition ## 【One-Line Pitch】 A comprehensive, responsible guide to understanding, building with, and governing generative AI systems—from LLM fundamentals to agentic AI—written for technical practitioners, product leaders, and policy-minded readers who want to deploy AI reliably in real-world settings. --- ## 【Book Arc】 - **Opening (~0%–10%)**: Establishes the foundation by introducing large language models—what they are, how ChatGPT ignited mainstream adoption, and the core NLP tasks they perform (conversation, summarization, classification, coding assistance). This stage demystifies the "magic" and sets up the technical vocabulary used throughout. - **Early (~10%–25%)**: Dives into LLM training mechanics—pretraining via token prediction, autoregressive vs. bidirectional approaches, knowledge distillation (teacher-student models), Mixture of Experts architectures, and emergent abilities like zero-shot and few-shot learning. Also covers the major players and their strategic positions. - **Early-to-Middle (~25%–40%)**: Explores post-training techniques (RLHF, DPO), data privacy and safety controls, and the legal landscape. Real-world incidents—like Samsung engineers leaking proprietary code into ChatGPT—ground the discussion in concrete risks. Also addresses linguistic and cultural bias in training data. - **Middle (~40%–55%)**: Examines synthetic media and the creative economy—deepfakes, AI-generated images, voice synthesis, and the copyright/authorship debates reshaping creative workflows. The pope's puffer jacket moment illustrates how convincingly AI can imitate reality. - **Late (~55%–80%)**: Covers prompting techniques and frameworks, evaluation metrics for AI outputs, and the shift from prompting to post-training as the preferred customization method. Includes practical guidance on structuring prompts and assembling evaluation datasets. - **Ending (~80%–100%)**: Concludes with AI agents—autonomous systems for personal assistance, enterprise workflows, software development, and cybersecurity. Covers agent architectures, RAG, Model Context Protocol, and the unique risks of autonomy, memory persistence, and multi-agent emergent behaviors. --- ## 【Key Takeaways】 - **LLMs are next-token predictors, not reasoning engines** (Early): The pretraining task—predicting the most probable next token—produces surprisingly capable models, but their "intelligence" is an emergent property, not explicit programming. This distinction matters for setting realistic expectations about reliability. - **Emergent abilities are powerful but unpredictable** (Early): Zero-shot and few-shot learning let models perform tasks they weren't trained for, but these capabilities can't be fully anticipated or controlled. Plan for variability in production systems. - **Knowledge distillation enables efficient deployment** (Early): Large "teacher" models can train smaller "student" models that perform nearly as well at specific tasks with far fewer resources—critical for mobile and edge deployment scenarios. - **Training data bias is a structural problem, not a bug** (Early-to-Middle): Models trained primarily on English and high-resource languages perform worse on tasks grounded in other linguistic and cultural contexts, creating a feedback loop that further marginalizes underrepresented languages. Initiatives like BLOOM and Masakhane are working to counter this. - **Data privacy is the #1 commercial concern** (Middle): Real incidents—Samsung's code leak, ChatGPT's 2023 breach—show why enterprises are moving to private deployments and providers with enterprise data protections. Assume user input may become training data unless explicitly guaranteed otherwise. - **Synthetic media blurs authenticity** (Middle): Deepfakes and AI-generated content threaten evidence integrity and public discourse, but also transform creative workflows. The copyright and consent debates are unresolved and evolving. - **Prompting is being superseded by post-training** (Late): While structured prompting techniques remain useful, fine-tuning and post-training methods like RLHF and DPO are becoming the preferred way to customize model behavior—they're more reliable and scalable than prompt engineering alone. - **AI agents introduce new risk categories** (Ending): Autonomy, memory persistence, tool access, and multi-agent interactions create failure modes that don't exist in single-model systems. Evaluation and oversight must be designed from the start, not retrofitted. --- ## 【Reading Tips】 - **Skim the opening chapter** if you already understand transformer architecture and basic NLP concepts—the book moves quickly into training mechanics, which is where the real depth begins. - **Deep-read the training chapters (Early section)** for the clearest explanation of knowledge distillation, MoE, and post-training techniques. These concepts underpin everything later in the book. - **Pay special attention to the data privacy chapter** (Middle)—the real-world case studies (Samsung, JPMorgan, ChatGPT breach) are the most actionable content for enterprise readers. - **The AI agents chapter (Ending) is forward-looking**—if you're planning agentic systems, read this carefully; if you're still on single-model applications, skim it for awareness. - **Don't skip the evaluation section** (Late)—most practitioners underestimate how hard it is to measure AI output quality, and this section provides a practical framework. --- ## 【Coverage Limits】 This guide synthesizes excerpts covering roughly the first half of the book (through synthetic media and the creative economy) plus the table of contents for later chapters. Detailed content on prompting frameworks, evaluation metrics, and AI agents is summarized from chapter outlines rather than full text. --- ##
Page 18
various points and provided detailed feedback: Christopher Shehu, Danny Vinson, Deniz Acay, Dima Kuchin, Eelco den Heijer, Fadi Maali, Frances Buontempo, Ger...
View in text
Excerpt 2
Ms include Wikipedia, Reddit, and Google News/Google Books. Wikipedia is probably the best-known data source for LLMs, and it has many advantages: it’s writt...
View in text
Excerpt 3
ing morphemes, whereas tonal languages, like Mandarin, use pitch variations to distinguish meaning. Models trained primarily on English or with limited data...
View in text
Excerpt 4
struments, such as the revised Product Liability Directive and the Cyber Resilience Act, further complement the AI Act. The former establishes liability rule...
View in text
Excerpt 5
so nothing was stored, and they could not readily identify which images were from his portfolio. Like in many countries, Ger- man copyright law permits data...
View in text
Excerpt 6
and adversarial attacks: Challenges and responsible testing develop watermarking systems for synthetic media [75]. The EU’s AI Act now mandates disclosure an...
View in text
Excerpt 7
he beginning of a response written by Claude to a request for a script about smoking cessation related to a case aren’t billable, legal firms are especially...
View in text
Excerpt 8
Watermarking in text subtly biases a model’s word choices during generation to embed a hidden pattern that signals AI authorship. One way to visualize this i...
View in text
Tags
AI categories
Artificial IntelligenceTechnologyEducation
Publish Year: 2026
Language: English
File Format: PDF
File Size: 3.0 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…