Skip to Content
Prompt Engineering for LLMs
book

Prompt Engineering for LLMs

by John Berryman, Albert Ziegler
November 2024
Intermediate to advanced content levelIntermediate to advanced
282 pages
8h 1m
English
O'Reilly Media, Inc.
Book available
Content preview from Prompt Engineering for LLMs

Chapter 8. Conversational Agency

In Chapter 3, we covered the departure from text completion models to chat models. A chat model by itself is aware of only the information covered in training and whatever information the user has just told it. The chat model is unable to reach out into the world and learn about information that was unavailable during training, and it’s unable to interact with the world and take external actions on behalf of the user.

The LLM community is making great headway in overcoming these limitations through conversational agency. Agency is the ability of an entity to complete tasks and achieve goals in a self-directed and autonomous manner. The conversational agents that we discuss in this chapter provide an experience similar to chat—a back-and-forth dialogue between a user and an assistant—but add in the ability for the assistant to reach out to the real world, learn new information, and interact with real-world assets.

In this chapter, we’ll introduce several state-of-the-art approaches to building an LLM-based conversational agent. We’ll explore how models can use tools to reach out into the external world, how they can be conditioned to better reason through their problem space, and how we can gather the best context to facilitate long or complex interactions. By the end of this chapter, you’ll be able to build your own conversational agent that’s capable of going out into the world and performing guided tasks on your behalf.

Tool Usage

Working in ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Designing Data-Intensive Applications

Designing Data-Intensive Applications

Martin Kleppmann
Prompt Engineering for Generative AI

Prompt Engineering for Generative AI

James Phoenix, Mike Taylor

Publisher Resources

ISBN: 9781098156145Errata Page