Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unlocking the Secrets of Prompt Engineering

You're reading from   Unlocking the Secrets of Prompt Engineering Master the art of creative language generation to accelerate your journey from novice to pro

Arrow left icon
Product type Paperback
Published in Jan 2024
Publisher Packt
ISBN-13 9781835083833
Length 316 pages
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Gilbert Mizrahi Gilbert Mizrahi
Author Profile Icon Gilbert Mizrahi
Gilbert Mizrahi
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Part 1:Introduction to Prompt Engineering FREE CHAPTER
2. Chapter 1: Understanding Prompting and Prompt Techniques 3. Chapter 2: Generating Text with AI for Content Creation 4. Part 2:Basic Prompt Engineering Techniques
5. Chapter 3: Creating and Promoting a Podcast Using ChatGPT and Other Practical Examples 6. Chapter 4: LLMs for Creative Writing 7. Chapter 5: Unlocking Insights from Unstructured Text – AI Techniques for Text Analysis 8. Part 3: Advanced Use Cases for Different Industries
9. Chapter 6: Applications of LLMs in Education and Law 10. Chapter 7: The Rise of AI Pair Programmers – Teaming Up with Intelligent Assistants for Better Code 11. Chapter 8: AI for Chatbots 12. Chapter 9: Building Smarter Systems – Advanced LLM Integrations 13. Part 4:Ethics, Limitations, and Future Developments
14. Chapter 10: Generative AI – Emerging Issues at the Intersection of Ethics and Innovation 15. Chapter 11: Conclusion 16. Index 17. Other Books You May Enjoy

Case study 2 – creating a Chrome extension using AI

In this section, we will utilize ChatGPT to rapidly develop a custom Chrome extension. We will then direct it to build the core functionality such as content scripts, background scripts, and UI elements to create a simple but useful extension.

For this example, we will make a simple Chrome extension that, when activated, will display a popup with an input field to display some text and a button. The button, when clicked, will highlight all instances of that text on the site on the selected tab.

Although you don’t need to know how to program, it’s useful to know that a Chrome extension needs a manifest and that it needs to be version 3. This is important because we will be using the free ChatGPT, which uses GPT-3.5. As you know, it doesn’t have access to the internet, and it has been trained with data up to 2021. At that time, the manifest version 3 was in beta. Thus, by default, ChatGPT would create...

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