,

Prompt Engineering for Generative AI

Future-Proof Inputs for Reliable AI Outputs

Paperback Engels 2024 1e druk 9781098153434
€ 91,59
Levertijd ± 16 werkdagen
Gratis verzonden

Samenvatting

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

Specificaties

ISBN13:9781098153434
Trefwoorden:prompts, Generatieve AI
Taal:Engels
Bindwijze:paperback
Aantal pagina's:396
Uitgever:O'Reilly
Druk:1
Verschijningsdatum:31-5-2024
Hoofdrubriek:IT-management / ICT

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

Preface
Software Requirements for This Book
Conventions Used in This Book
Using Code Examples
O’Reilly Online Learning
How to Contact Us
Acknowledgments

1. The Five Principles of Prompting
Overview of the Five Principles of Prompting
1. Give Direction
2. Specify Format
3. Provide Examples
4. Evaluate Quality
5. Divide Labor
Summary

2. Introduction to Large Language Models for Text Generation
What Are Text Generation Models?
Vector Representations: The Numerical Essence of Language
Transformer Architecture: Orchestrating Contextual Relationships
Probabilistic Text Generation: The Decision Mechanism
Historical Underpinnings: The Rise of Transformer Architectures
OpenAI’s Generative Pretrained Transformers
GPT-3.5-turbo and ChatGPT
GPT-4
Google’s Gemini
Meta’s Llama and Open Source
Leveraging Quantization and LoRA
Mistral
Anthropic: Claude
GPT-4V(ision)
Model Comparison
Summary

3. Standard Practices for Text Generation with ChatGPT
Generating Lists
Hierarchical List Generation
When to Avoid Using Regular Expressions
Generating JSON
YAML
Filtering YAML Payloads
Handling Invalid Payloads in YAML
Diverse Format Generation with ChatGPT
Mock CSV Data
Explain It like I’m Five
Universal Translation Through LLMs
Ask for Context
Text Style Unbundling
Identifying the Desired Textual Features
Generating New Content with the Extracted Features
Extracting Specific Textual Features with LLMs
Summarization
Summarizing Given Context Window Limitations
Chunking Text
Benefits of Chunking Text
Scenarios for Chunking Text
Poor Chunking Example
Chunking Strategies
Sentence Detection Using SpaCy
Afgekapt op 60 regels

Managementboek Top 100

€ 91,59
Levertijd ongeveer 16 werkdagen
Gratis verzonden

Rubrieken

Producten

    Auteurs

      Trefwoorden

        Artikelen

          Prompt Engineering for Generative AI