Skip to main content

OpenAI Embeddings

OpenAI embedding is used for converting text into numerical representations, enabling machines to understand and process language efficiently in various natural language processing tasks such as sentiment analysis, text classification, and language translation.

Getting started with OpenAI Embedding

info

When you sign up for OpenAI, you'll get $5 in free credits. This credit limit is more than sufficient to run a simple example.To increase a usage limit,visit OpenAI Billing section

  1. Signup an OpenAI account.

  2. From the side navigation menu, choose API Keys and create a new API key.

    img OpenAI Embeddings

    img OpenAI Embeddings

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 into 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 OpenAI Embeddings

  • 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.