Skip to content

Commit 305e761

Browse files
Update how-to-deploy-models-cohere-embed.md
1 parent 4785671 commit 305e761

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

articles/machine-learning/how-to-deploy-models-cohere-embed.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ The previously mentioned Cohere models can be consumed using the chat API.
108108

109109
## Embed API reference for Cohere Embed models deployed as a service
110110

111-
## V1/embeddings request
111+
## v1/embeddings
112+
### Request
112113

113114
```
114115
POST /v1/embeddings HTTP/1.1
@@ -117,15 +118,15 @@ The previously mentioned Cohere models can be consumed using the chat API.
117118
Content-type: application/json
118119
```
119120

120-
### V1/emebeddings request schema
121+
### v1/emebeddings request schema
121122

122123
Cohere Embed v3 - English and Embed v3 - Multilingual accept the following parameters for a `v1/embeddings` API call:
123124

124125
| Property | Type | Default | Description |
125126
| --- | --- | --- | --- |
126127
|`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. |
127128

128-
### V1/emebeddings response schema
129+
### v1/emebeddings response schema
129130

130131
The response payload is a dictionary with the following fields:
131132

@@ -154,7 +155,7 @@ The `usage` object is a dictionary with the following fields:
154155
| `total_tokens` | `integer` | Total tokens. |
155156

156157

157-
## V1/embeddings examples
158+
## v1/embeddings examples
158159

159160
**Request**
160161

@@ -190,7 +191,8 @@ The `usage` object is a dictionary with the following fields:
190191
}
191192
```
192193

193-
## V1/embed request
194+
## v1/embed
195+
### Request
194196

195197
```
196198
POST /v1/embed HTTP/1.1
@@ -199,7 +201,7 @@ The `usage` object is a dictionary with the following fields:
199201
Content-type: application/json
200202
```
201203

202-
### V1/embed request schema
204+
### v1/embed request schema
203205

204206
Cohere Embed v3 - English and Embed v3 - Multilingual accept the following parameters for a `v1/embed` API call:
205207

@@ -210,7 +212,7 @@ Cohere Embed v3 - English and Embed v3 - Multilingual accept the following param
210212
|`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. |
211213
|`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` |
212214

213-
### V1/embed response schema
215+
### v1/embed response schema
214216

215217
Cohere Embed v3 - English and Embed v3 - Multilingual include the following fields in the response:
216218

@@ -224,7 +226,7 @@ Cohere Embed v3 - English and Embed v3 - Multilingual include the following fiel
224226

225227
For more information, see [https://docs.cohere.com/reference/embed](https://docs.cohere.com/reference/embed).
226228

227-
## V1/embed examples
229+
## v1/embed examples
228230

229231
### Embeddings_floats response
230232

0 commit comments

Comments
 (0)