Using OpenAI
Take-home activity! Do it if you are following along at home. It won't be covered during the hands-on lab.
OpenAI is a company that develops AI models for natural language processing. They offer a free API that you can use to create embeddings for your documents. The API is called OpenAI's Embedding API.
To get some embeddings using their API, you need to create an account and get an API key.
Create an OpenAI account and get an API key
To create an account, go to https://openai.com/ and click on the Log In button in the upper right corner. This will redirect you to the login page, where you'll have the option to sign up for their services.

Follow the instructions on the screen, and verify your email address.
Once you have an account, you can go to the API keys page to get an API key.
From there, click on the Create new secret key button.

You'll be prompted to give your key a name. You can call it "MongoDB Vector Search Demo." Click on the Create secret key button.
You will then be presented with your API key. Copy it and save it somewhere safe.

Make sure you copy this key somewhere as you'll need it later on, and you won't be able to see it again.
Now that you have an API key, you can use it to create embeddings for your documents.