You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-studio/how-to/deploy-models-cohere-embed.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,8 @@ These models can be consumed using the embed API.
111
111
112
112
## Embed API reference for Cohere Embed models deployed as a service
113
113
114
-
## V1/embeddings request
114
+
## v1/embeddings
115
+
### Request
115
116
116
117
```
117
118
POST /v1/embeddings HTTP/1.1
@@ -120,15 +121,15 @@ These models can be consumed using the embed API.
120
121
Content-type: application/json
121
122
```
122
123
123
-
### V1/emebeddings request schema
124
+
### v1/emebeddings request schema
124
125
125
126
Cohere Embed v3 - English and Embed v3 - Multilingual accept the following parameters for a `v1/embeddings` API call:
126
127
127
128
| Property | Type | Default | Description |
128
129
| --- | --- | --- | --- |
129
130
|`input`|`array of strings`|Required |An array of strings for the model to embed. Maximum number of texts per call is 96. We recommend reducing the length of each text to be under 512 tokens for optimal quality. |
130
131
131
-
### V1/emebeddings response schema
132
+
### v1/emebeddings response schema
132
133
133
134
The response payload is a dictionary with the following fields:
134
135
@@ -157,7 +158,7 @@ The `usage` object is a dictionary with the following fields:
157
158
|`total_tokens`|`integer`| Total tokens. |
158
159
159
160
160
-
## V1/embeddings examples
161
+
## v1/embeddings examples
161
162
162
163
**Request**
163
164
@@ -193,7 +194,8 @@ The `usage` object is a dictionary with the following fields:
193
194
}
194
195
```
195
196
196
-
## V1/embed request
197
+
## v1/embed
198
+
### Request
197
199
198
200
```
199
201
POST /v1/embed HTTP/1.1
@@ -202,7 +204,7 @@ The `usage` object is a dictionary with the following fields:
202
204
Content-type: application/json
203
205
```
204
206
205
-
### V1/embed request schema
207
+
### v1/embed request schema
206
208
207
209
Cohere Embed v3 - English and Embed v3 - Multilingual accept the following parameters for a `v1/embed` API call:
208
210
@@ -213,7 +215,7 @@ Cohere Embed v3 - English and Embed v3 - Multilingual accept the following param
213
215
|`truncate`|`enum string`|`NONE`|`NONE` – Returns an error when the input exceeds the maximum input token length. <br/> `START` – Discards the start of the input. <br/> `END` – Discards the end of the input. |
214
216
|`embedding_types`|`array of strings`|`float`|Specifies the types of embeddings you want to get back. Can be one or more of the following types. `float`, `int8`, `uint8`, `binary`, `ubinary`|
215
217
216
-
### V1/embed response schema
218
+
### v1/embed response schema
217
219
218
220
Cohere Embed v3 - English and Embed v3 - Multilingual include the following fields in the response:
219
221
@@ -227,7 +229,7 @@ Cohere Embed v3 - English and Embed v3 - Multilingual include the following fiel
227
229
228
230
For more information, see [https://docs.cohere.com/reference/embed](https://docs.cohere.com/reference/embed).
0 commit comments