- Bytes and Brew
- Posts
- The Essentials to Build a Prompt Library
The Essentials to Build a Prompt Library
PLUS big news from OpenAI...
Edition #9: Building a Prompt Library
Approximate read time: 8 minutes
👋 Hi there!
I’ve got an edition that I have been wanting to write for quite some time: Building a Prompt Library. Do you remember that one prompt sequence that you really liked but forgot to save off? A prompt library allows you to save your prompts to make them more accessible!
More on this later. Here’s what you need to know:
Big AI News: DALL-E 3 was released by OpenAI last week, and it blows Midjourney out of the waters in terms of quality. For this edition, I will be showcasing 3 DALL-E 3 images with their associated prompts.
Advertisements: If you are looking for a newsletter to spread the word about your product or service, please visit the advertisement page for more information on how to get in touch.
Let’s not waste any time and get into it.
New here? Grab a cup of coffee - we’re talking AI here. This newsletter talks about how you can use AI to create solutions to problems, so if this sounds like your kind of thing, hit that “subscribe” button below!
Imagine having a cheat sheet at your disposal 24 hours a day, 7 days a week. Imagine that this cheat sheet allows you to streamline interactions in a smarter and swifter manner.
Allow me to introduce you to a prompt library.
What is a prompt library?
A prompt library is a personal collection of curated prompts that aims to streamline interactions with large language models (such as ChatGPT).
I won’t discuss how to craft prompts in this edition – instead, I’ll point you towards Edition 1 – Creating the Perfect Prompt: The 3 Components.
There are several benefits to having a prompt library, including:
Consistent results between prompting sessions;
Preservation of optimized prompts for specific tasks;
Semi-automating repetitive tasks.
To save your prompt library, I suggest using a spreadsheet-based tool such as Excel or Notion so that you can easily search and sort. I also suggest that you sort your prompt library by objectives, topic/subject, or frequency of use. I have found that sorting it by objective is the most beneficial to me.
A Practical, Scalable, and Reproducible Example
I firmly believe that the education industry can benefit most from this, so I’ll keep my sample prompt sequence to this industry. However, other industries (such as software, business, and marketing) can also leverage a utility such as this.
One large pain point of instructors, regardless of subject, is content creation. Creating content takes a long time and can be a grind (hi, fellow content creator here!). Content, in the case of educators, can come in the form of assignments and lecture materials.
This is where your prompt library will come in handy! You’ll have prompts that help expedite that content creation process saved off that you know work for your specific problem.
Here’s an example sequence of prompts that you can test, modify, and save off (spoiler: see the below prompt sequence in action with ChatGPT).
Prompt 1: “You are a {grade level} {teacher/professor} creating an assignment for your class. {description of the assignment with learning objectives/outcomes}. Before creating the assignment, I want you to list {number} different ways we can have students interact with the content.”
Prompt 2: “Next, I want you to think as the student who is working on this assignment – how would I benefit from this assignment? What could students struggle with? What concepts could students grasp easily?”
Prompt 3: “Now, I want you to list main points for the assignment instructions using {method from prompt 1}. Keep in mind your previous response and draft these points to fully optimize the learning objective.”
How do I save these prompts?
As mentioned before, I recommend saving it in a table-like software such as Excel or Notion. If I were to integrate this into my prompt library, this is how I would do it:
Adding the prompt into Excel
In my prompt library, I have “Sequence ID” to tie all of the chain of prompts together that achieve a certain task. Sequence order is a column that tells me which prompts to use in which order.
Here’s a few more examples of prompts that can go into your prompt library:
Email Campaigns: “Outline a welcome sequence for . Be sure to highlight {specific product/service/item} and try to invoke {emotion}.”
Code boundary case identification:
Prompt 1: “Given the following block of code, please identify any boundary cases and provide a brief description of each one: {code}”
Prompt 2: “Now write test code in {language} to cover the boundary cases listed.”
Prompt “The words "Every apple has a story" in between Newton and Steve standing side by side. Newton, with thick curly hair and 17th-century attire, holds a red apple. Beside him, Steve, in his iconic black turtleneck and glasses, holds a sleek iPad.” |
🧠 Business: Braintrust Data - An enterprise-level grade stack for building AI products.
✏️ Social Media: Tweet Hunter - Use AI to create content for Twitter.
💻️ Software: Dataloop AI - Streamline the process to generate data for AI
📚️ Education: Teachermatic - Use 42 different kind of generators to create content for your students.
☁️ Weather: Research paper - How we can use deep generative models to improve precipitation nowcasting.
🤩 Bonus: NBC News - Spotify to use AI to replicate podcasters’ voices and translate them to other languages.
If you want to see your AI product in here, please visit the advertisement page. It doesn’t have to be an AI application - it can be anything related to AI!
Some links are affiliate links. Purchasing is no extra cost to you and they support the newsletter.
Prompt “Watch mockup” |
This past Sunday, the Jacksonville Jaguars vs Atlanta Falcons played in London, but there was a small addition to the broadcast... Disney did an animated version of the live game in a Toy Story theme!
The integration of tracking chips in both players' helmets and the football, coupled with cameras positioned around the arena, enables advanced AI to capture and animate the distinct movements of each player on the field.
You can read more about the “behind the scenes” of this unique broadcast on the Disney website.
In order to see this prompt, you must be a subscriber to Bytes and Brew. If you’re subscribed, please log into your account in the upper right corner. |
I truly enjoy hearing from my audience - please reach out and let me know what you like, don’t like, and want to see! |
Did you enjoy this edition?Click/tap on your response. Any feedback is super helpful! |
☕️ See you next edition 😃
The next edition will be delivered to your inbox on Monday, October 16th
Reply