Embedding tool
OpenAI's embedding models convert text into dense vector representations for various natural language processing tasks. For more information, see the OpenAI Embeddings API.
Prerequisites
Create OpenAI resources:
OpenAI:
- Sign up your account on the OpenAI website.
- Sign in and find your personal API key.
Azure OpenAI Service:
Create Azure OpenAI resources with these instructions.
Connections
Set up connections to provide resources in the embedding tool.
Type | Name | API key | API type | API version |
---|---|---|---|---|
OpenAI | Required | Required | - | - |
AzureOpenAI | Required | Required | Required | Required |
Inputs
Name | Type | Description | Required |
---|---|---|---|
input | string | Input text to embed. | Yes |
connection | string | Connection for the embedding tool used to provide resources. | Yes |
model/deployment_name | string | Instance of the text-embedding engine to use. Fill in the model name if you use an OpenAI connection. Insert the deployment name if you use an Azure OpenAI connection. | Yes |
Outputs
Return type | Description |
---|---|
list | Vector representations for inputs |
Here's an example response that the embedding tool returns: