Skip to main content

Set up OpenAI Embedding Model

info

When you sign up for OpenAI, you'll get $5 in free credits. This credit limit is more than sufficient to run examples listed here.

Setting up the OpenAI Embedding model in Unstract

Now that we have an API key from OpenAI, we can use it to set up an Embedding profile on the Unstract platform. For this:

  • Sign in to the Unstract Platform
  • From the side navigation menu, choose Settings 🞂 Embedding
  • Click on the New Embedding Profile button
  • From the list of Embeddings, choose OpenAI. You should see a dialog box where you enter details.

img Add new Embedding

  • For Name, enter a name for this connector.
  • In the API Key field, paste the API key we created on the OpenAI website.
  • Leave the Embed Batch Size field and the API Base field to their default values.
  • Click on Test Connection and ensure it succeeds. You can finally click on Submit and that should create a new Embedding Profile for use in your Unstract projects.

One final step now is creating a profile for a Vector database. Let's continue doing that.