This guide will walk you through setting up and using the Learn Prompting Embed, an interactive tool that allows you to test prompts directly on the Learn Prompting website.
We'll cover:
The ChatGPT website is great, but wouldn’t it be even better to write and test prompts right here on this website? With our Learn Prompting Embeds, you can! Keep reading to see how you can set it up. We’ll be using these interactive embeds throughout most of our articles.
Here’s what the embed looks like:
You should see a similar embed just below this paragraph. If it’s not visible, try enabling JavaScript or switching to a different browser. Still no luck? Reach out to us on Discord and we’ll help you troubleshoot.
If you see the embed, click Generate. If it’s your first time, you’ll be prompted to sign in with your Google account.
We currently only support Google Authentication, but we're working on integrating all providers!
For Learn Prompting Plus subscribers: If you have a Learn Prompting Plus subscription, use the same email to sign in.
For non-subscribers: If you're not a Learn Prompting Plus subscriber, the setup process involves adding your OpenAI API key. Here’s how to find it.
If you need to update your API key, clear your browser cookies and re-enter the new key.
Now, you’re all set! You can use the embeds throughout the site. Keep in mind that OpenAI charges for each prompt. If you’ve just created a new account, you’ll get three months of free credits. After that, don’t worry – it’s very affordable. You can generate about 7,000 words for just $0.02 .
Never tell anyone your API key, since they could charge your account with prompts.
Let’s see how to use the embed. Edit the "Type your prompt here" field in the embed. It’s just like using ChatGPT, except you can’t have long conversations. In this basic guide, we use these embeds to demonstrate prompt engineering techniques.
You can see four pieces of information under the Generate button. The left one, 'gpt-3.5-turbo' is the model (gpt-3.5-turbo is the technical name for ChatGPT). The three numbers are LLM settings, which we will learn about in a few articles. If you would like to make your own embed, click the edit this embed button.
Learn Prompting Embeds make it easier to experiment with prompts without leaving the course site. But if you prefer ChatGPT, you can keep using that. Just remember to save your API key since OpenAI shows it only once.
Learn Prompting Embeds are a tool to test prompt engineering techniques directly on the Learn Prompting website.
No, you can continue using the ChatGPT interface if that’s your preference.
To use Learn Prompting Embeds, you just need an OpenAI API key, which you can create on the OpenAI website.
Sander Schulhoff is the Founder of Learn Prompting and an ML Researcher at the University of Maryland. He created the first open-source Prompt Engineering guide, reaching 3M+ people and teaching them to use tools like ChatGPT. Sander also led a team behind Prompt Report, the most comprehensive study of prompting ever done, co-authored with researchers from the University of Maryland, OpenAI, Microsoft, Google, Princeton, Stanford, and other leading institutions. This 76-page survey analyzed 1,500+ academic papers and covered 200+ prompting techniques.