POST /v1/embed-jobs
This API launches an async Embed job for a Dataset of type embed-input
. The result of a completed embed job is new Dataset of type embed-output
, which contains the original text entries and the corresponding embeddings.
Servers
- https://api.cohere.com
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
X-Client-Name |
String | No |
The name of the project that is making the request. |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
dataset_id |
String | Yes |
ID of a Dataset. The Dataset must be of type |
input_type |
String | Yes |
Specifies the type of input passed to the model. Required for embedding models v3 and higher.
Possible values:
|
name |
String | No |
The name of the embed job. |
embedding_types[] |
Array | No |
Specifies the types of embeddings you want to get back. Not required and default is None, which returns the Embed Floats response type. Can be one or more of the following types.
|
truncate |
String | No |
One of Passing Possible values:
Default value: "END" |
model |
String | Yes |
ID of the embedding model. Available models and corresponding embedding dimensions:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.