Prompt Engineering Guide
😃 Basics
💼 Applications
🧙‍♂️ Intermediate
🧠 Advanced
Special Topics
🌱 New Techniques
🤖 Agents
⚖️ Reliability
🖼️ Image Prompting
🔓 Prompt Hacking
🔨 Tooling
💪 Prompt Tuning
🗂️ RAG
🎲 Miscellaneous
Models
📝 Language Models
Resources
📙 Vocabulary Resource
📚 Bibliography
📦 Prompted Products
🛸 Additional Resources
🔥 Hot Topics
✨ Credits

Learn Prompting Embeds

🟢 This article is rated easy
Reading Time: 3 minutes

Last updated on October 21, 2024

Introduction

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:

  1. What is the Learn Prompting Embed?
  2. Get Set Up
  3. Get an OpenAI API Key
  4. Using the Embed
  5. Conclusion
  6. FAQ

1. What is the Learn Prompting Embed?

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.

2. Get Set Up

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.

Note

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.

3. Get an OpenAI API Key

  1. Go to platform.openai.com/account/api-keys.
  2. Sign up or sign into your OpenAI account.
  3. Click Create new secret key to generate a key. You’ll see a string of text like this:
  1. Copy and paste this key into the embed on this site and click Submit.
Note

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 .

Caution

Never tell anyone your API key, since they could charge your account with prompts.

4. Using the Embed

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.

5. Conclusion

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.

6. FAQ

What are Learn Prompting Embeds?

Learn Prompting Embeds are a tool to test prompt engineering techniques directly on the Learn Prompting website.

Do I have to use Learn Prompting Embeds?

No, you can continue using the ChatGPT interface if that’s your preference.

What do I need to set up to use Learn Prompting Embeds?

To use Learn Prompting Embeds, you just need an OpenAI API key, which you can create on the OpenAI website.

Sander Schulhoff

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.

Footnotes

  1. See OpenAI pricing information

Copyright © 2024 Learn Prompting.