Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: James Phoenix, Mike Taylor

Rating No ratings yet

Large language models (LLMs) and diffusion models such as ChatGPT and Stable Diffusion have unprecedented potential. Because they have been trained on all the public text and images on the internet, they can make useful contributions to a wide variety of tasks. And with the barrier to entry greatly reduced today, practically any developer can harness LLMs and diffusion models to tackle problems previously unsuitable for automation. With this book, you'll gain a solid foundation in generative AI, including how to apply these models in practice. When first integrating LLMs and diffusion models into their workflows, most developers struggle to coax reliable enough results from them to use in automated systems. Authors James Phoenix and Mike Taylor show you how a set of principles called prompt engineering can enable you to work effectively with AI. Learn how to empower AI to work for you. This book explains: ● The structure of the interaction chain of your program's AI model and the fine-grained steps in between ● How AI model requests arise from transforming the application problem into a document completion problem in the model training domain ● The influence of LLM and diffusion model architecture--and how to best interact with it ● How these principles apply in practice in the domains of natural language processing, text and image generation, and code Table of Contents: Preface 1. The Five Principles of Prompting 2. Introduction to Large Language Models for Text Generation 3. Standard Practices for Text Generation with ChatGPT 4. Advanced Techniques for Text Generation with LangChain 5. Vector Databases with FAISS and Pinecone 6. Autonomous Agents with Memory and Tools 7. Introduction to Diffusion Models for Image Generation 8. Standard Practices for Image Generation with Midjourney 9. Advanced Techniques for Image Generation with Stable Diffusion 10. Building AI-Powered Applications

AI Reading Assistant

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

AI guide
【One-Line Pitch】 A practical, model-agnostic guide to prompt engineering for developers and AI practitioners who want to turn LLMs and diffusion models into reliable, production-ready tools—covering everything from core prompting principles to advanced techniques with LangChain, vector databases, and image generation. 【Book Arc】 - **Opening (~0%–25%)**: Introduces the book’s core premise—that prompt engineering is the key to making generative AI reliable—and lays out the five transferable principles of prompting that apply across models, setting the foundation for the rest of the book. - **Early (~25%–50%)**: Moves into the fundamentals of large language models for text generation, explaining how to structure interactions with ChatGPT and apply standard practices for consistent, useful outputs in real-world NLP tasks. - **Middle (~50%–75%)**: Advances into production-grade techniques, covering LangChain for complex text workflows, vector databases like FAISS and Pinecone for memory and retrieval, and autonomous agents that combine tools and memory for more sophisticated automation. - **Late (~75%–100%)**: Shifts to image generation, starting with an introduction to diffusion models, then standard practices with Midjourney and advanced techniques with Stable Diffusion, before wrapping up with guidance on building complete AI-powered applications. - **Ending (~100%)**: Closes with a focus on practical application—how to integrate these principles into real projects, evaluate model choices (e.g., GPT-4 vs. open-source alternatives), and future-proof your AI workflows as the field evolves. 【Key Takeaways】 - **Five transferable prompting principles** (Early): The book’s central framework—these principles are designed to work across different models and remain relevant as AI evolves, giving you a stable foundation rather than model-specific tricks. - **LLMs as document completion engines** (Early): Understanding that AI requests are essentially transforming application problems into document completion tasks in the model’s training domain—this reframing helps you design better prompts and set realistic expectations. - **Standard text generation practices with ChatGPT** (Early): Practical patterns for coaxing reliable outputs from ChatGPT, including how to structure prompts, handle edge cases, and evaluate results for consistency in automated systems. - **LangChain for advanced workflows** (Middle): Using LangChain to chain together multiple LLM calls, manage context, and build more complex text-generation pipelines—essential for moving beyond single-prompt use cases. - **Vector databases for memory and retrieval** (Middle): FAISS and Pinecone enable you to give LLMs access to external knowledge, making outputs more accurate and context-aware—critical for production applications that need up-to-date or domain-specific information. - **Autonomous agents with tools and memory** (Middle): Combining LLMs with tools and memory systems allows for more autonomous problem-solving, where the AI can reason, fetch data, and act on it—a step toward more capable, self-directed systems. - **Diffusion models for image generation** (Late): An introduction to how diffusion models like Stable Diffusion and Midjourney work, plus standard practices for generating high-quality images—covering prompt structure, style control, and iteration techniques. - **Building AI-powered applications end-to-end** (Late): The final chapters tie everything together, showing how to integrate text and image generation into real products, evaluate model trade-offs, and design for reliability and scale. 【Reading Tips】 - **Skim the praise and front matter** (~0%–25%): The early chunks are heavy on endorsements and book metadata—skip ahead to Chapter 1 for the five principles, which are the conceptual core you’ll want to internalize. - **Deep-read Chapters 2–4** (~25%–50%): These cover LLM fundamentals and text generation practices—the most transferable material for developers. Pay close attention to the document completion framing and LangChain examples, as they’ll be referenced throughout. - **Treat Chapters 5–6 as reference material** (~50%–75%): Vector databases and autonomous agents are more advanced and tool-specific. Skim for concepts first, then return when you need to implement retrieval or agent-based systems in your own projects. - **Focus on principles over model specifics** (throughout): The authors emphasize future-proofing—don’t get bogged down in version-specific details (e.g., GPT-4 vs. newer models). Instead, note how the five principles apply to each new tool or technique. - **Use the final chapter as a capstone** (~75%–100%): Chapter 10 on building AI-powered applications is where it all comes together—read it even if you skip some image-generation details, as it shows how to integrate text and image workflows into real products. 【Coverage Limits】 The excerpts provided are primarily front matter, endorsements, and metadata—they do not include substantive content from the chapters themselves. This guide synthesizes the book’s stated structure and promises from the table of contents and blurbs, but specific examples, code, and detailed techniques are not covered here.
Excerpt 1
书名: Prompt Engineering for Generative AI Future Proof Inputs for Reliable Al Outputs (James Phoenix, Mike Taylor) (Z Library) 作者: James Phoenix, Mike Taylor
View in text
Excerpt 2
Standard Practices for Image Generation with Midjourney 9. Advanced Techniques for Image Generation with Stable Diffusion 10. Building AI-Powered Applicatio...
View in text
Page 2
g agency Ladder, employing 50 people in the USA, UK, and EU. James and Mike teach generative AI courses through their company Vexpower. 9 7 8 1 0 9 8 1 5 3 4...
View in text
Page 4
op of this very competitive game for the foreseeable future. —Ellis Crosby, CTO and cofounder, Incremento This is an essential guide for agency and service p...
View in text
Page 6
nal sales department: 800-998-9938 or corporate@oreilly.com. Acquisitions Editor: Nicole Butterfield Development Editor: Corbin Collins Copyeditor: Piper Edi...
View in text
Tags
AI categories
AIProgramming LanguageBackend
ISBN: 109815343X
Publish Year: 2024
Language: Chinese
Pages: 423
File Format: PDF
File Size: 4.8 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…