OpenAI Embedding Model
Last updated
Last updated
To set up a connection to OpenAI's embedding models, you'll need to provide several important details. Follow the steps below to configure the connection and begin using OpenAI's services.
When configuring your OpenAI connection, the following fields are required:
Name Field Type: Text Description: Enter a unique name for this OpenAI connection configuration. This helps you easily identify the connection when managing multiple configurations.
Embedding Provider Field Type: Dropdown Description: Select or enter the embedding provider. For OpenAI, the provider is listed as OpenAI. This ensures that the correct API is used to interact with OpenAI's embedding models.
Embedding Model Field Type: Dropdown Description: Choose the embedding model you wish to use. OpenAI offers several embedding models, such as text-embedding-ada-002 or other models depending on your needs. Refer to OpenAI's documentation to choose the most suitable model for your application.
Dimension Field Type: Numeric Description: Specify the number of dimensions for the embedding model. The dimension size corresponds to the model you select. For example, text-embedding-ada-002 uses a 1536-dimensional vector. Make sure to choose the correct dimension based on your selected model.
API Key Field Type: Text Description: Enter your OpenAI API Key. This key is necessary for authenticating and making requests to OpenAI's API. You can obtain this key from your OpenAI account dashboard. Keep this key secure and do not share it publicly.
Here’s an example of how the configuration might look when filled in:
Name
My_OpenAI_Embedding_Connection
Embedding Provider
OpenAI
Embedding Model
text-embedding-ada-002
Dimension
1536
API Key
sk-XXXXXXXXXXXXXXXXXXXX
After filling in the required fields, click Save or Test Connect to establish the connection to OpenAI. You will now be able to use the OpenAI embedding model for your application, whether for natural language processing, data analysis, or other AI tasks.