Almost Timely News, November 19, 2023: A Deep Dive on Prompt Libraries

Almost Timely News: A Deep Dive on Prompt Libraries (2023-11-19) :: View in Browser

Almost Timely News

πŸ‘‰ Watch the newest version of my talk, The Intelligence Revolution, recorded live at DigitalNow 2023, now with more talking robot dogs! (plus get the slides) πŸ“Ί

Content Authenticity Statement

100% of this newsletter’s content was generated by me, the human. When I use AI, I’ll disclose it prominently. Learn why this kind of disclosure is important.

Watch This Newsletter On YouTube πŸ“Ί

Almost Timely News: A Deep Dive on Prompt Libraries (2023-11-19)

Click here for the video πŸ“Ί version of this newsletter on YouTube Β»

Click here for an MP3 audio 🎧 only version »

What’s On My Mind: A Deep Dive on Prompt Libraries

I’m going to studiously ignore the topical news of the week about the kerfuffle at OpenAI until we have some objective facts. In the meantime, let’s talk about your prompt library. One of the things I’ve advocated for in every talk and workshop I’ve ever given on generative AI is the importance of a prompt library, of building a prompt library. It’s more important than ever for you to have one, so let’s dig into how to set one up.

First, what is a prompt library? It’s pretty much what it sounds like – a library of prompts you use with generative AI tools that get you the results you want. Prompt libraries are universal, in that you set one up for all the different generative AI tools available – text models, image models, video models, etc. Like a real library, they help you catalog what you have and make it easy to find what you’re looking for.

Why do you need a prompt library? Two reasons. First, you need a prompt library so that you have a record of your successes, a repository of things that work. This dramatically improves repeatability and reproducibility. The first time you do a task with generative AI, you write your prompt and then every time after you have to do that same task, getting started should be as easy as copying and pasting something from your prompt library. You might need to tweak or adjust a prompt over time, but you’ve got most of what you need in a system.

Second, you need a prompt library so that you can share your successes with others when and where appropriate. If you work at a company with more than just yourself as an employee or contractor, a prompt library lets you share your encoded knowledge and capabilities with other people on your team. It helps them get started faster, and if they make improvements on your prompts, you get access to those improvements so your work gets better, too.

If this is starting to sound suspiciously like code management, it is. Prompts are software that you code. Every time you use a generative AI tool, you are coding. It’s just you’re coding in human language rather than computer language, English instead of Python. That means the same things that have made computer programming languages successful, like repositories of code and version control, are also going to make prompt engineering libraries successful too.

It also means that you should protect your prompt library with the same vigor that you protect the source code of code written by developers. In the same way you wouldn’t just willy nilly give away proprietary code from your C# or Java software repositories at your company, neither should you just give away your prompts. They are pieces of code that you run with a computer and thus valuable intellectual property.

I suppose there’s a third reason you need a prompt library, for more advanced users: it’s the basis for your own app building, for building apps based on your prompts. We’ll talk about that more in a bit.

So, what should belong in a prompt library? Think about what goes into a software repository like a Git repo:

  • The software itself
  • Who wrote it
  • When they wrote it
  • What language/platform/tool it runs in
  • What it’s for/why it exists at all
  • Who should or shouldn’t have access to it

In a similar vein, our prompt library should have similar metadata.

  • The prompt itself, of course
  • Ideally, a sample outcome of the prompt
  • Who wrote the prompt
  • When they wrote it
  • Which model it’s for – Bard, Bing, ChatGPT, Claude 2, Stable Diffusion, Midjourney, etc.
  • What category of task the prompt is for – summarization, images, rewriting, video, etc.
  • The name of the prompt

If you have all this data in your prompt library, you will maximize its power because people will be able to find what they want, when they want it (including you). It will dramatically speed up your work in generative AI.

Let’s look at an example prompt and how we’d put it in a library. This prompt takes a sensational news story and reduces it to a boring news story.

You are an intelligence officer specializing in news analysis. You know open source intelligence, news, news feeds, summarization, topic modeling, semantics, linguistics, key concepts, extraction, transcripts, transcription, diarization, interviews, discussions, podcasts. Your first task is to summarize the following news article.

Summarize in the following ways:

  • Remove any and all opinion and speculation; summarize only facts
  • Remove any hyperbolic, highly emotional, and inflammatory language
  • Remove any partisan or heavily skewed perspective
  • Remove clickbait, exaggeration, and sensational language
  • Remove misleading or deceptive information
  • Remove promotional, commercial, and sales language
  • Rewrite in a neutral point of view

This prompt is a great prompt for taking all the absurdity out of clickbait news stories and boiling them down to the facts. So, what would accompany it in a prompt library?

  • The prompt
  • A sample of the output that you’ve reviewed and approved
  • My name
  • The date I wrote it (today)
  • The model it’s for – GPT-3.5-Turbo or GPT-4-Turbo
  • Purpose: summarizing news stories
  • Access: open

Now, how do you catalog and store prompts? With these fields in mind, store them in any appropriate storage mechanism that accommodates this sort of metadata. That can be a notebook like Evernote, OneNote, or Joplin. That can be a document management system like OneDrive, Google Drive, or shudder Sharepoint. That can be a database like AirTable or Base. Whatever works best for you that causes you the least amount of work to store the relevant data in a format that’s searchable. I personally use Joplin because it’s open-source and free. The one thing I would NOT caution is just leaving your prompts in the history mechanism of your language model interface of choice. All it takes is one accidental click/clear history, and you could lose your entire prompt library with no way of recovering it.

