Book description
Large language models (LLMs) promise unprecedented benefits. Well versed in common topics of human discourse, LLMs can make useful contributions to a large variety of tasks, especially now that the barrier for interacting with them has been greatly reduced. Potentially, any developer can harness the power of LLMs to tackle large classes of problems previously beyond the reach of automation.
This book provides a solid foundation of LLM principles and explains how to apply them in practice. When first integrating LLMs into workflows, most developers struggle to coax useful insights from them. That's because communicating with AI is different from communicating with humans. This guide shows you how to present your problem in the model-friendly way called prompt engineering.
With this book, you'll:
- Examine the user-program-AI-user model interaction loop
- Understand the influence of LLM architecture and learn how to best interact with it
- Design a complete prompt crafting strategy for an application that fits into the application context
- Gather and triage context elements to make an efficient prompt
- Formulate those elements so that the model processes them in the way that's desired
- Master specific prompt crafting techniques including few-shot learning, and chain-of-thought prompting
Publisher resources
Table of contents
- Brief Table of Contents (Not Yet Final)
- 1. Introduction to Prompt Engineering
- 2. Understanding LLMs
- 3. From Document Completion to Personal Assistant
- 4. Designing LLM Applications
- 5. What Goes into the Prompt
- 6. A Sea of Context
- 7. Assembling the Pseudo-Document
- 8. Taming the Model
- About the Authors
Product information
- Title: Prompt Engineering for LLMs
- Author(s):
- Release date: December 2024
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098156152
You might also like
video
Prompt Engineering For Everyone with ChatGPT and GPT-4
Prompt engineering is strategically designing and modifying prompts used in ChatGPT to achieve desired outputs and …
book
Prompt Engineering for Generative AI
Large language models (LLMs) and diffusion models such as ChatGPT and Stable Diffusion have unprecedented potential. …
book
Observability Engineering
Observability is critical for building, changing, and understanding the software that powers complex modern systems. Teams …
book
Developing Apps with GPT-4 and ChatGPT
This minibook is a comprehensive guide for Python developers who want to learn how to build …