🧠 Advanced

🟢 Learn Prompting Embeds

Last updated on August 7, 2024 by Sander Schulhoff
Takeaways
  • Set up the Learn Prompting Embed - Run ChatGPT prompts on the course website

What is the Learn Prompting Embed?

The ChatGPT website is useful, but wouldn't it be nice if you could write and test prompts right on this website? With Learn Prompting Embeds, you can! Read on to see how to set this up. We will include these interactive embeds in most articles.

Get Set Up

Here is an image of what an embed looks like:

You should be able to see an embed that looks just like the image right below this paragraph. If it is not visible, you may need to enable JavaScript or use a different browser. If you still cannot see it, join Discord and tell us about your problem.

Assuming that you can see the embed, click on the Generate button. If this is your first time using it, you will be prompted to sign in with a Google account. If you are a Learn Prompting Plus subscriber, please use the same email.

If you are not a Learn Prompting Plus subscriber, you will have a slightly more complicated setup process. After signing in with Google, you will be prompted to input an OpenAI API key. An OpenAI API key is just a string of text that the embed uses to link to your OpenAI account. Here is how to find yours:

Note

We currently only support Google Authentication, but we're working on integrating all providers!

Get an OpenAI API Key

  • First, navigate to platform.openai.com/account/api-keys
  • Then, sign up for or sign into your OpenAI account.
  • Click the Create new secret key button. It will pop up a modal that contains a string of text like this:
  • Copy and paste this key into the embed on this website and click Submit.
Note

If you wish to update your API key in the system. Just clear your browser cookies and re-enter your updated API key.

You should now be able to use the embeds throughout this site. Note that OpenAI charges you for each prompt you submit through these embeds. If you have recently created a new account, you should have 3 months of free credits. If you have run out of credits, don't worry, since using these models is very cheap. ChatGPT only costs about $0.02 for every seven thousand words you generate.

Using the Embed

Let's learn how to use the embed. Edit the "Type your prompt here" field. This embed is effectively the same as using ChatGPT, except that you cannot have a full conversation. In this course, the embeds are used to show examples of 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.

Conclusion

Learn Prompting Embeds will make it easier for you to learn throughout the course, since you can quickly test your prompts, without clicking into a different tab. However, you do not have to use the embeds if you prefer the ChatGPT interface. Just continue to copy and paste prompts into ChatGPT. If you do intend to use the embeds, write down your API key somewhere, since the OpenAI website only allows you to see it once.

Caution

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

FAQ

What are Learn Prompting Embeds?

Learn Prompting Embeds provides you with an interface to test the new prompt engineering techniques you learn directly on the Learn Prompting website.

Do I have to use Learn Prompting Embeds?

If you prefer to use the ChatGPT interface, you can continue to use that instead of setting up Learn Prompting Embeds.

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

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

Footnotes

  1. See full pricing information here

Edit this page
Word count: 0

Get AI Certified by Learn Prompting


Copyright © 2024 Learn Prompting.