Here’s where your prompt library levels you up even more. Last week, you heard about Custom GPTs and fine-tuned models, how you can build apps now right inside the ChatGPT environment. Guess where all your app ideas for Custom GPTs and LLM-based apps could come from? That’s right – your prompt library. If you’ve been diligent about storing your prompts, you have a literal library of apps you could build. Now, not every prompt needs to become an app, but if you have a prompt library of the prompts you use the most, it’s trivial to turn that prompt into an app like a Custom GPT. And because you’ve already used the prompts, you know their value and can prioritize which prompts should become apps based on the ones you use the most or save you the most time.

Build a prompt library as soon as possible, and share it with the appropriate parties as quickly as you can. The sooner you have a cookbook of prompts that work great, the sooner you’ll be able to amplify and scale your productivity with generative AI.

How Was This Issue?

Rate this week’s newsletter issue with a single click. Your feedback over time helps me figure out what content to create for you.

Share With a Friend or Colleague

If you enjoy this newsletter and want to share it with a friend/colleague, please do. Send this URL to your friend/colleague:

https://www.christopherspenn.com/newsletter

For enrolled subscribers on Substack, there are referral rewards if you refer 100, 200, or 300 other readers. Visit the Leaderboard here.

ICYMI: In Case You Missed it

Besides the newly-refreshed Google Analytics 4 course I’m relentlessly promoting (sorry not sorry), I recommend the piece on why I moved my newsletter to Substack.

Skill Up With Classes

These are just a few of the classes I have available over at the Trust Insights website that you can take.

Premium

Free

Advertisement: Generative AI Workshops & Courses

Imagine a world where your marketing strategies are supercharged by the most cutting-edge technology available – Generative AI. Generative AI has the potential to save you incredible amounts of time and money, and you have the opportunity to be at the forefront. Get up to speed on using generative AI in your business in a thoughtful way with Trust Insights’ new offering, Generative AI for Marketers, which comes in two flavors, workshops and a course.

Workshops: Offer the Generative AI for Marketers half and full day workshops at your company. These hands-on sessions are packed with exercises, resources and practical tips that you can implement immediately.

πŸ‘‰ Click/tap here to book a workshop

Course: We’ve turned our most popular full-day workshop into a self-paced course. The Generative AI for Marketers online course launches on December 13, 2023. You can reserve your spot and save $300 right now with your special early-bird discount! Use code: EARLYBIRD300. Your code expires on December 13, 2023.

πŸ‘‰ Click/tap here to pre-register for the course

Get Back to Work

Folks who post jobs in the free Analytics for Marketers Slack community may have those jobs shared here, too. If you’re looking for work, check out these recent open positions, and check out the Slack group for the comprehensive list.

What I’m Reading: Your Stuff

Let’s look at the most interesting content from around the web on topics you care about, some of which you might have even written.

Social Media Marketing

Media and Content

SEO, Google, and Paid Media

Advertisement: Business Cameos

If you’re familiar with the Cameo system – where people hire well-known folks for short video clips – then you’ll totally get Thinkers One. Created by my friend Mitch Joel, Thinkers One lets you connect with the biggest thinkers for short videos on topics you care about. I’ve got a whole slew of Thinkers One Cameo-style topics for video clips you can use at internal company meetings, events, or even just for yourself. Want me to tell your boss that you need to be paying attention to generative AI right now?

πŸ“Ί Pop on by my Thinkers One page today and grab a video now.

Tools, Machine Learning, and AI

Analytics, Stats, and Data Science

All Things IBM

Dealer’s Choice : Random Stuff

How to Stay in Touch

Let’s make sure we’re connected in the places it suits you best. Here’s where you can find different content:

Advertisement: Ukraine πŸ‡ΊπŸ‡¦ Humanitarian Fund

The war to free Ukraine continues. If you’d like to support humanitarian efforts in Ukraine, the Ukrainian government has set up a special portal, United24, to help make contributing easy. The effort to free Ukraine from Russia’s illegal invasion needs our ongoing support.

πŸ‘‰ Donate today to the Ukraine Humanitarian Relief Fund Β»

Events I’ll Be At

Here’s where I’m speaking and attending. Say hi if you’re at an event also:

  • Social Media Marketing World, San Diego, February 2024
  • Australian Food and Grocery Council, Melbourne, May 2024
  • MAICON, Cleveland, September 2024

Events marked with a physical location may become virtual if conditions and safety warrant it.

If you’re an event organizer, let me help your event shine. Visit my speaking page for more details.

Can’t be at an event? Stop by my private Slack group instead, Analytics for Marketers.

Required Disclosures

Events with links have purchased sponsorships in this newsletter and as a result, I receive direct financial compensation for promoting them.

Advertisements in this newsletter have paid to be promoted, and as a result, I receive direct financial compensation for promoting them.

My company, Trust Insights, maintains business partnerships with companies including, but not limited to, IBM, Cisco Systems, Amazon, Talkwalker, MarketingProfs, MarketMuse, Agorapulse, Hubspot, Informa, Demandbase, The Marketing AI Institute, and others. While links shared from partners are not explicit endorsements, nor do they directly financially benefit Trust Insights, a commercial relationship exists for which Trust Insights may receive indirect financial benefit, and thus I may receive indirect financial benefit from them as well.

Thank You

Thanks for subscribing and reading this far. I appreciate it. As always, thank you for your support, your attention, and your kindness.

See you next week,

Christopher S. Penn


You might also enjoy:


Want to read more like this from Christopher Penn? Get updates here:

subscribe to my newsletter here


AI for Marketers Book
Take my Generative AI for Marketers course!

Analytics for Marketers Discussion Group
Join my Analytics for Marketers Slack Group!



Comments

One response to “Almost Timely News, November 19, 2023: A Deep Dive on Prompt Libraries”

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Shares
Share This