Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Practical Generative AI with ChatGPT

You're reading from   Practical Generative AI with ChatGPT Unleash your prompt engineering potential with OpenAI technologies for productivity and creativity

Arrow left icon
Product type Paperback
Published in Apr 2025
Publisher Packt
ISBN-13 9781836647850
Length 386 pages
Edition 2nd Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Valentina Alto Valentina Alto
Author Profile Icon Valentina Alto
Valentina Alto
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Fundamentals of Generative AI and OpenAI
2. Introduction to Generative AI FREE CHAPTER 3. OpenAI and ChatGPT: Beyond the Market Hype 4. ChatGPT in Action
5. Understanding Prompt Engineering 6. Boosting Day-to-Day Productivity with ChatGPT 7. Developing the Future with ChatGPT 8. Mastering Marketing with ChatGPT 9. Research Reinvented with ChatGPT 10. Unleashing Creativity Visually with ChatGPT 11. Exploring GPTs 12. OpenAI for Enterprises
13. Leveraging OpenAI’s Models for Enterprise-Scale Applications 14. Epilogue and Final Thoughts 15. Other Books You May Enjoy
16. Index
Appendix

Understanding Prompt Engineering

In the previous chapters, we mentioned the term prompt several times while referring to user input in ChatGPT and large language models (LLMs) in general.

Since prompts have a massive impact on LLMs’ performance, prompt engineering is a crucial activity to get the most out of your GenAI tool. In fact, there are several techniques that can be implemented not only to refine your LLMs’ responses but also to reduce risks associated with hallucinations and biases.

In this chapter, we are going to cover the emerging techniques in the field of prompt engineering, starting from basic approaches up to advanced frameworks. More specifically, we will go through the following topics:

  • What is prompt engineering?
  • Exploring zero-, one-, and few-shot learning
  • Principles of prompt engineering
  • Looking at some advanced techniques
  • Ethical considerations to avoid bias

By the end of this chapter, you will...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime